4 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 1+ items on Envato Market
Anhere says

Please help. I have a Warning: Invalid argument supplied for foreach() in /home/ message at the bottom of every post and I don’t know how to remove it. I have tried deactivating the plugins and theme of my website but the warning is still there. Any help would be greatly appreciated. Thank you for your time.

21 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
amabil says

Go in wp-config.php and set WP_DEBUG to false. define( ‘WP_DEBUG’, false);

4 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 1+ items on Envato Market
Anhere says

Hi, Thank you for your answer. I am sorry to ask you again but this is new to me. Can you please tell me where to find wp-config.php? Is it located in Wordpress? Thank you

21 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
amabil says

Yes, it is in wordpress folder.

4 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 1+ items on Envato Market
Anhere says

Hi Amabil,

Can you please be more specific? I can’t figure out where the folder is and I really need your help. This is the error message I receive in the post:

Warning: Invalid argument supplied for foreach() in /home/password/public_html/nameofthewebsite/wp-content/themes/extranews/functions/extra-functions.php on line 1087

If you can explain me detailed step by step answers to get this problem fixed I would greatly appreciate it. Thank you again for your time

21 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
amabil says

In this folder /home/password/public_html/nameofthewebsite/ is wp-config.php There is a line define(‘WP_DEBUG’, true) Change true to false.

by
by
by
by
by
by