Support » Plugin: Guest Author » PHP Fatal Error on multisite

  • Resolved Melissa


    I have been using this plugin without issue on my network sites on a multisite setup. However, when this plugin is activated on my main site I am unable to access the network admin and also get the following error in my logs:

    PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /nas/content/live/ktagp/wp-includes/capabilities.php:640\nStack trace:\n#0 /nas/content/live/ktagp/wp-admin/network/settings.php(16): current_user_can('manage_network_...')\n#1 /nas/content/live/ktagp/wp-content/plugins/guest-author/index.php(21): require('/nas/content/li...')\n#2 /nas/content/live/ktagp/wp-settings.php(362): include_once('/nas/content/li...')\n#3 /nas/content/live/ktagp/wp-config.php(140): require_once('/nas/content/li...')\n#4 /nas/content/live/ktagp/wp-load.php(37): require_once('/nas/content/li...')\n#5 /nas/content/live/ktagp/wp-admin/admin.php(34): require_once('/nas/content/li...')\n#6 /nas/content/live/ktagp/wp-admin/network/admin.php(13): require_once('/nas/content/li...')\n#7 /nas/content/live/ktagp/wp-admin/network/index.php(11): require_once('/nas/content/li...')\n#8 {main}\n thrown in /nas/content/live/ktagp/wp-includes/capabilities.php on line 640, referer:

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author billoosijok


    I think this might’ve had to do with the way I require files in the plugin. I updated that in version 2.1. Can you test it and see?



    The error is gone and network admin is accessible. Thank you very much!

    • This reply was modified 1 month, 2 weeks ago by  Melissa.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.