4 posts
  • Has been part of the Envato Community for over 2 years
  • 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 2 years
  • 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 2 years
  • 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by