Im getting this error.
I also have another copy of the same version of modx running in a dir next to it and its working fine. I tried coping ditto.class.inc.php from a working version but to success.
Can someone point me to something?
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Invalid argument supplied for foreach()
Error type/ Nr.: Warning - 2
File: /var/www/site.com/assets/snippets/ditto/classes/ditto.class.inc.php
Line: 850
Line 850 source: foreach ($modx->documentMap as $null => $document) {
Parser timing
MySQL: 0.0026 s (23 Requests)
PHP: 0.0286 s
Total: 0.0312 s