I have inherited the management of our MODx managed site (www.eastparkprinting.com).
One of the pages (www.eastparkprinting.com/contact) is kicking out a PHP Parse error (see below). Any advice on how to address as I am a PHP neophyte would be appreciated.
THANKS!!!
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: file_get_contents(assets/cache/docid_5.pageCache.php) [function.file-get-contents]: failed to open stream: Permission denied
Error type/ Nr.: Warning - 2
File: /nfs/c03/h03/mnt/54745/domains/eastparkprinting.com/html/manager/includes/document.parser.class.inc.php
Line: 413
Line 413 source: $flContent = file_get_contents($cacheFile, false);
Parser timing
MySQL: 0.0232 s (0 Requests)
PHP: 0.0429 s
Total: 0.0661 s
-
☆ A M B ☆
- 24,524 Posts
Use FTP or your domain control panel's file manager to get into the directory where that file is, and either change its permissions or delete it. I've had this happen on occasion with the regular core/cache/ cached resource files when something goes wrong while creating the cache file. Every now and then one will get saved with either weird permissions, or no permissions at all.
Thank you for the suggestion sottwell. I deleted the referenced file, which cause the entire website to send back an error. SO I in turn replaced the file with a "backup" copy of the file. It is still giving back the error message but changed slightly compared to above....
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: file(assets/cache/docid_5.pageCache.php) [function.file]: failed to open stream: Permission denied
Error type/ Nr.: Warning - 2
File: /nfs/c03/h03/mnt/54745/domains/eastparkprinting.com/html/manager/includes/document.parser.class.inc.php
Line: 368
Line 368 source: $flContent= implode("", file($cacheFile));
Parser timing
MySQL: 0.0037 s (0 Requests)
PHP: 0.0335 s
Total: 0.0372 s