phpika
Member
Posted 3 months ago #
Hello,
Recently against my wishes my host upgraded to a version of PHP 5.x
This broke some things on my website and recently I managed to get them to downgrade back to PHP 4.x
However doing this seems to have broke part of my blog. I can still read it fine, but when I try to go to the admin panel to login I get a 500 Internal Server Error page come up. I have absolutely no idea why it does this but I can only assume it's due to the PHP upgrade/downgrade because it all worked fine before. My host says they have no idea why this is happening and are not helping. This is beyond my knowledge of running a website.
Could anyone please help? It's quite annoying as through no fault of my own I now can't update my blog and I'm losing traffic. Has this happened before to anyone? How do I fix this?
phpika
Member
Posted 3 months ago #
Sorry to double post but I can't find a way to edit this into my original post. To add some more details I have researched this problem but to no avail. The most common solution was that the problem was something to do with the .htaccess file.
I made a backup of this file and deleted it to test it out but nothing changed so I don't think that's the problem.
look in your error logs. what do they say?
phpika
Member
Posted 3 months ago #
The error log says:
[27-Apr-2009 23:33:07] PHP Warning: main(ABSPATHwp-includes/compat.php): failed to open stream: No such file or directory in /home/pikachu/public_html/wp/wp-settings.php on line 246
[27-Apr-2009 23:33:07] PHP Fatal error: main(): Failed opening required 'ABSPATHwp-includes/compat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pikachu/public_html/wp/wp-settings.php on line 246
[29-Apr-2009 11:14:08] PHP Warning: main(ABSPATHwp-includes/compat.php): failed to open stream: No such file or directory in /home/pikachu/public_html/wp/wp-settings.php on line 246
[29-Apr-2009 11:14:08] PHP Fatal error: main(): Failed opening required 'ABSPATHwp-includes/compat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pikachu/public_html/wp/wp-settings.php on line 246
phpika
Member
Posted 3 months ago #
Hello,
Sorry to bump the topic but does anyone have any clue why this is happening? I don't think the error log is of any help.
Thanks
webdevoman
Member
Posted 2 months ago #
I am having the same problem with a brand new install... This is really pissing me off and I am wasting too much time on this.
Come on Wordpress! Many people are having this issue! What is the fix??
I have 2 other blogs on my server both running the same version of wordpress and both are working fine. This fresh install will not work for me.. I am having the same "line 246" error related to the compat.php file. It says the file is missing but it is there and I really don't feel like messing with it anymore. Is there a fix or what??
webdevoman
Member
Posted 2 months ago #
My problem is related to htaccess... I am working on it now.. Not sure if every one else's problem is the same..
I removed my htaccess file and everything worked fine...I need my htaccess though for the main site so I am working that out now..
webdevoman.com
phpika
Member
Posted 2 months ago #
For anyone who ever has this problem and comes across this topic, I finally managed to fix it. My problem was not with the .htaccess file as that was one of the first things I tried.
I fixed it by simply backing up my files and database tables before deleting them all and dropping them respectively. I had to install WordPress again and then delete the newly created database tables and import my old database backup.
All except the HTML block widgets was recovered.