WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-Amazon-Associate
[resolved] Fatal Error - Crashes Site (6 posts)

  1. akinschris
    Member
    Posted 2 years ago #

    Received the following message: Fatal error: Call to undefined function wp_get_current_user() in /hermes/web07/b2534/as.acstrate/public_html/wp-includes/capabilities.php on line 1039

    There are others with this issue as well.

  2. Temlakos
    Member
    Posted 2 years ago #

    You can include me in that. And by the way: scrubbing and reinstalling wp-includes doesn't cut it.

    By the way, I checked. wp_get_current_user() is defined in wp-includes/pluggable.php. That shouldn't have anything to do with WPAA. But now I cannot deactivate the plugin, because I cannot even get into the dashboard.

  3. Temlakos
    Member
    Posted 2 years ago #

    Couldn't wait anymore. I signed into my file manager and scrubbed WPAA completely. Now the site will run. E-mail me when you are ready to help me rebuild my shattered Amazon Associations.

  4. Matthew Denton
    Member
    Plugin Author

    Posted 2 years ago #

    Hi this seems to be an issue with WordPress per some other posts.

    Fix :

    You open capablities.php and add require_once(‘pluggable.php’);
    (but you need to change those quotes to single quotes) right after the opening <?php tag at the top of the file.

    As described in following Post

  5. Temlakos
    Member
    Posted 2 years ago #

    As incredible as it seems, the fault does lie with a fatal omission from the capabilities.php file in wp-includes. A simple require-once statement after the comments (but before the first class declaration) allows WPAA to function as before. Amazingly, my configuration remained intact.

    The only problem was that I scrubbed a bunch of Amazon Carousel Widget shortcodes from my articles before this fix came in. Now I have to decide: do I restore them? Or not?

    Anyway, now, it would appear, this topic should be resolved. But this is a rather urgent fix. And WordPress needs to implement this right away, and maybe push another upgrade.

  6. Matthew Denton
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, a strange issue as it is not present for all users. I am releasing a bug fix (1.7.1) to put in a check for if the wp_get_current_user function exists and if not the Admin Localization (to view content as a locale for logged in administrator) will be disabled.

    Sorry for any problems this caused.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic