{"id":13567062,"date":"2020-10-22T11:13:08","date_gmt":"2020-10-22T11:13:08","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-network-admin\/"},"modified":"2020-10-22T11:13:08","modified_gmt":"2020-10-22T11:13:08","slug":"error-network-admin","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-network-admin\/","title":{"rendered":"Error Network Admin"},"content":{"rendered":"<p>First off, thanks for the great plugin.<br \/>\nWe use it on a single site of an multisite installation. It works as intendend, but as soon as I try to enter the network admin area, we get a fatal error:<\/p>\n<pre><code>\nFatal error: Uncaught Error: Call to undefined function wp_get_current_user() in \/home\/httpd\/wp.kupf.at\/wp-includes\/capabilities.php:668 Stack trace: #0 \/home\/httpd\/wp.kupf.at\/wp-admin\/network\/settings.php(16): current_user_can(&#039;manage_network_...&#039;) #1 \/home\/httpd\/wp.kupf.at\/wp-content\/plugins\/admin-menu-groups\/admin-menu-groups.php(15): require_once(&#039;\/home\/httpd\/wp....&#039;) #2 \/home\/httpd\/wp.kupf.at\/wp-settings.php(377): include_once(&#039;\/home\/httpd\/wp....&#039;) #3 \/home\/httpd\/wp.kupf.at\/wp-config.php(170): require_once(&#039;\/home\/httpd\/wp....&#039;) #4 \/home\/httpd\/wp.kupf.at\/wp-load.php(37): require_once(&#039;\/home\/httpd\/wp....&#039;) #5 \/home\/httpd\/wp.kupf.at\/wp-admin\/admin.php(34): require_once(&#039;\/home\/httpd\/wp....&#039;) #6 \/home\/httpd\/wp.kupf.at\/wp-admin\/network\/admin.php(13): require_once(&#039;\/home\/httpd\/wp....&#039;) #7 \/home\/httpd\/wp.kupf.at\/wp-admin\/network\/plugin-install.php(15): require_once(&#039;\/home\/httpd\/wp....&#039;) #8 {main} thrown in \/home\/httpd\/wp.kupf.at\/wp-includes\/capabilities.php on line 668<\/code><\/pre>\n<p>Only thing to prevent this is to comment out the line require_once(&#8220;settings.php&#8221;);<\/p>\n<p>Would be great, if you could take a look into this.<br \/>\nThanks!<\/p>\n","protected":false},"template":"","class_list":["post-13567062","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13567062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13567062\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13567062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}