Title: Errors since updating the plugin
Last modified: February 18, 2020

---

# Errors since updating the plugin

 *  Resolved [julsd](https://wordpress.org/support/users/julsd/)
 * (@julsd)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/errors-since-updating-the-plugin/)
 * Message: Warning: Invalid argument supplied for foreach() in /home/eymatter/public_html/
   wp-content/plugins/popup-builder/com/classes/NotificationCenter.php on line 125
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/eymatter/public_html/wp-content/plugins/popup-builder/com/classes/NotificationCenter.
   php:125) in /home/eymatter/public_html/wp-content/plugins/sg-cachepress/core/
   Supercacher/Supercacher_Helper.php on line 68
 * Everything was working fine before I upgraded the plugin … I have disabled it
   but this does not appear to have resolved the issue – can you advise?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferrors-since-updating-the-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Svetlin Nakov](https://wordpress.org/support/users/nakov/)
 * (@nakov)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/errors-since-updating-the-plugin/#post-12451987)
 * I have a temporary fix (until the plugin authors provide official updated version):
 * At line 125 in `popup-builder/com/classes/NotificationCenter.php` insert this
   line
 * `if (is_array($removedNotifications))`
 * just before the for loop:
 *     ```
       foreach ($removedNotifications as $removedNotificationId) {
       	foreach ($activeNotifications as $key => $activeNotification) {
       		if ($activeNotification['id'] == $removedNotificationId) {
       			unset($activeNotifications[$key]);
       		}
       	}
       }
       ```
   
    -  This reply was modified 6 years, 2 months ago by [Svetlin Nakov](https://wordpress.org/support/users/nakov/).
    -  This reply was modified 6 years, 2 months ago by [Svetlin Nakov](https://wordpress.org/support/users/nakov/).
    -  This reply was modified 6 years, 2 months ago by [Svetlin Nakov](https://wordpress.org/support/users/nakov/).
 *  [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * (@sygnoossupport)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/errors-since-updating-the-plugin/#post-12453868)
 * Dear [@julsd](https://wordpress.org/support/users/julsd/), [@nakov](https://wordpress.org/support/users/nakov/)
   and [@elitebsolutions](https://wordpress.org/support/users/elitebsolutions/),
 * We apologize for any inconvenience!
 * This issue has been fixed in our 3.62.1 version of the plugin.
    Please, update
   and recheck the results.

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

The topic ‘Errors since updating the plugin’ is closed to new replies.

 * ![](https://ps.w.org/popup-builder/assets/icon-128x128.gif?rev=2698840)
 * [Popup Builder - Create highly converting, mobile friendly marketing popups.](https://wordpress.org/plugins/popup-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-builder/reviews/)

## Tags

 * [foreach](https://wordpress.org/support/topic-tag/foreach/)

 * 3 replies
 * 4 participants
 * Last reply from: [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/errors-since-updating-the-plugin/#post-12453868)
 * Status: resolved