You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The plugin is not running for the onMODXInit event #214
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.
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.
Activity
muzzwood commentedon Feb 24, 2025
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
ShevArtV commentedon Feb 24, 2025
'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."
muzzwood commentedon Feb 25, 2025
It sounds like it's related to this: modx-pro/pdoTools3#13
ShevArtV commentedon Feb 25, 2025
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.