Title: PHP warnings appearing in apache error log
Last modified: March 20, 2018

---

# PHP warnings appearing in apache error log

 *  [emergencyscotch](https://wordpress.org/support/users/emergencyscotch/)
 * (@emergencyscotch)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/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://redacted`
 * Here 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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [mandsconsulting](https://wordpress.org/support/users/mandsconsulting/)
 * (@mandsconsulting)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-warnings-appearing-in-apache-error-log/#post-10094853)
 * This should be fixed in the next release.

Viewing 1 replies (of 1 total)

The topic ‘PHP warnings appearing in apache error log’ is closed to new replies.

 * ![](https://ps.w.org/email-before-download/assets/icon-256x256.jpg?rev=1813522)
 * [Email Before Download](https://wordpress.org/plugins/email-before-download/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-before-download/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-before-download/)
 * [Active Topics](https://wordpress.org/support/plugin/email-before-download/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-before-download/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-before-download/reviews/)

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 1 reply
 * 2 participants
 * Last reply from: [mandsconsulting](https://wordpress.org/support/users/mandsconsulting/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/php-warnings-appearing-in-apache-error-log/#post-10094853)
 * Status: not resolved