• Resolved traveler

    (@visualeight)


    I developed a site locally with Local WP, uploaded to the Godaddy Managed WP hosting and have encountered new problem after new problem. I am trying to add widgets in the admin but none are appearing. The theme is setup for widgets and they worked just fine locally. I am getting these errors in the Appearance –> Widgets admin area:

    Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php on line 98
    
    Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php on line 127
    
    Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php on line 98
    
    Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php on line 121
    
    Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php on line 144
    
    Warning: foreach() argument must be of type array|object, bool given in /var/www/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php on line 121

    The above I believe are all core files, so I’m confused as to why they are throwing this error? When I go to Appearance –> Widgets, click the ‘plus’ sign to add a new widget, no widgets are available. I search for the “recent posts” widget in the search box, and it returns zero results. Also, it appears there are not any widgets available as none show up here like I get in my local version of this site.

    The WP version is 6.0, and the server is running PHP 8.0.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Widgets all gone in admin Appearance –> Widgets’ is closed to new replies.