• Resolved bbdesignpa

    (@bbdesignpa)


    When I upgraded from Version 1.7 to Version 1.8, I get this:

    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in D:\site.dev\wwwroot\wp-includes\capabilities.php:1073
    Stack trace: #0 D:\site.dev\wwwroot\wp-content\plugins\restore-classic-widgets\restore_classic_widgets.php(71): is_super_admin()
    #1 D:\site.dev\wwwroot\wp-settings.php(447): include_once('D:\\site.dev...')
    #2 D:\site.dev\wwwroot\wp-config.php(104): require_once('D:\\site.dev...')
    #3 D:\site.dev\wwwroot\wp-load.php(50): require_once('D:\\site.dev...')
    #4 D:\site.dev\wwwroot\wp-blog-header.php(13): require_once('D:\\site.dev...')
    #5 D:\site.dev\wwwroot\index.php(17): require('D:\\site.dev...')
    #6 {main} thrown in D:\site.dev\wwwroot\wp-includes\capabilities.php on line 1073
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bill Minozzi

    (@sminozzi)

    Hi bbdesignpa

    Thanks for let me know.

    It is working in our server but I will double check and let you know quickly.

    Cheers,
    Bill

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi bbdesignpa,

    The wp_get_current_user is a WordPress function.
    Anyway, now I forced WordPress to load it before to call.
    Please, try the version 2.0, just uploaded.

    Cheers,
    Bill

    Same here, it’s definitely your plugin that caused it:

    [STDERR] PHP Fatal error:  Uncaught Error: Call to undefined function wp_get_current_user() in /var/www/html/wp-includes/capabilities.php:1073
    Stack trace:
    #0 /var/www/html/wp-content/plugins/restore-classic-widgets/restore_classic_widgets.php(71): is_super_admin()
    #1 /var/www/html/wp-settings.php(447): include_once('...')
    #2 /var/www/html/wp-config.php(86): require_once('...')
    #3 /var/www/html/wp-load.php(50): require_once('...')
    #4 /var/www/html/wp-blog-header.php(13): require_once('...')
    #5 /var/www/html/index.php(17): require('...')
    #6 {main}
      thrown in /var/www/html/wp-includes/capabilities.php on line 1073
    Thread Starter bbdesignpa

    (@bbdesignpa)

    I no longer get the error, thanks!

    Plugin Author Bill Minozzi

    (@sminozzi)

    You are welcome.
    I’m glad to heard it is working fine.
    Please, leave us a 5 star review:
    https://www.ads-software.com/support/plugin/restore-classic-widgets/reviews/#new-post

    Plugin Author Bill Minozzi

    (@sminozzi)

    Hi Paul,

    Please, update to version 2.0

    Cheers,
    Bill

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Version 1.8 Fatal Error’ is closed to new replies.