Title: ERROR
Last modified: September 6, 2018

---

# ERROR

 *  Resolved [shreyans94](https://wordpress.org/support/users/shreyans94/)
 * (@shreyans94)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-1105/)
 * Hi there,
 * We found issue in plugin ‘class-wc-smart-cod-public.php’ file inside ‘apply_custom_message’
   function where fetching ‘$first_element’ from DOM using ‘DOMDocument’.
 * On our site we found following fatal error.
 * “Error: Uncaught exception ‘Error’ with message ‘Call to a member function item()
   on null’ in wp-content/plugins/wc-smart-cod/public/class-wc-smart-cod-public.
   php:268”
 * It looks like DOM node not found. Can you add condition to check that node is
   found in DOM or not? I think this will solve issue.

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

 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-1105/#post-10687432)
 * Hi,
 * I will check this,
    Does the message appears or not?
 * Best Regards
 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/error-1105/#post-10820326)
 * Hi,
    This is fixed now! Please update to 1.4.9.5
 * Best Regards

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

The topic ‘ERROR’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/error-1105/#post-10820326)
 * Status: resolved