Hi team,
My site has recently encountered an issue whereby the site logo no longer appears in the header of the page. The following error is printed to the screen in its place:
Warning: Invalid argument supplied for foreach() in /var/sites/5/50yearstorm.co.uk/public_html/wp-content/plugins/so-widgets-bundle/so-widgets-bundle.php on line 785
Warning: count(): Parameter must be an array or an object that implements Countable in /var/sites/5/50yearstorm.co.uk/public_html/wp-content/themes/vantage/functions.php on line 321
I’m using the Vantage theme with the Site Origin widgets bundle, both are up to date, as is WordPress. I have also tried updating the PHP version on my server to 7.4 which hasn’t fixed the issue.
I’m at a loss as to what the issue is, though the warnings suggest it’s between Vantage and the Site Origin widgets bundle. Any help would be greatly appreciated.
The site is https://50yearstorm.co.uk
Many thanks in advance,
Andy
Hi Andy
Thanks for reaching out.
Do you have FTP access to your server? If not, most hosts offer a file manager. If possible, it’s best to download and edit your wp-config.php file which is in the WordPress root folder and change WP_DEBUG from true to false. If you’re troubleshooting an issue you can set debug to true but usually, for a live site, you’ll set it to false or at least set error display to false which is another option.
To resolve the logo issue, please, head to AppearanceWidgets, is there perhaps an empty widget in the Masthead widget area? The Masthead widget area replaces the contents of the header. If you remove the empty widget, the widget area will no longer display.
Hi Andrew,
Thanks so much for your help as
I've been pulling my hair out over this!
Weirdly there were no empty blocks in the masthead widget area, or nothing that WordPress would let me delete anyway. Though going via
Appearance>customise>widgets>Masthead did show an empy container which I could delete there. Sure enough this fixed the issue.
Thanks so much for your help!
Andy
Super, glad to hear that helped.
As questions arise in the future, please, let us know.
Cheers for now :)