Title: &#8216;Creating default object from empty value&#8217; error
Last modified: November 19, 2022

---

# ‘Creating default object from empty value’ error

 *  Resolved [njwp](https://wordpress.org/support/users/njwp/)
 * (@njwp)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-error-4/)
 * We have an auto popup on time-delay with a cookie set on popup close to not repeat
   for 1 month. It displays on all pages of the website
 * We use the Cerber plugin for security
 * With Cerber we blocked the access to wp-login.php
 * With this setup if you go to wp-login.php then the page is blocked (shows error
   404) as expected but there is a warning in the error_log for popupmaker:
 * PHP Warning: Creating default object from empty value in /wp-content/plugins/
   popup-maker/classes/Site/Popups.php on line 173
 * So not a real error in the sense that it would be expected that things may not
   behave correctly on a blocked wp-login.php page however I did find a way to avoid
   these errors.
 * I had Cerber set to use this setting ‘use 404 template from active theme’ for
   the blocked wp-login.php page
 * If I changed that setting to ‘display simple 404 page’ then popupmaker is no 
   longer logging warnings.
 * Posting this here in case others are getting the same error. Took me a while 
   to troubleshoot to find which URL was triggering it as it was too intermittent
   to be from all pages.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-error-4/#post-16222384)
 * Hi [@njwp](https://wordpress.org/support/users/njwp/),
 * Thank you very much for taking the time to post your findings regarding the error
   you encountered along with your security plugin, Cerber . This will be helpful
   for anyone who will come across the same issue.
 * Let us know if we can assist you further regarding this. 🙂

Viewing 1 replies (of 1 total)

The topic ‘‘Creating default object from empty value’ error’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kim L](https://wordpress.org/support/users/kimmyx/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/creating-default-object-from-empty-value-error-4/#post-16222384)
 * Status: resolved