Profile Page Warning Messages
- This topic has 2 replies, 2 voices, and was last updated 8 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
I am receiving the following 4 error messages on the profile pages for my cbox installation. Any help would be greatly appreciated:
Warning: Invalid argument supplied for foreach() in /home/bgcdmlne/public_html/commons.bgc.bard.edu/wp-includes/functions.php on line 3508
Warning: Invalid argument supplied for foreach() in /home/bgcdmlne/public_html/commons.bgc.bard.edu/wp-content/themes/cbox-theme/engine/includes/buddypress-cbox.php on line 144
Warning: Invalid argument supplied for foreach() in /home/bgcdmlne/public_html/commons.bgc.bard.edu/wp-includes/functions.php on line 3508
Warning: Invalid argument supplied for foreach() in /home/bgcdmlne/public_html/commons.bgc.bard.edu/wp-content/themes/cbox-theme/engine/includes/buddypress-cbox.php on line 144
Hi Jesse –
It sounds like your hosting provider has PHP error reporting turned up too high. These kinds of minor warnings are not harmful to your site, and they should not be appearing on the front end.
You may consider contacting your host to ask about a lower error level, but in the meantime you should be able to hide the warning messages by opening your wp-config.php file in your FTP client, and adding the following lines just above “/* That’s all, stop editing! Happy blogging */”:
ini_set( 'display_errors', 'Off' ); ini_set( 'error_reporting', E_NONE );
Thank you! That worked. I will also contact my host regarding adjustment of the error reporting.
Jesse