WPIntell

Source evidence

PHP Warning: Undefined array key “”

Notification for WooCommerce | Boost Your Sales – Recent Sales Popup – Live Feed Sales – Upsells · support · 2025-01-11T15:10:00+00:00

mixedsentiment
highseverity
0.95relevance
12replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Jenny resolved
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; 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. Thank you, the update fixed the issue and there are no more php errors. Thank you for the confirmation. 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:365 thrown 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() 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 We’ll release the update soon, probably in this week. Thank you. I’ve now installed the dev plugin. Will monitor the php error log and report back after a few hours 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 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 375 thrown 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} 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 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 Thanks again for your contribution reporting these errors. 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 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 , 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.

Comments

12 shown
angelagrey 2025-01-13T10:31:00+00:00

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.

Jenny 2025-01-13T13:23:00+00:00

Thank you, the update fixed the issue and there are no more php errors.

angelagrey 2025-01-14T03:19:00+00:00

Thank you for the confirmation.

Jenny 2025-01-14T06:59:00+00:00

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:365 thrown 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 2025-01-14T10:53:00+00:00

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 We’ll release the update soon, probably in this week.

Jenny 2025-01-14T11:28:00+00:00

Thank you. I’ve now installed the dev plugin. Will monitor the php error log and report back after a few hours

Jenny 2025-01-14T15:21:00+00:00

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

Jenny 2025-01-15T06:26:00+00:00

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 375 thrown 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}

Jenny 2025-01-16T06:23:00+00:00

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 2025-01-16T10:40:00+00:00

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 Thanks again for your contribution reporting these errors.

Jenny 2025-01-16T10:54:00+00:00

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

Jenny 2025-01-17T11:45:00+00:00

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 , 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.