Hi,
Some days ago this "PHP Parse Error" started to show on all pages of my website. This happenned out of nothing, no changes were made to generate this error.
The complete error is:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: gzinflate() [function.gzinflate]: data error
Error type/ Nr.: Warning - 2
File: /home/gtr/public_html/manager/includes/protect.inc.php(1) : eval()’d code
Line: 1
Parser timing
MySQL: 0.1458 s (468 Requests)
PHP: 0.3865 s
Total: 0.5322 s
Please, any help will be appreciated.
Mc
Well the error has changed now to:
« PHP Parse Error »
PHP error debug
Error: strpos() [function.strpos]: Offset not contained in string
Error type/ Nr.: Warning - 2
File: /home/gtr/public_html/manager/includes/protect.inc.php(1) : eval()’d code
Line: 1
This error is displayed only at the end of the pages, I mean the pages load normally but all of them have the error at the bottom.
And...sorry, I should’ve included all details. Here they are:
Web Server:
PHP version: 5.2.9. PHP is run as CGI (not Apache/DSO) in a suPHP environment.
Apache or IIS version: Apache 2.2.x , (with mod_rewrite and mod_security) in a SuExec environment
Operating System and version: Linux x86 CentOS 5.x
Database:
MySQL version: 5.1.30
List of any tables over 1MB in size: none
MODx:
Version: 0.9.6.2
Any snippets you’re running on the page that is not working properly: Ditto, Reflect. But the error shows on any page, with or without snippets
Any plugins you’re running: none
Browser/Client:
Browser name and version: Firefox 3.5.2 and Opera 9.64
Operating System and version: Windows Server Enterprise 2008 SP2
Thank you in advance.
Mc
-
MODX Staff
- 12,272 Posts
Both mod_security and suPHP have been known to cause problems. I would ask your webhost if they’ve recently upgraded their servers.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
So, what are we supposed to do if the webhost has upgraded the server???
I asked my webhost and they informed that there has been no upgrade lately. As I mentioned before, this problem started from one day to the other. The strange thing is that all of my other Modx websites located on the same webhost are showing no problems at all.
Regards.
i too am getting this error on one of my sites. and also when I log into the manager I get a blank page.
I have a number of other sites running the same version of modx and they are working fine.
did you manage to find a fix for this?
Quote from: fiat154 at Oct 04, 2009, 09:34 PM
Quote from: fiat154 at Oct 04, 2009, 07:35 PM
i too am getting this error on one of my sites. and also when I log into the manager I get a blank page.
I have a number of other sites running the same version of modx and they are working fine.
did you manage to find a fix for this?
hmmm, I found a fix - the site was hacked! all pages had a header of eval base 64 code added referring to a folder in FCKeditor with some server side scripts that changed the <head>. It added this code to basically every php file in the directory! Luckily I am about to totally redo this site but I found the folder the eval code was referencing and removed it and that fixed the parse error.
I was going to suggest that a hacker was involved. Did (do) you have register_globals on?