This is what I get in the error log: [2021-09-01 13:04:39] (ERROR @ *****/core/cache/includes/elements/modplugin/41.include.cache.php : 9) testPlugin - OnLoadWebDocument event
Yes, I know that these events are executed one after the other, but why doesn’t the plugin catch the second event(OnWebPageComplete)? I’ve tried different priorities for events inside the plugin, it doesn’t help. I also tried to split these two events into different plugins - let each one handle a different event. In the end, I only see OnLoadWebDocument processing.
Is this a bug or an undocumented feature? If the latter, I would be happy to update MODX documentation.
Thanks @halftrainedharry !
I agree with you, this is how it should be … but it does not happen that way. What can influence this? Probably I need to turn off all possible (extra, plugins) … nothing specific(ContentBlocks, Commerce, pdoTools etc.) and retest again.