Skip to content

The plugin is not running for the onMODXInit event #214

Open

Description

@ShevArtV

Greetings, in Modx 3, with the Client Config installed and using pdoTools and Fenom, the following is observed: the first static plugin in the queue does not work. If you disable the pdoToolsOnFenomInit event for the Client Config plugin, then everything starts working as it should.

Activity

  1. muzzwood commented on Feb 24, 2025

    @muzzwood
    Contributor

    Hi @ShevArtV, thanks for reporting the issue.

    Could you clarify what you mean by the first "static" plugin? e.g. file based? It doesn't happen with a regular plugin?

    We previously had to mitigate a pdoTools bug where it was looping the event, perhaps something has changed and that's having an effect? Could you try commenting this part out in your ClientConfig plugin and see if that makes a difference?
    https://github.com/modmore/ClientConfig/blob/master/core/components/clientconfig/elements/plugins/clientconfig.plugin.php#L39-L46

  2. ShevArtV commented on Feb 24, 2025

    @ShevArtV
    Author

    'static' plugin refers to a file-based plugin. This issue does not occur with regular plugins.

    Commenting out the specified lines does not make a difference. The only thing that helps is disabling the pdoToolsOnFenomInit event."

  3. muzzwood commented on Feb 25, 2025

    @muzzwood
    Contributor

    It sounds like it's related to this: modx-pro/pdoTools3#13

  4. ShevArtV commented on Feb 25, 2025

    @ShevArtV
    Author

    Yes, it appears that the issue is related to pdoTools. Firstly, making the plugin for the pdoToolsOnFenomInit event static causes the site to crash immediately. Secondly, if a plugin for this event exists, the first static plugin in the queue fails to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions