Title: PHP Fatal error class-wc-smart-cod-public.php on line 269
Last modified: April 21, 2024

---

# PHP Fatal error class-wc-smart-cod-public.php on line 269

 *  Resolved [Chris.V](https://wordpress.org/support/users/chrisv234/)
 * (@chrisv234)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-class-wc-smart-cod-public-php-on-line-269/)
 * 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
 *     ```wp-block-code
       [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 1 year, 11 months ago by [Chris.V](https://wordpress.org/support/users/chrisv234/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-class-wc-smart-cod-public-php-on-line-269/#post-17711658)
 * This is now fixed,
 * There wasn’t a compatibility issue with woo 8.8.2 but with woo update manager.
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error class-wc-smart-cod-public.php on line 269’ is closed 
to new replies.

 * ![](https://ps.w.org/wc-smart-cod/assets/icon-128x128.png?rev=3372621)
 * [Smart COD for WooCommerce](https://wordpress.org/plugins/wc-smart-cod/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-smart-cod/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-smart-cod/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-smart-cod/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-smart-cod/reviews/)

 * 1 reply
 * 3 participants
 * Last reply from: [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-class-wc-smart-cod-public-php-on-line-269/#post-17711658)
 * Status: resolved