Note: If you’re posting about a bug, please state all of your Environment information in your post: Version of MODx, Traditional or Advanced distribution (for Revo), Server OS, Server Version, PHP Version, MySQL Version (client and server), is pdo_mysql installed, your Browser type and version, if you are using any opcode caching such as eAccelerator, APC, winCache, xCache, etc; any relevant errors in core/cache/logs/error.log, and any other environment data we should know. We can’t help you without that information.
Can someone tell me how to collect all this data?? Is there a script that does this?
Meanwhile all I see on my web site is this:
Parse error: syntax error, unexpected T_STRING, expecting ’,’ or ’;’ in /home/pacfr/public_html/index.php on line 59
All the data I have is this:
Web Server:
PHP Version 5.2.13
Apache
Linux
Database:
mySQL Client API version 5.1.48
List of any tables over 1MB in size
MODx:
* Version - Revolution 2.0.4pl
* Any changes you’ve made - NONE
* Any snippets you’re running on the page that is not working properly - Wayfinder
* Any plugins you’re running - NONE
Browser/Client:
* Browser name and version Firefox 3.6.10
* Operating System and version Windows Vista and Windows XP
You can put a file called info.php in the root of your site with this code in it:
Then access it with
http://yoursite.com/info.php
Delete it when you’re done.
The error message indicates that there’s a syntax error in the index.php file in the site root, so we probably don’t need the detailed info. Either index.php was corrupted somehow, or you or someone else edited it. If you have a backup of the site, you could replace that file, but you should definitely save the current one first and take a look at it to see if there’s anything suspicious because it could indicate a hacking attempt (use the File Manager in cPanel).
thanks for the reply. Yes I ran the php info script yesterday but it doesn’t provide all the info I think. It would be very useful to have a tool that does this.
The index.php file - I just over-wrote it with the new version from the upgrade and that solved the problem. Bit of a worry though!
Thanks.
Quote from: tonymodx at Oct 19, 2010, 02:58 AM
The index.php file - I just over-wrote it with the new version from the upgrade and that solved the problem. Bit of a worry though!
Did you save the bad index.php file for examination as I suggested?
If it was altered by a hacker, it will probably be altered again. If there’s hacking going on, it’s important to look at that file to see the nature of the attack.