After update (21.1.4) Warning appears: Invalid argument Supplied for foreach
Hi,
after the last update to 21.1.4 there is a problem on the product page. If the shopping cart is empty and you add a product to the shopping cart then the error message appears:
Warning: Invalid argument for foreach () in /kunden/fairzone.de/web/onlineshop2017/wp-content/themes/betheme/functions/post-types/class-mfn-post-type.php on line 200
We use the child theme.
after the last update to 21.1.4 there is a problem on the product page. If the shopping cart is empty and you add a product to the shopping cart then the error message appears:
Warning: Invalid argument for foreach () in /kunden/fairzone.de/web/onlineshop2017/wp-content/themes/betheme/functions/post-types/class-mfn-post-type.php on line 200
We use the child theme.
Comments
Now,
if you will make some changes in your child theme, you don't have to
provide the informations in functions.php which files you changed - now,
it's automatically apply these changes.
To make your Child Theme work again, you have to find and replace the 'mfn_opts_show()' to 'echo mfn_opts_get()' in your modified files.
After that, everything will be working fine, we had to make that change because of the new envato rules, more about it here: https://help.author.envato.com/hc/en-us/articles/360000481243#h_674316188621522302914837
Thanks
I've replaced 'mfn opts_show ()' with 'echo mfn opts_get ()' in the child theme.
The error message is unfortunately still.
Please send us WordPress dashboard access privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.
Notice!
Please attach a link to this forum discussion.
Thanks