Title: Multisite error
Last modified: March 6, 2020

---

# Multisite error

 *  Resolved [Dan Zakirov](https://wordpress.org/support/users/alexodiy/)
 * (@alexodiy)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multisite-error-22/)
 * 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](https://wordpress.org/support/users/awordpresslife/)
 * (@awordpresslife)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multisite-error-22/#post-12540577)
 * Hi [@alexodiy](https://wordpress.org/support/users/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 6 years, 3 months ago by [A WP Life](https://wordpress.org/support/users/awordpresslife/).

Viewing 1 replies (of 1 total)

The topic ‘Multisite error’ is closed to new replies.

 * ![](https://ps.w.org/weather-effect/assets/icon-256x256.gif?rev=2387071)
 * [AWPLife Weather Effects](https://wordpress.org/plugins/weather-effect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weather-effect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weather-effect/)
 * [Active Topics](https://wordpress.org/support/plugin/weather-effect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weather-effect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weather-effect/reviews/)

## Tags

 * [birthday plugin](https://wordpress.org/support/topic-tag/birthday-plugin/)
 * [snow plugin](https://wordpress.org/support/topic-tag/snow-plugin/)
 * [weather plugin](https://wordpress.org/support/topic-tag/weather-plugin/)

 * 1 reply
 * 2 participants
 * Last reply from: [A WP Life](https://wordpress.org/support/users/awordpresslife/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/multisite-error-22/#post-12540577)
 * Status: resolved