Hmm, see if there is an empty space in your wp-config.php file either before the opening <?php tag, or after the closing ?> php tag. Could be a plugin problem, too. Make sure you deactivate your plugins before upgrading.
I first of all got an error message saying there was a syntax error in wp-config.php line 2. I hit return after <?php to start //**MySQL Settings on a new line, and tried again, and that’s when I got the admin.php error.
I deleted the new files, and uploaded the backup files, and have exactly the same problem, first the config.php error message, and then if I make the above adjustment, the same admin.php message.
Andrew
Here’s the original error message:
Parse error: syntax error, unexpected T_STRING in /home/username/mysite-www/wp-config.php on line 2
And here are the first lines of that file:
<?php// ** MySQL settings ** //define(‘DB_NAME’, ‘mydatabasename’); // The name of the database
Greetings Andrew,
On some hosts, it is necessary to use the upgrade.php to update the db connections. If this is an upgrade, make sure you deactivated all of your plugins
>overwrite the indicated files and folders
>once finished type domain/wp-admin/upgrade.php
You should get some indication that your db was either upgraded or that it is okay.
I had the same problen and the above solved it for me.
I hope this helps.
Ike
http://surfinjaco.com
Thanks everybody for your help. I downloaded WordPress again and edited the config file by hand rather than copying and pasting from the existing one. Now it works – don’t understand why it didn’t before especially with the original one which I uploaded again – I don’t think I had touched it apart from selecting and copying a few lines. Anyway, all’s well that ends well.