Title: Fatal Error
Last modified: November 3, 2023

---

# Fatal Error

 *  Resolved [mollyk](https://wordpress.org/support/users/mollyk/)
 * (@mollyk)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-4562/)
 * Our website just went down due to a fatal error with this plugin. This is the
   message we received: An error of type `E_ERROR` was caused in line `257` of the
   file `/home4/themysu9/public_html/crimsoninc/wp-content/plugins/woocommerce-delivery-
   notes/includes/class-wcdn-writepanel.php`. Error message: `Uncaught Error: Call
   to undefined function wc_get_page_screen_id() in /home4/themysu9/public_html/
   crimsoninc/wp-content/plugins/woocommerce-delivery-notes/includes/class-wcdn-
   writepanel.php:257 Stack trace: #0 /home4/themysu9/public_html/crimsoninc/wp-
   includes/class-wp-hook.php(312): WCDN_Writepanel->add_box('product') #1 /home4/
   themysu9/public_html/crimsoninc/wp-includes/class-wp-hook.php(334): WP_Hook->
   apply_filters(NULL, Array) #2 /home4/themysu9/public_html/crimsoninc/wp-includes/
   plugin.php(517): WP_Hook->do_action(Array) #3 /home4/themysu9/public_html/crimsoninc/
   wp-admin/includes/meta-boxes.php(1715): do_action('add_meta_boxes', 'product',
   Object(WP_Post)) #4 /home4/themysu9/public_html/crimsoninc/wp-admin/edit-form-
   advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post)) #5 /home4/
   themysu9/public_html/crimsoninc/wp-admin/post.php(206): require('/home4/themysu9...')#
   6 {main} thrown`
 * I’m not a technical person but I wonder if there’s a way for us to fix this quickly.
 * Thanks very much.

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

 *  [nick1122](https://wordpress.org/support/users/nick1122/)
 * (@nick1122)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-4562/#post-17177728)
 * Hi Mollyk,
 * We have fixed this issue, & I am sending you a patch file to resolve this issue.
    1. You can download the code patch from this link – [https://www.dropbox.com/scl/fi/6souiyk7wfsbmxm6upru2/class-wcdn-writepanel.php?rlkey=4cuvq1ljberniea33jl9uy4bx&dl=0](https://www.dropbox.com/scl/fi/6souiyk7wfsbmxm6upru2/class-wcdn-writepanel.php?rlkey=4cuvq1ljberniea33jl9uy4bx&dl=0)
    2. After downloading the file, you can replace it with the original file in the\
       wp-content\plugins\woocommerce-delivery-notes\includes.
    3. The patch makes the necessary changes to fix the bug and has been tested thoroughly.
 * Please let me know if the provided solution was helpful for you.
   Regards,Nikhil.
 *  Thread Starter [mollyk](https://wordpress.org/support/users/mollyk/)
 * (@mollyk)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-4562/#post-17178227)
 * Thanks very much for the reply. This is a little above my expertise level. If
   I delete and re-download the plugin would that resolve the issue, as well? (I’m
   just not sure what I’m replacing and how to replace it. Sorry. php moron here.)
 *  [nick1122](https://wordpress.org/support/users/nick1122/)
 * (@nick1122)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-4562/#post-17178953)
 * Hi mollyk,
   Re-downloading the plugin would not resolve this issue.Create the 
   ticket [here](https://tychesoftwares.freshdesk.com/support/login) on our support
   tool so that we can communicate in detail.Regards,Nikhil.

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

The topic ‘Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [nick1122](https://wordpress.org/support/users/nick1122/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-4562/#post-17178953)
 * Status: resolved