• I sell a number of smaller pdf’s (2-4 pages). I just noticed that I am getting a critical error on the website on some of the pdf’s. Others work fine. (I think they all used to work in the past.) I turned on the logging and nothing appears in the log.

    Is there a way I can send you one of the pdf’s that doesn’t work for your review? Or is there another way I should debug this issue?

    Thanks for any help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter avfadagio

    (@avfadagio)

    More information. I did find this in my WooCommerce Status Log.

    2025-04-01T19:28:19+00:00Critical Maximum execution time of 30 seconds exceeded Additional context{ “error”: { “type”: 1, “file”: “/home/vafadagio/public_html/wp-content/plugins/waterwoo-pdf/lib/tcpdi/tcpdi_parser.php”, “line”: 926 }, “remote-logging”: true, “backtrace”: [ { “file”: “/home/vafadagio/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php”, “line”: 414, “function”: “critical”, “class”: “WC_Logger”, “type”: “->” }, { “function”: “log_errors”, “class”: “WooCommerce”, “type”: “->” } ] }

    Thread Starter avfadagio

    (@avfadagio)

    More information. I had a staging site with version 3.5.2 and the staging site works fine. My active site is using 3.6 and that seems to be causing an issue on some files.

    Thread Starter avfadagio

    (@avfadagio)

    I downgraded to 3.5.2 for now and it is working.

    Plugin Author Little Package

    (@littlepackage)

    3.6.0 includes an upgrade of the PDF reader and writer included in WaterWoo. Please take a look at this: https://wordpress.org/support/topic/before-you-post-support-tips-please-read/ and provide WP debugging. The Woo error log just about said it all, but if we can catch the line where the reader is getting caught up on the PDF, maybe we can fix it. Otherwise yes, stick with 3.5.2.

    Thread Starter avfadagio

    (@avfadagio)

    I will do that. But I will be out of town through the weekend so I won’t be able to do it right away. But I will attempt that when I get back.

    Thread Starter avfadagio

    (@avfadagio)

    I had a little time before I need to leave for the weekend. I enabled WP debug and found these lines are repeated forever until it times out.

    [03-Apr-2025 15:03:58 UTC] PHP Warning: Uninitialized string offset 454 in /home/vafadagio/public_html/testpdf/wp-content/plugins/waterwoo-pdf/lib/tcpdi/tcpdi_parser.php on line 810
    [03-Apr-2025 15:03:58 UTC] PHP Warning: Uninitialized string offset 454 in /home/vafadagio/public_html/testpdf/wp-content/plugins/waterwoo-pdf/lib/tcpdi/tcpdi_parser.php on line 810

    [03-Apr-2025 15:04:30 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/vafadagio/public_html/testpdf/wp-content/plugins/waterwoo-pdf/lib/tcpdi/tcpdi_parser.php on line 926

    Thread Starter avfadagio

    (@avfadagio)

    Did the errors I sent you help in diagnosing the issue? Anything else I can send you or report to you that would help?

    Plugin Author Little Package

    (@littlepackage)

    It’s Sunday night, and I maintain this plugin in my spare time as a volunteer… so, no, I haven’t.

    If the parser isn’t happy with the PDF (which it isn’t) you might need to switch to another plugin that uses different parsers. WaterWoo uses TCPDI to parse and TCPDF to write. Some plugins use FPDI (for PDFs under version 1.5) and our premium plugin, PDF Ink, allows you to switch between several different parsers. Frankly, I am no longer patching another developer’s software (TCPDI, 9 years since it was last updated) to make PDFs work with it, for hopefully very understandable reasons. Enjoy the rest of your weekend, and maybe check out PDF Ink instead! Easy. Thank you.

    Thread Starter avfadagio

    (@avfadagio)

    Didn’t mean to pressure you. I totally understand the support thing.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.