• Resolved GDriver

    (@gdriver)


    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

    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 1 year, 6 months ago by GDriver.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @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

    Also, go to WooCommerce > Status > System Status, click on Get system report, then click on Copy for support, paste it on 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

    (@gdriver)

    Pastebin report: https://pastebin.com/VTgMvxGi

    The log error:

    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

    (@yordansoares)

    Thanks for providing this info, @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

    (@gdriver)

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Please contact us at [email protected], so we can explore further, because I cannot see any obvious issue in your system report.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    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.