Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin is not running for the onMODXInit event #214

Open
ShevArtV opened this issue Feb 23, 2025 · 2 comments
Open

The plugin is not running for the onMODXInit event #214

ShevArtV opened this issue Feb 23, 2025 · 2 comments

Comments

@ShevArtV
Copy link

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.

@muzzwood
Copy link
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

@ShevArtV
Copy link
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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants