WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't login into wp-admin - Undefined Function?! (12 posts)

  1. thewildpony
    Member
    Posted 3 years ago #

    I suddenly can't login into wp-admin, this is the error message I get in the browser:

    "Fatal error: Call to undefined function is_network_admin() in /customers/thewildpony.com/thewildpony.com/httpd.www/wp-admin/includes/menu.php on line 10"
    ________

    I found the file - and this is the text (line 10-15):

    if ( is_network_admin() )
    do_action('_network_admin_menu');
    elseif ( is_user_admin() )
    do_action('_user_admin_menu');
    else
    do_action('_admin_menu');

    _______

    Can you please help me and tell me what to do next? I'm so afraid to loose my 100 blogposts - and followers!

    The error showed up after trying to update from 3.0.5. to 3.1. I didn't make a backup until after the errormessage - but I hope it's all saved anyway. It looks right at the domain it self - I just can't login to do any updates.

    I hope to get some help in here.
    THANK YOU!

    Sandra

    [I'm sorry to post this one in two diff. forums - didn't know which one to choose]

  2. Roy
    Member
    Posted 3 years ago #

    I'd try to upload the wp-admin/includes again manually.

  3. thewildpony
    Member
    Posted 3 years ago #

    Thank you for your advice, but I just tried it - and it doesn't change anything. [The file that I uploaded is the same as I downloadet now that I wasn't smart to do the backup in time :)].

  4. Roy
    Member
    Posted 3 years ago #

    Of course, but perhaps the file got corrupted during the upgrade. Another option is to download the WP pack anew, perhaps the file got corrupted during download/unzipping.

    What did you do before this happens, nothing at all, upgrade, add a plugin or a theme. Don't worry about the posts, they're savely in the database, you just need to get WP working again.

  5. thewildpony
    Member
    Posted 3 years ago #

    I tried to do the automatic update from WordPress 3.0.5. to 3.1. I'll try downloading the pack manually. It has nothing to do with the theme, right?

  6. Roy
    Member
    Posted 3 years ago #

    I expect not, but you can always try by activating Twentyten. Just rename the folder of the active theme using FTP or the file manager of your control panel and the theme will revert to Twentyten.
    But like I said, I don't expect it to be the theme.

  7. thewildpony
    Member
    Posted 3 years ago #

    Still no progress. :)

    I tried to download und unpack 3.1 manually and I did reupload the menu.php-file with no luck. Line 10 in 'the original' and in 'new file' are identical. I thought it was a 3.1 problem, so I tried to find the same file in an older version i did store 3 months ago - but I couldn't fint one.

    To me it seems like I have to change something in those lines described, the words in between parenthethes are marked in red.
    I just don't know what to write to make the action work?

    Again - thank you for trying to help!

  8. Roy
    Member
    Posted 3 years ago #

    Try the normal troubleshooting route. Change theme to Twentyten, disable all plugins, that sort of actions. You can do both these things by renaming the foldernames of your active theme and the plugins folder in general using FTP.

  9. thewildpony
    Member
    Posted 3 years ago #

    Just tried deactivating all plugins and renaming the theme to twentyten - it changed looks, but it did not help me to log in to the dashboard. Same error message, no changes.

    I have deleted all nonactivated themes from the ftpserver too.

    I'm thinking of reinstalling 3.0.5, but I don't know how to do it? Would i be a good idea anyway?

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    Your upgrade did not complete successfully.

    Try:
    - switching to the Twenty Ten theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides. You may need to try logging into your site to get this to kick in fully.

    - resetting the plugins folder by FTP or phpMyAdmin.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

    - re-running the upgrade manually using wp-admin/upgrade.php.

  11. thewildpony
    Member
    Posted 3 years ago #

    Wow - I'm back in the game! Thank you all for your help, I had to do a whole bunch of down- and uploads (and lots of cyberduck-problems: it doesn't allow me to upload folders??), but I'm now able to log in!

    I can see now that some chanches happened, the new admin-bar is added, but it still tells me in a notification that

    "An automated WordPress update has failed to complete - please attempt the update again now."

    I feel a bit afraid to try again, but well. I guess that I have to.

    Thanks again everybody!!
    Sandra

  12. luclatulippe
    Member
    Posted 3 years ago #

    Helped me too, thanks! I've noticed three of my sites suffered serious problems like this after trying to auto-upgrade to 3.1.1.

Topic Closed

This topic has been closed to new replies.

About this Topic