Forums

[resolved] Upgrade error message (7 posts)

  1. Andrew Chapman
    Member
    Posted 3 years ago #

    Hi, I am trying to upgrade to 2.6.5

    When I go to mysite.com/wp-admin I get

    Fatal error: Call to undefined function: get_option() in /home/username/mysite-www/wp-admin/admin.php on line 9

    Would much appreciate any help,

    Andrew

  2. kwbridge
    Member
    Posted 3 years ago #

    Hi Andrew

    I located this thread which might help.

    http://wordpress.org/support/topic/153814?replies=9

  3. BernardBorealis
    Member
    Posted 3 years ago #

    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.

  4. Andrew Chapman
    Member
    Posted 3 years ago #

    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

  5. Andrew Chapman
    Member
    Posted 3 years ago #

    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

  6. ikester
    Member
    Posted 3 years ago #

    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

  7. Andrew Chapman
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.