I’ve suddenly run into a weird crash/error situation on a MODX site.
The sites running on Media Temples grid system, MODX Revolution 2.1.0-rc3 (traditional)
At seemingly random times the front-end and the back-end crash and display a page like this:
Most of the code thats being spat out seems like a partial fragment of the /core/cache/system_settings/config.cache.php file - as when this file is deleted the website starts working, but soon randomly crashes again.
I think the answer to the source of this crash might be at the end of the errors here:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /nfs/c01/h13/mnt/13706/domains/new.domain.com/html/core/model/modx/modx.class.php on line 2005
Fatal error: Class 'modContext_' not found in /nfs/c01/h13/mnt/13706/domains/new.domain.com/html/core/xpdo/xpdo.class.php on line 613
But I’m not familiar enough with modContext_ or modx.class.php to figure out what the problem is.
I’ve also completely disabled caching, with the cache settings looking like this:

with Enable Database Cache switched to No and Disable Global Cashing Options to Yes - yet this error still persists.
I’ve also tried reinstalling MODX; but when I get to the final stage of the reinstallation, where I click the Install button and the URL looks like
http://new.domain.com/setup/index.php?action=install it crashes again.