Invalid argument supplied for foreach() error

Hi

I have got some error message lately:
Warning: Invalid argument supplied for foreach() in /data/web/virtuals/137107/virtual/www/domains/halove-centrum.cz/haatto/wp-content/plugins/cornerstone/includes/utility/element-api.php on line 210

http://halove-centrum.cz/domains/halove-centrum.cz/haatto/

How can I fix it?

Regards
Dan

Hey Dan,

That could be a result of version incompatibility between an old version of X and a new version of Cornerstone or vice versa. Always, ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

It’s also a best practice to disable the display of errors in a live site. You can disable the error display by following the debugging documentation of WordPress here: https://wordpress.org/support/article/debugging-in-wordpress/

You can follow the example setup but please try to understand what each line of WordPress configuration does.

Thanks.

Hi

I have updated Wordpress than X, PHP. But something go wrong… I can not even log in. I did not check Cornestone version … It is possible to download Cornestone from somewhere? I would to update it manually if it will help.
Check the error: http://halove-centrum.cz/domains/halove-centrum.cz/haatto/

Dan

Hey Dan,

To obtain Cornerstone please follow the Manual Update section here https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 and then you can update Cornerstone via FTP by following the steps mentioned under Manual Plugin Update Via FTP in the same link shared above.

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.