Title: PHP Warning: Undefined array key “”
Last modified: January 11, 2025

---

# PHP Warning: Undefined array key “”

 *  Resolved [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/)
 * Hi there,
 * I’ve been using your plugin for a few years and it works well, thank you. If 
   you can please advise how to correct this php warning which appears over and 
   over in my server log:
 * Got error ‘PHP message: PHP Warning: Undefined array key “” in /home/websitename/
   public_html/wp-content/plugins/woo-notification/frontend/notify.php on line 369;

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

 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18240505)
 * Hi,
 * Thank you for reaching out to us.
 * We just pushed an update which addressed this issue. Can you please update the
   plugin and check if the issue persists?
 * Best regards.
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18240917)
 * Thank you, the update fixed the issue and there are no more php errors.
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18242240)
 * Thank you for the confirmation.
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18242399)
 * Unfortunately I marked the topic as resolved too soon. The PHP error log now 
   shows multiple instance of this error:
 * [14-Jan-2025 01:47:26 UTC] PHP Warning: Undefined array key “” in /home/website
   name/public_html/wp-content/plugins/woo-notification/frontend/notify.php on line
   369
 * [14-Jan-2025 01:06:03 UTC] Cron reschedule event error for hook: action_scheduler_run_queue,
   Error code: could_not_set, Error message: The cron event list could not be saved.,
   Data: {“schedule”:”every_minute”,”args”:[“WP Cron”],”interval”:60}
   thrown in /
   home/website name/public_html/wp-content/plugins/woo-notification/frontend/notify.
   php on line 365
 * Stack trace:
   [14-Jan-2025 01:02:38 UTC] PHP Fatal error: Uncaught Error: Call
   to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::get_billing_first_name()
   in /home/website name/public_html/wp-content/plugins/woo-notification/frontend/
   notify.php:365thrown in /home/website name/public_html/wp-content/plugins/woo-
   notification/frontend/notify.php on line 365 WP_Hook->do_action() 2 /home/website
   name/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
   1 /home/website name/public_html/wp-includes/class-wp-hook.php(324): VI_WNOTIFICATION_F_Frontend_Notify-
   >init_scripts() 0 /home/website name/public_html/wp-content/plugins/woo-notification/
   frontend/notify.php(1143): VI_WNOTIFICATION_F_Frontend_Notify->get_product()
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18242854)
 * Right, it’s cases regarding refunded orders. Please try again with this dev plugin:
   [https://drive.google.com/file/d/1honhI83EWD3KmBxMCSOFmXkSFv-Qoyaz/view?usp=sharing](https://drive.google.com/file/d/1honhI83EWD3KmBxMCSOFmXkSFv-Qoyaz/view?usp=sharing)
 * We’ll release the update soon, probably in this week.
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18242942)
 * Thank you. I’ve now installed the dev plugin. Will monitor the php error log 
   and report back after a few hours
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18243510)
 * So far no new php errors, so looks like the dev plugin is addressing the issue,
   however I will test again tomorrow and report back
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18244610)
 * Only the following errors appeared overnight :
 * Stack trace:
   [14-Jan-2025 22:08:00 UTC] PHP Fatal error: Uncaught Error: Undefined
   constant “ABSPATH” in /home/website name/public_html/wp-includes/class-wp-http.
   php:11[14-Jan-2025 21:37:22 UTC] PHP Warning: Undefined array key “” in /home/
   website name/public_html/wp-content/plugins/woo-notification/frontend/notify.
   php on line 375thrown in /home/website name/public_html/wp-includes/widgets/class-
   wp-widget-block.php on line 17 0 {main}
 * Stack trace:
   [15-Jan-2025 05:40:56 UTC] PHP Fatal error: Uncaught Error: Undefined
   constant “ABSPATH” in /home/website name/public_html/wp-includes/class-wp-http.
   php:11[15-Jan-2025 02:57:02 UTC] PHP Warning: Undefined array key “” in /home/
   website name/public_html/wp-content/plugins/woo-notification/frontend/notify.
   php on line 375[15-Jan-2025 02:49:05 UTC] Cron reschedule event error for hook:
   action_scheduler_run_queue, Error code: could_not_set, Error message: The cron
   event list could not be saved., Data: {“schedule”:”every_minute”,”args”:[“WP 
   Cron”],”interval”:60}[15-Jan-2025 01:59:49 UTC] checking if cache has expired–
   1736846601[15-Jan-2025 01:59:49 UTC] cache expiration time – 1734314389[15-Jan-
   2025 01:59:49 UTC] checking if cache has expired – 1736671697[15-Jan-2025 01:
   59:49 UTC] cache expiration time – 1734314389[15-Jan-2025 01:59:49 UTC] checking
   if cache has expired – 1736755970[15-Jan-2025 01:59:49 UTC] cache expiration 
   time – 1734314389[15-Jan-2025 01:59:49 UTC] checking if cache has expired – 1736846571[
   15-Jan-2025 01:59:49 UTC] cache expiration time – 1734314389[15-Jan-2025 01:59:
   49 UTC] checking if cache has expired – tmp[15-Jan-2025 01:59:49 UTC] cache expiration
   time – 1734314389[15-Jan-2025 01:59:49 UTC] checking if cache has expired – 1736846572[
   15-Jan-2025 01:59:49 UTC] cache expiration time – 1734314389[15-Jan-2025 01:59:
   49 UTC] checking if cache has expired – 1736846600[15-Jan-2025 01:59:49 UTC] 
   cache expiration time – 1734314389[15-Jan-2025 00:42:42 UTC] Cron unschedule 
   event error for hook: woocommerce_cancel_unpaid_orders, Error code: could_not_set,
   Error message: The cron event list could not be saved., Data: {“schedule”:false,”
   args”:[]}thrown in /home/website name/public_html/wp-includes/widgets/class-wp-
   widget-block.php on line 17 0 {main}
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18246851)
 * Single error appearing 3 times last night and this morning:
 * Time that Error Occurred: [16-Jan-2025 02:54:59 UTC] , [16-Jan-2025 00:06:47 
   UTC], [15-Jan-2025 20:46:56 UTC]
 * PHP Warning: Undefined array key “” in /home/website name/public_html/wp-content/
   plugins/woo-notification/frontend/notify.php on line 375
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18247316)
 * As per the log, it’s not about fatal error this time but the PHP warning. Perhaps
   some of your orders have problem with billing countries, aren’t recognized by
   WooCommerce. Please try this dev plugin: [https://drive.google.com/file/d/1honhI83EWD3KmBxMCSOFmXkSFv-Qoyaz/view?usp=sharing](https://drive.google.com/file/d/1honhI83EWD3KmBxMCSOFmXkSFv-Qoyaz/view?usp=sharing)
 * Thanks again for your contribution reporting these errors.
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18247345)
 * I only sell to 1 country, so customers cannot select another country for billing
   address, but thank you, I am now installing this dev version of the plugin and
   will report back in a few hours
 *  Thread Starter [Jenny](https://wordpress.org/support/users/enigma666666/)
 * (@enigma666666)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18249597)
 * I am happy to confirm that in the 24 hours since installing the 2nd dev plugin
   [https://drive.google.com/file/d/1honhI83EWD3KmBxMCSOFmXkSFv-Qoyaz/view?usp=sharing](https://drive.google.com/file/d/1honhI83EWD3KmBxMCSOFmXkSFv-Qoyaz/view?usp=sharing),
   there has not been a single php server error reported regarding the plugin. So
   the issue is resolved with this second dev plugin. Thank you so much for all 
   the assistance, much appreciated.

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

The topic ‘PHP Warning: Undefined array key “”’ is closed to new replies.

 * ![](https://ps.w.org/woo-notification/assets/icon-256x256.gif?rev=3080880)
 * [Notification for WooCommerce | Boost Your Sales - Recent Sales Popup - Live Feed Sales - Upsells](https://wordpress.org/plugins/woo-notification/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-notification/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-notification/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Jenny](https://wordpress.org/support/users/enigma666666/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-24/#post-18249597)
 * Status: resolved