• Resolved jon.best

    (@jonbest)


    i did an update to my wp core and now cannot login to the backend. the only error message i received during upgrade was that the wp-config-sample.php couldn’t be copied (likely because i had deleted it…), but everything seemed to complete. the front end of the site is still up, and i was able to do the db upgrade.

    when i attempted to log back into the admin area, the site would throw a 500 error. i found the following error in my logs:

    [Thu Sep 04 17:49:13 2014] [error] [client 173.196.15.210] PHP Fatal error:  Class 'WP_Session_Tokens' not found in /var/www/html/wp-includes/pluggable.php on line 879, referer: ht\
    tp://omitted/wp-login.php

    i verified that the WP_Session_tokens class definition file was in my wp-includes folder.

    any ideas of what is causing pluggable to not see the session token class and how to fix it?

    thx!

Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter jon.best

    (@jonbest)

    wonderful! thank you so much george! you were exactly right; the session.php require statement was completely missing! easy fix 🙂 thx so much!

    The settings file was wrong at line 122 … after updating I received an error where it called sessions.php. I did notice that it was not in any of my file structure.

    I’ve downloaded a fresh copy of WordPress and am uploading it now. I’ll let you know if it corrects the problem.

    I did have to download a fresh copy and upload new files. Turns out when it auto-updated there were pieces that didn’t update. In my case specifically session.php and references to it in the wp-settings.php. Since it appeared that those files were incomplete, I decided it would probably be best to upload new files.

    Worked great!

    Thanks for all your help.

    OK i fixed my by downloading WordPress manually. Then i uploaded the new copy of session.php and wp-settings.php. And it worked.

    sposcar > YOU’RE GREAT!! SOLVED!!! Works like a charm!!
    Thank You!!!!
    Alessandro

    Thank you George Stephanis! Copying those files over worked!

    Thanks for the help! This solution worked for me too. I also manually updated and got the ‘Fatal error….pluggable.php’

    I only had to replace my wp-settings.php file with the one George gave to fixed it. No other steps were necessary: https://github.com/WordPress/WordPress/blob/4.0/wp-settings.php

    Just wanted to note for anyone else trying to fix this problem that the zip download of WP 4.0 did not include a wp-settings.php file. The update for 3.9 does have a settings file and line 122 does have include session.php like it is supposed to. I’m not sure why replacing this file worked, unless I failed to upload wp-settings.php file during the last update, which is possible.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Just wanted to note for anyone else trying to fix this problem that the zip download of WP 4.0 did not include a wp-settings.php file.

    When did you last download the zip? I just checked and there is indeed a wp-settings.php file there.

    I am new to all this…only know the very basics and no coding. I downloaded the latest version 4.0 manually today, along with all new plug ins available as of today 9/10/14. Now, I cannot log onto my admin site, as I’m locked out with this:
    Fatal error: Class ‘WP_Session_Tokens’ not found in /home/content/08/4739108/html/wp-includes/pluggable.php on line 879

    Also, before this happened, I went to follow what I thought were simple directions from the forum on how to add a video from my files onto my main, home page and in the process, I cannot see any of my pictures throughout my entire site…only coding.

    Please help?? I’m about to lose it after spending 5 hours straight on this and No Food since 9pm last night!

    Do I need someone to place a code for me…and if so, how do I even get in to do so, if I’m locked out with this fatal error?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Please try the solution posted earlier in the thread. That should solve your problem. If not, please open your own thread: https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

    This is the very first time I encountered an upgrade problem (4.0). I checked some of the inputs here but none has directly solve the fatal error…pluggable.php (no offense, it’s maybe just me not being able to follow instructions). Anyway, I just copied wp-login.php and wp-settings.php to the root directory and I was able to log back in.

    Hope this helps.

    My blog is self hosted http://www.ecommnow.com/blog I updated to 4.0 and right in the middle of the update, it booted me out completely and now it will not let me log back in. I am not that experienced with WordPress, or coding. Please help!

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Please try the solution posted earlier in the thread. That should solve your problem. If not, please open your own thread: https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

    Thanks for all the positive stuff on replacing the wp-settings file (which is in the 4.0zip).Because the error message said the problem was in the pluggable file this is the one I was working with. I would never have found replacing the wp-settings solution on my own even though this had to be a manual update as the automatic kept timing out on my local server, although not on the live site. There is obviously a widespread problem here. Thanks again!!!!!!

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘can't login after 4.0.0 update’ is closed to new replies.