WordPress.org

Forums

[closed] Problem upgrading to 3.7 (30 posts)

  1. eichste
    Member
    Posted 1 year ago #

    I upgraded from 3.6 to 3.7 and now I cannot access my site. I get this message:Fatal error: Call to undefined function wp_get_current_user() in /home/eichste/tackshots.com/wp-includes/user.php on line 215
    After I got this message, I foolishly tried to update again and over-wrote my old (backup) folders. Ouch! I do have current database backups from before the update, however.
    My site is - tackshots.com

    What can I do?

    Thanks in advance for your kind help,

    Jim

  2. andreimoto
    Member
    Posted 1 year ago #

    hey i go to your site and got it normally again, how you fix it? i have same error too... :(

  3. Vinay Desai
    Member
    Posted 1 year ago #

    Same problem here.....
    on past a hour i upgraded wp 3.6 to 3.7 and get same error...
    Fatal error: Call to undefined
    function wp_get_current_user()
    in /home/u734420510/
    public_html/wp-includes/
    user.php on line 215
    ....
    Please give solution to this problem. ASAP...
    .....
    My Site : http://MyapkBox.com
    .....
    Even i unable to visit my site!!!!!
    PLEASE Give Solution ASAP : (

  4. eichste
    Member
    Posted 1 year ago #

    It's not fixed. Visitors see the site ok (with a few glitches) but when I attempt to log-in at wp-admin, I get the error message that I reported. I should note that I used the automatic update process and did not de-activate plugins. I am afraid to attempt a manual upgrade until I can get some advice.

    If you have the same problems, perhaps others are, too, and we'll get a quick resolution.

    Thanks,

    Jim

  5. sforsberg
    Member
    Posted 1 year ago #

    I had the same issue with a plugin I am developing. It could be your theme, a plugin that is initialized improperly, or a function that is calling core functions of WordPress too early during execution.

    If you have access to your files on your server (cPanel's FileManager, FTP, or equivalent) you can disable your plugins by renaming the /wp-content/plugins/ folder to something like /wp-content/plugins_bak/ and then see if you can at least access your wp-admin section. If so, then that means the issue is with a plugin you are using. You can rename the plugins folder back to the original plugins then you will have to manually rename each plugin's folder individually and check the admin section after you change each one to see if you gain access.

    I would start with plugins that are not as popular and maybe outdated first, then work your way from there.

    Hope you get this sorted out.

  6. photoMaldives
    Member
    Posted 1 year ago #

    Same error for me, too :-( 4 of my sites worked perfectly, but the 5th and final one came up with this -

    Call to undefined function wp_get_current_user() in /home/.../public_html/.../wordpress/wp-includes/user.php on line 215

    A quick google and I ended up here - looks like it's not such a common error ? Any ideas on the best way to fix ?

    EDIT
    Thanks for your detailed advice, sforsberg - I use about 60 active plugins, so it might take me a while, but I'll get started !

  7. udobnoposvetu
    Member
    Posted 1 year ago #

    I was able to quickly solve my problems by reuploading only the old includes directory. For now the site works again...

  8. Vinay Desai
    Member
    Posted 1 year ago #

    Yah...
    Thanks "Sberg"
    Renamed Dictionary Plagins and till now i can acsess my site....
    not all right on my site..
    now i going find which plugin generating problem!!!!!
    .......
    My Site: http://MyapkBox.Com
    .......
    Thanks a Lot.. For Quick Replay. :)

  9. margje
    Member
    Posted 1 year ago #

    I've upgraded several blogs to 3.7 After upgrading the yellow statusbar 'Wordpress 3.7 available!' stays on top of the admin menu.

    What's wrong?

  10. photoMaldives
    Member
    Posted 1 year ago #

    Well, that was quick, and bad news for me - renaming the PLUGINS file didn't work, so it looks like it must be my theme, right ?

    Both my site and the admin are completely down - I get a single line error message.

    Thanks, udobnoposvetu - I will give that a try next.

    margje - sounds like a different problem - maybe start your own topic thread ?

  11. J. Alberto Gonzalez
    Member
    Posted 1 year ago #

    Hello,

    I was trying to install WordPress 3.7, and during and after the installation I've got this message:

    Parse error: syntax error, unexpected $end in /home/thequali/public_html/wp-admin/includes/update.php on line 341

    What can I do to be able to enter again in my blog with wp-admin and fix this? Please I need detailed explanations, I am a very beginner user.

    Many thanks in advance,
    Alberto

  12. shadez
    Member
    Posted 1 year ago #

    eichste: you faced the problem during the upgrade or post upgrade?
    wp_get_current_user() is a valid function AFAIK, i use it in my functions.php and things are fine with 3.7.

    udobnoposvetu: you are creating more trouble that way IMO.. pluggable.php (which contains wp_get_current_user) itself has 19 file diffs compared to 3.6.1, more than 164 files have changed, 3 new JS files of zxcvbn (the new password security thingie) and certificates and date.php are newly introduced..

  13. andreimoto
    Member
    Posted 1 year ago #

    thanks sforsberg, i rename it
    yep, i can access my web again, seem troublemaker from the plugin (i still search what plugin that make it trouble) compatibility issues.

  14. shadez
    Member
    Posted 1 year ago #

    J. Alberto Gonzalez: looks like a theme problem. what theme do you use?

  15. photoMaldives
    Member
    Posted 1 year ago #

    OK - I've found a fix for the problem in the original post -

    Call to undefined function wp_get_current_user() in /home/.../public_html/.../wordpress/wp-includes/user.php on line 215

    that doesn't require the uploading of the entire INCLUDES directory.

    You need to add this line to the top of your CAPABILITIES.PHP file -

    require_once ('pluggable.php');

    so it looks like this -

    <?php
    
    require_once ('pluggable.php');
    /**
     * WordPress Roles and Capabilities.

    Thanks to this post from 2010 and this more recent post with screenshots. For reference - there's also mention here to a specific plugin giving a similar error, which might be useful to someone.

    Obviously editing core WP files like this is not recommended as a permanent fix, as it may cause other issues, and you'll need to apply the fix every time you upgrade WP. But at least my site is back online again, till a more elegant solution is worked out by the coders out there.

  16. danbailan
    Member
    Posted 1 year ago #

    Yup same problem with Call to undefined function wp_get_current_user() in wp-includes/user.php on line 215

    I followed the plugins method using ftp and isolated the problem to be, almost typically if you follow the other threads on the forum....NEXTGEN GALLERY.

    I am running version 2.0, their major update as I have not dared touch it since then, having lost everything for 24 hours.

  17. J. Alberto Gonzalez
    Member
    Posted 1 year ago #

    shadez: I dont't know exactly which is my theme, any of the defaults from WordPress Socrates (my site is thequalityadvisor.com)

    My problem came after upgrading to WordPress 3.7. I don't know how to arrange this because I haven't access now to wp-admin. I've got the error message about parse error in update.php.

    Can you or somebody explain me what steps I have to do to re-install the previous version of WP without loosing anything (I didn't do backup) or how to fix or replace this update.php file?

    Many thanks.

  18. shadez
    Member
    Posted 1 year ago #

    Alberto: by your error message it looks like a problem in calling a theme hook.

    I am unsure about a 'degrade' to 3.6.1 since there seems to be a definite database change and your database might have got updated already!

    to upgrade you will have to rely on FTP now and go through this process:
    http://codex.wordpress.org/Upgrading_WordPress_Extended

    if you wish to take a chance, you could try to switch back theme to twentythirteen and install. that is by:
    1. FTP into your account and navigate to 'wp-content/themes/' folder
    2. 'MOVE' all theme folders except 'twentythirteen' to another directory or sub-folder. Eg: make a folder called 'temp' and move into it. this will make wordpress the only remaining theme (twentythirteen) active.
    3. run update again by entering:
    your-website/wp-admin/upgrade.php
    to be on the safer side, you should do this after executing the first 4 steps mentioned in the link above.

  19. J. Alberto Gonzalez
    Member
    Posted 1 year ago #

    shadez: Many thanks for so detailed explanation. I will try to follow this process you propose. Then I will tell you about it.

  20. danbailan
    Member
    Posted 1 year ago #

    It does look like the fix outlined by photomaldives - thank you - is working.

    For reference, theme for me is graphene, plugin causing the difficulties is nextgen gallery, version running 2.0.

    Following the steps outlined here enabled me to quickly identify the problem plugin via ftp access to the server, so it is a good place to start.

    As to the ultimate solution, editing the capabilities.php at core does not seem right so let us hope a solution arises by us airing this both here and I will also post across in the very long problem forum for nextgen.

  21. Vinay Desai
    Member
    Posted 1 year ago #

    Thanks a lot photoMaldives ,
    Simply fixed the problem by editing capabilities.php
    Now Every Thing is all Right.
    .....
    My Site: http://myapkbox.com
    ....
    Thanks a Lot. _|_

  22. udobnoposvetu
    Member
    Posted 1 year ago #

    shadez: well it at least solved my problem temporarily. I can use my site and also access admin... So for now I will wait to see if some solution comes up as it seams lots of us are having problems.

    and all my past WP updates were without problems, for two year or even more now... So I am not used to any problems ;)

  23. shadez
    Member
    Posted 1 year ago #

    ^ this is what they say for Basie, "This release features some of the most important architectural updates we’ve made to date". so if i were you i would be concerned.. :)
    http://wordpress.org/news/2013/10/basie/

  24. veliseremet
    Member
    Posted 1 year ago #

    I am using multi-site. After update to 3.7 widgets are not working anymore. Don't update it! Because this version has many problem.

  25. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Everyone - please read:

    People, posting in another person's thread makes it harder to get help here. Start by reading this:

    http://wordpress.org/support/topic/wordpress-37-master-list?replies=5

    In particular:

    Do make your own topic unless you are using the exact same version of WordPress on the same physical server hosted by the same hosts with the same plugins, theme and configurations as the original poster. You may find it weird, but it will be easier for us to help you specifically if you have your own topic.

  26. Mike Shupp
    Member
    Posted 1 year ago #

    Yup, same here -- thanks photoMaldives your posted fix allowed my v3.6.1 to v3.7 update to complete. I tried similar edits to CAPABILITIES.PHP as described elsewhere, but to no avail; yours worked.

  27. techdruid
    Member
    Posted 1 year ago #

    One of my customers had this same problem this morning. Here was my fix.

    1) Restored from the backup from 30 hours ago.
    2) Upgraded the NextGEN Gallery by Photocrati plugin to version 2.0.33.
    3) Upgraded WordPress to version 3.7

    All is well. Thanks to others who indicated NextGEN as the likely culprit. Saved me the hassle. ;-)

    Richard

  28. eichste
    Member
    Posted 1 year ago #

    Thanks everyone.

    Yes, making the change to capabilities.php allowed me to complete installation.

    But the new version doesn't allow important features of my theme to be displayed properly. (Featured images from media don't display in the posts and my site's front page doesn't show the images that link to the posts, just empty squares). My theme is Autofocus.

    Since I overwrote my backup (I still have another from ten months and a dozen posts ago on my local computer), I'm going to try to manually upgrade to 3.61 by replacing admin and includes folders and overwriting content. And replacing corresponding files in root. I'm prepared to restore my database with phpMyAdmin.

    Is there anything that I should be worried about?

    Thanks in advance for your help.

  29. WPyogi
    Forum Moderator
    Posted 1 year ago #

    @eichste - you should start your own thread - as per:

    Do make your own topic unless you are using the exact same version of WordPress on the same physical server hosted by the same hosts with the same plugins, theme and configurations as the original poster. You may find it weird, but it will be easier for us to help you specifically if you have your own topic

  30. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Anyone else who still needs help, please also start a new thread - this one is quite jumbled and hard to tell who's still having problems.

Topic Closed

This topic has been closed to new replies.

About this Topic