We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28766
    • 3 Posts
    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
      • 16278
      • 928 Posts
      Is there a php.ini file in one of the directories? If so, there could be a difference in error reporting level between them, with the working one not taking any notice of PHP warnings.
      smiley KP