• Fatal error: Call to undefined function wp_get_current_user() in /home/justadsh/public_html/wp-includes/capabilities.php on line 1028
    What does it mean and how do I fix it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    Thread Starter midjco

    (@midjco)

    Is this a guess or factual repair procedure? I am worried because this blog has tons of content that I dont want to lose.

    I am not belittling you I dont know your level of expertise.

    Thanks

    I dont know your level of expertise

    Check my profile.

    Thread Starter midjco

    (@midjco)

    Good profile. You certainly appear to be an expert on the workings of WP as I am certainly not. My expertise in WP is nill and I hope I didn’t offend you because that was not my intention.
    I thought that maybe I could go into the affected file and edit the line said to be affected. I am not an expert therefor I asked for help. I appreciate your instruction.

    I just want to make sure that I dont lose my blog because I have lost 2 so far by messing around trying to fix them and wp seems to be finnicky when tooled with.

    Can I just go into the database in cPanel and repair it instead of uploading all of the files again? or edit the affected file? Is uploading new files the only option?

    To whatever I need to do to update whatever needs updating…

    I will follow your advice.

    Never edit core files unless you really, really, know what you’re doing and understand how WordPress works. The error you’re seeing is a common symptom of a failed upgrade. Re-uploading the files should correct any corrupt/missing files. After that, you might want to try re-running the upgrade using wp-admin/upgrade.php.

    Thread Starter midjco

    (@midjco)

    I replaced all files as instructed (not wp-content). Logged out and back in. went to justadash.com/wp-admin/upgrade.php, got message saying No Update Required
    Your WordPress database is already up-to-date!

    Went back into control panel and still showing 2 updates needed and when I click the update button I still get the original error “Fatal error: Call to undefined function wp_get_current_user() in /home/justadsh/public_html/wp-includes/capabilities.php on line 1028”

    Any other suggestions? I’m lost…

    Can you delete the entire wp-includes folder and upload a fresh copy?

    Thread Starter midjco

    (@midjco)

    I deactivated the ad inserter plugin and everything is ok now. That sucks though because I want my adsense ads in my blog. Do you know a good stable plugin for this?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘can someone help with update error please?’ is closed to new replies.