![]() |
WordPress PHP Issue
I have recently moved my WordPress installation over to a different server. I can no longer access my site.
My new host gives an error message when accessing my site: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/iwhblog1/public_html/admin.php on line 30 The code for admin.php is: PHP Code:
I am new to PHP although I now HTML as WordPress a lot. I cannot access any of my WP site, but I can access the files for it. Any help would be greatly appreciated! :) |
Check you config file to make sure all the DB connection info is correct. Make sure any settings that you established on the old server are changed to match the new server.
Do you have info / content you don't want to lose? I'd just reinstall WP. |
You have dirname repeated twice in that string
|
Looks like you have manually edited the core of Wordpress, which is generally a bad idea because it prevents your ability to update easily. That admin.php file should be under /wp-admin/ and that line should look like this:
PHP Code:
|
Do you have info / content you don't want to lose? I'd just reinstall WP.
Make sure any settings that you established on the old server are changed to match the new server.Check you config file to make sure all the DB connection info is correct click here for more info. |
I would save your theme directory in a safe place and
totally re-install WordPress from square one. If your blog database is important, you can save that also. The only place where you should edit or customize is your theme directory ... no other places. Also make sure .htaccess has been created correctly. |
Well, I'd say you can edit/customize your core with the complete understanding that it will screw up on upgrades/moves and that you must know 100% what you're doing and how to replicate it in the future.
That being said, I've never come across a situation where it was worth the hassle. |
| All times are GMT +1. The time now is 06:59 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.