PHP warnings appearing in apache error log
-
Hello,
The following warning keeps appearing in the PHP error log on my web server (apache); although the plugin appears to be working at first glance I am unsure whether this error is breaking functionality somehow:
AH01071: Got error 'PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/email-before-download/public/class-email-before-download-public.php on line 75\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/email-before-download/public/class-email-before-download-public.php on line 79\n', referer: https://redactedHere are the two offending lines:
---->foreach ($postData['downloads'] as $download){ $tmp = explode('|', $download); $links[$tmp[0]]['title'] = $tmp[1]; } ---->foreach ($postData['settings'] as $item){ $tmp = explode('|',$item); $settings[$tmp[0]] = $tmp[1]; }Running the latest version of WordPress on Apache + PHP7 with the Onepress theme.
The topic ‘PHP warnings appearing in apache error log’ is closed to new replies.