#81028 Repeated PHP warning for social.php file
Eloise 1 week, 2 days ago
Hi: We have been getting repeated PHP warnings for the following:
<p class=”p1″>PHP Warning: Invalid argument supplied for foreach() in /XXX/client_sites/XXXX/wp-content/themes/jupiter/views/header/global/social.php on line 70</p>
Though it is just a warning, it is creating a massive error_log for us so I wanted to bring it to your attention.
we are on version 6.7 running PHP 7.3.21 on AWS EC2 server.
Thanks and appreciate the help.Amir Rather Support Team 1 week, 1 day ago
This is just a warning, try adding the below lines to the wp-config.php file in your website root,
ini_set('log_errors','On'); ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
Looking forward to your feedback 🙂