We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1512
    • 57 Posts
    Hi everyone,

    Just moved our site to a new server, reconnected database and run the upgrade / advanced installation. Now i go to the homepage and get the following error message (all other pages seem to work on so far)

    « MODx Parse Error »
    
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error:	fopen(/var/www/vhosts/surfacewatch.com/httpdocs/assets/snippets/ajaxSearch/classes/../ajaxSearch_log.txt) [function.fopen]: failed to open stream: Permission denied	 
      Error type/ Nr.:	Warning - 2	 
      File:	/var/www/vhosts/surfacewatch.com/httpdocs/assets/snippets/ajaxSearch/classes/ajaxSearchDebug.class.inc.php	 
      Line:	34	 
      Line 34 source:	 $this->asDbgFd = fopen(AS_DBGFILE,'w+');	 
     
    Parser timing
      MySQL:	0.0009 s	(2 Requests)
      PHP:	0.2135 s	 
      Total:	0.2144 s	 


    Anyone with any ideas?

    Thanks in advance
    André
      • 5811
      • 1,717 Posts
      I don’t know why you get this error (cache effect ?) but anyway, the ajaxSearch/classes/../ajaxSearch_log.txt is open when you use the debug mode. So, in production, I suggest to remove the debug usage (check the AS snippet calls or the configuration files used).