Title: PHP Errors
Last modified: April 14, 2023

---

# PHP Errors

 *  Resolved [GDriver](https://wordpress.org/support/users/gdriver/)
 * (@gdriver)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-291/)
 * I’m getting some PHP errors, debug mode is on, since the PDF is not working great.
   The PHP errors:
 * Edit: I’m using PHP 8.1
 *     ```wp-block-code
       Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /mnt/BLOCKSTORAGE/home/server.cloudwaysapps.com/account /public_html/wp-includes/functions.php on line 7053
   
       Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /mnt/BLOCKSTORAGE/home/server.cloudwaysapps.com/account/public_html/wp-includes/functions.php on line 2165
   
       Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /mnt/BLOCKSTORAGE/home/server.cloudwaysapps.com/account/public_html/wp-includes/functions.php on line 7053
   
       Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /mnt/BLOCKSTORAGE/home/server.cloudwaysapps.com/account/public_html/wp-includes/functions.php on line 2165
   
       Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /mnt/BLOCKSTORAGE/home/server.cloudwaysapps.com/account/public_html/wp-includes/functions.php on line 7053
   
       Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /mnt/BLOCKSTORAGE/home/server.cloudwaysapps.com/account/public_html/wp-includes/functions.php on line 2165
       ```
   
    -  This topic was modified 3 years, 1 month ago by [GDriver](https://wordpress.org/support/users/gdriver/).

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

 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-291/#post-16655376)
 * Hi [@gdriver](https://wordpress.org/support/users/gdriver/),
 * Could you check the WooCommerce logs to see if there are errors with the `wpo-
   wcpdf` or `fatal-errors` prefix? If so, please share the logs with us. You’ll
   find the logs under **WooCommerce > Status > Logs**. See [Where to find error logs](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/where-to-find-debug-logs/)
 * Also, go to **WooCommerce > Status > System Status**, click on **Get system report**,
   then click on **Copy for support**, paste it on [https://pastebin.com/](https://pastebin.com/)(
   set a paste expiration for one week, just in case), and finally paste the pastebin.
   com link in your reply here.
 *  Thread Starter [GDriver](https://wordpress.org/support/users/gdriver/)
 * (@gdriver)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-291/#post-16655488)
 * Pastebin report: [https://pastebin.com/VTgMvxGi](https://pastebin.com/VTgMvxGi)
   
   The log error:
 *     ```wp-block-code
       2023-04-14T10:15:05+00:00 CRITICAL Plugin upgrade procedure failed (updating from version 2.16.0 to 3.5.2): Undefined constant "DOMPDF_FONT_DIR" (/mnt/BLOCKSTORAGE/home/number.cloudwaysapps.com/myaccount/public_html/wp-content/uploads/wpo_wcpdf/fonts/dompdf_font_family_cache.php:4)
       2023-04-14T10:17:21+00:00 CRITICAL Table 'rdpcatedgz.wlk_wcpdf_packing_slip_number' doesn't exist
       ```
   
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-291/#post-16655498)
 * Thanks for providing this info, [@gdriver](https://wordpress.org/support/users/gdriver/).
 * Please also send us a screenshot of your **System Configuration** and **Write
   Permissions**, that you’ll find under **WooCommerce > PDF Invoices > Status**
   tab.
 *  Thread Starter [GDriver](https://wordpress.org/support/users/gdriver/)
 * (@gdriver)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-291/#post-16655514)
 * The screenshot: [https://pasteboard.co/eORTvczApn5X.png](https://pasteboard.co/eORTvczApn5X.png)
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-errors-291/#post-16658119)
 * Please contact us at [support@wpovernight.com](https://wordpress.org/support/topic/php-errors-291/support@wpovernight.com?output_format=md),
   so we can explore further, because I cannot see any obvious issue in your system
   report.
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [3 years ago](https://wordpress.org/support/topic/php-errors-291/#post-16701201)
 * Following up this conversation, for those that are wondering how we solved this,
   it turned out to be that the plugin’s fonts were deleted, so we reinstalled the
   fonts, by clicking on **WooCommerce > PDF Invoices > Status > Reinstall font**
   button, and then the issue was fixed.

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

The topic ‘PHP Errors’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/php-errors-291/#post-16701201)
 * Status: resolved