Search code examples
pluginsmodx

MODx Plugin does not get fired (with no event)


I created a test plugin and activated ALL events in the "System-Events" Tab. The Plugin looks like so:

<?php
error_log('test_plugin: ' . $modx->event->name);

thats it.

I'm following the error.log via tail -f /var/log/error.log and I get several entries when I'm reloading a page in the backend (which is perfect)

[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnHandleRequest, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnManagerPageInit, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnBeforeManagerPageInit, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnManagerPageBeforeRender, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnPluginFormRender, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnParseDocument, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnParseDocument, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnParseDocument, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnParseDocument, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnParseDocument, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnParseDocument, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnPluginFormPrerender, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:08 2015] [error] [client xx.xx.xx.xx] test_plugin: OnManagerPageAfterRender, referer: http://my.domain.de/manager/index.php?a=1
[Tue Nov 03 21:07:10 2015] [error] [client xx.xx.xx.xx] test_plugin: OnResourceToolbarLoad, referer: http://my.domain.de/manager/index.php?a=13&id=13

But when loading a page in FRONT-END I get NOTHING AT ALL.

Any ideas? I'm using Revo 2.2.14-pl


Solution

  • At the end it was a caching Problem. Solved it using the CacheClear-snippet from Bob Ray.