Title: PHP Warning in Error Log
Last modified: August 30, 2016

---

# PHP Warning in Error Log

 *  Resolved [nerdworker](https://wordpress.org/support/users/newtonsongbird/)
 * (@newtonsongbird)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/)
 * I noticed the following in my php_errorlog:
 * `PHP Warning: Invalid argument supplied for foreach() in /home/ntinfrag/public_html/
   wp-content/plugins/bnfw/includes/engine/class-bnfw-engine.php on line 47`
 * It looks like it’s referring to where the “to” email fields are retrieved before
   sending a notification.
 * I don’t know for sure, but this may have to do with a notification I have that
   is leaving the “to” field blank and adding in with code. It may be rectified 
   with a simple check to be sure the `$email` variable is not empty?
 * Thanks.
 * [https://wordpress.org/plugins/bnfw/](https://wordpress.org/plugins/bnfw/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/#post-6407131)
 * Hi newtonsongbird,
    Thanks for your message and possible fix. I’ll investigate
   and look to issue a fix soon.
 * I’ll leave this thread open until I have something.
 * Thanks,
    Jack
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/#post-6407253)
 * Hi,
 * Can you tell me if you’ve modified the plugin at all? I can’t see why an error
   would shows less this was the case.
 * Thanks,
    Jack
 *  Thread Starter [nerdworker](https://wordpress.org/support/users/newtonsongbird/)
 * (@newtonsongbird)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/#post-6407258)
 * Jack,
 * I have not modified the plugin in any way. As a developer, I would never directly
   modify a plugin that would then be overwritten with updates.
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/#post-6407271)
 * Hi newtonsongbird,
    Ok, no probs.
 * I still can’t quite find why that’s appearing but i’ll try to make sure it’s 
   fixed regardless in the next version.
 * I’ll keep this thread open until then.
 * Thanks,
    Jack
 *  Plugin Author [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * (@voltronik)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/#post-6407312)
 * This should now be fixed in 1.3.3, just released.
    Let me know if you have any
   more issues.
 * Thanks,
    Jack

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Warning in Error Log’ is closed to new replies.

 * ![](https://ps.w.org/bnfw/assets/icon.svg?rev=2531573)
 * [Customize WordPress Emails and Alerts - Better Notifications for WP](https://wordpress.org/plugins/bnfw/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bnfw/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bnfw/)
 * [Active Topics](https://wordpress.org/support/plugin/bnfw/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bnfw/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bnfw/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jack – BNFW](https://wordpress.org/support/users/voltronik/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/php-warning-in-error-log-2/#post-6407312)
 * Status: resolved