• Resolved Dan Zakirov

    (@alexodiy)


    Hello. The situation is this – multisite, the installation was successful, but soon this error appeared:

    [Thu Mar 05 07:11:25.588935 2020] [php7:warn] [pid 13914] [client 185.86.93.30:60806] PHP Warning: Invalid argument supplied for foreach() in /wp-includes/blocks.php on line 477... – these are logs

    This error is caused when I go to the site network /wp-admin/network/

    When debug is enabled, the following is displayed, on the same page

    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /wp-includes/capabilities.php:652 Stack trace: #0 /wp-admin/network/settings.php(16): current_user_can('manage_network_...') #1 /wp-content/plugins/weather-effect/weather-effect.php(39): require_once('/var/www/macro/...') #2 /wp-settings.php(308): include_once('/var/www/macro/...') #3 /wp-config.php(102): require_once('/var/www/macro/...') #4 /wp-load.php(37): require_once('/var/www/macro/...') #5 /wp-admin/admin.php(34): require_once('/var/www/macro/...') #6 /wp-admin/network/admin.php(13): require_once('/var/www/macro/...') #7 /wp-admin/network/index.php(11): require_once('/var/www/macro/...') #8 in /wp-includes/capabilities.php on line 652

Viewing 1 replies (of 1 total)
  • Plugin Author A WP Life

    (@awordpresslife)

    Hi @alexodiy,

    The code in file weather-effect.php at line number 39 as below:

    require_once('settings.php');

    Try to update the file code like below:

    include('settings.php');

    Maybe this will fix the issue.
    And let us know, we will push a new version update with this code.

    Thanks

    • This reply was modified 4 years, 8 months ago by A WP Life.
Viewing 1 replies (of 1 total)
  • The topic ‘Multisite error’ is closed to new replies.