• Resolved Jenny

    (@enigma666666)


    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)
  • Plugin Support angelagrey

    (@angelagrey)

    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

    (@enigma666666)

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

    Plugin Support angelagrey

    (@angelagrey)

    Thank you for the confirmation.

    Thread Starter Jenny

    (@enigma666666)

    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()

    Plugin Support angelagrey

    (@angelagrey)

    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.

    Thread Starter Jenny

    (@enigma666666)

    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

    (@enigma666666)

    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

    (@enigma666666)

    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}

    Thread Starter Jenny

    (@enigma666666)

    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

    Plugin Support angelagrey

    (@angelagrey)

    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.

    Thread Starter Jenny

    (@enigma666666)

    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

    (@enigma666666)

    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.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.