• Resolved Chris.V

    (@chrisv234)


    Hi,

    Since the last update I am getting the following error in my cpanel error_log. The plugin and the website seem to work as expected even with this error going on. However, I don’t think this is normal plugin behavior.

    The error seems to appear at random, not necessarily when a COD order is being placed.

    Thanks in advance for any help.

    Regards,

    Chris

    [20-Apr-2024 20:42:03 UTC] PHP Warning:  Undefined array key ".woocommerce-checkout-payment" in /home/my_cpanel_user/public_html/wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.php on line 269
    [20-Apr-2024 20:42:03 UTC] PHP Fatal error:  Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /home/my_cpanel_user/public_html/wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.php:269
    Stack trace:
    #0 /home/my_cpanel_user/public_html/wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.php(269): DOMDocument->loadHTML()
    #1 /home/my_cpanel_user/public_html/wp-includes/class-wp-hook.php(324): Wc_Smart_Cod_Public->apply_custom_message()
    #2 /home/my_cpanel_user/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #3 /home/my_cpanel_user/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(332): apply_filters()
    #4 /home/my_cpanel_user/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(349): WC_AJAX::update_order_review_expired()
    #5 /home/my_cpanel_user/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::update_order_review()
    #6 /home/my_cpanel_user/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #7 /home/my_cpanel_user/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /home/my_cpanel_user/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    #9 /home/my_cpanel_user/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax()
    #10 /home/my_cpanel_user/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #11 /home/my_cpanel_user/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 /home/my_cpanel_user/public_html/wp-includes/template-loader.php(13): do_action()
    #13 /home/my_cpanel_user/public_html/wp-blog-header.php(19): require_once('/home/my_cpanel_user/...')
    #14 /home/my_cpanel_user/public_html/index.php(17): require('/home/my_cpanel_user/...')
    #15 {main}
      thrown in /home/my_cpanel_user/public_html/wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.php on line 269
    • This topic was modified 10 months, 2 weeks ago by Chris.V.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error class-wc-smart-cod-public.php on line 269’ is closed to new replies.