-
- 16 Posts
I've been having issues with this version of ModX, every few minutes I'll get a white screen on the front-end or an undefined error in the back-end. Clearing the cache resolves this but I'm having to do it every few minutes, I've installed an error log and the re-occurring error I'm getting is either 'PHP Parse error: syntax error, unexpected '<' in .../public_html/core/cache/includes/elements/modplugin/4.include.cache.php on line 60' or 'PHP Parse error: syntax error, unexpected '<' in ../public_html/core/cache/includes/elements/modplugin/2.include.cache.php on line 79'.
I've increased the memory but it's had no effect.
Looking forward to reading your replies.
-
- 932 Posts
Is the MODX error log posting out the same error? Anything additional?
-
- 932 Posts
From my experience it usually happens when a getresources/getpage call isn't wrote correctly and it ends up getting something an infinite amount of times until the server crashes.
-
- 1,572 Posts
If you look at the files 4.include.cache.php and 2.include.cache.php in core/cache/includes/elements/modplugin/ it will tell you near the top what addons they are, might help to debug it
-
- 24,544 Posts
You can also look in the Plugins section of the Elements tree and see what the plugins with the IDs 2, and 4 are (in parentheses after the plugin name in the tree). If there are updates available for those plugins, updating them may solve your problem.
The "unexpected <" error often means that a processor (most likely called by an extra) is throwing a PHP syntax error or warning. MODX processors return JSON, so things crash if they return something else (i.e., the HTML of a PHP error or warning message). Unless the plugin has good sanity checks, the crash will occur before anything can be written to the MODX Error Log.
See this for some ideas on how to see the actual error message:
http://bobsguides.com/blog.html/2013/05/22/debugging-cmps-a-horror-story/.
My guess is that the root of the problem is not the cache. It's an extra that doesn't play well with that version of MODX. I could be wrong.
-
- 16 Posts
Thanks for the replies, I've removed three conflicting plugins but it's still not working. Neither the ModX error log or my error log captures the error, it just white screens/undefines in the backend.
-
- 24,544 Posts
Did you manually delete the files in the core/cache directory after removing the plugins? Plugin code can be somewhat zombie-like in the script cache.