Title: PHP 8 Compatibility
Last modified: August 16, 2023

---

# PHP 8 Compatibility

 *  [CodeGeek](https://wordpress.org/support/users/codegeek/)
 * (@codegeek)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-compatibility-107/)
 * Hi. I have a site using the Print Invoice & Delivery Notes for WordPress plugin
   using version 4.7.3. My production site is running PHP 8 with WordPress Core 
   at 6.3. I got an error and the WooCommerce settings page for the plugin is blank.
   I rolled PHP back to 7.4 on the dev server and the page is working fine and I
   can see the settings. Is this plugin compatible with PHP 8? Do you have any recommendations
   for how to fix this? Thanks!
 * Error: “An error of type E_ERROR Error message: Uncaught DivisionByZeroError:
   Division by zero”

Viewing 1 replies (of 1 total)

 *  [nick1122](https://wordpress.org/support/users/nick1122/)
 * (@nick1122)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-compatibility-107/#post-16980339)
 * Hii, [@codegeek](https://wordpress.org/support/users/codegeek/) 
   Thank you for
   sharing the error message. I am able to find the cause of this issue, but to 
   be sure on that kindly share the full error message so that I can look at it 
   and confirm if it’s the same case or not.
 * Below, I am sharing the link to the patched file. Kindly download it and replace
   it with the same file on your site located at the below location, and see if 
   that resolves the issue or not. Please let us know the result.
   Path – \app\public\
   wp-content\plugins\woocommerce-delivery-notes\includes\class-wcdn-settings.phpLink–
   [https://www.dropbox.com/scl/fi/qbx14ukjrzo2dx2mrsimi/class-wcdn-settings.php?rlkey=tptq1elrn4cxhi21za3kbwsup&dl=0](https://www.dropbox.com/scl/fi/qbx14ukjrzo2dx2mrsimi/class-wcdn-settings.php?rlkey=tptq1elrn4cxhi21za3kbwsup&dl=0)
 * If this doesn’t resolve the error, then once we get the full error message from
   you then we will be able to identify the cause of the issue you are facing on
   your site.

Viewing 1 replies (of 1 total)

The topic ‘PHP 8 Compatibility’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [nick1122](https://wordpress.org/support/users/nick1122/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-compatibility-107/#post-16980339)
 * Status: not resolved