• Resolved davedc

    (@davedc)


    PHP Fatal error: ?Allowed memory size of 268435456 bytes exhausted (tried to allocate 1253376 bytes) in /www/demutuqu_350/public/wp-content/plugins/waterwoo-pdf/inc/tcpdf/include/tcpdf_filters.php on line 357

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Little Package

    (@littlepackage)

    Sorry, that’s going to happen if you are running large/complex PDFs or many requests on a weak or poorly tuned server. Look into tuning your server for running TCPDF. More here: https://web.little-package.com/waterwoo-pdf/documentation/#recommendations

    Thread Starter davedc

    (@davedc)

    We are using Kinsta and they said?256MB is plenty enough

    Kinsta force their user to use PHP 8.0 and higher they don’t support PHP 7.4 any more

    Thread Starter davedc

    (@davedc)

    Kinsta said that the server is good enough to run this but this said plugin is not fully optimized at Php 8 or it’s purely a conflict

    Plugin Author Little Package

    (@littlepackage)

    Please update your plugin and read through https://www.ads-software.com/support/topic/before-you-post-please-read-2/ and https://www.ads-software.com/support/topic/fatal-error-allowed-memory-size-of-x-bytes-exhausted-4/ before posting again.

    Running out of memory while running TCPDF is a common issue (Google it). I’ve done what I can on my end to improve the situation this morning by updating the bundled TCPDF package in Watermark PDF and refactoring the watermarking loop a bit. Otherwise, it’s really important for users to understand this plugin simply connects WooCommerce to the open source TCPDF library. ~90% of what’s happening when you click the WooCommerce file download button is in the TCPDF developers’ hands.

    Most often when the plugin fails it’s because of a clash between TCPDF and the PDF which was fed to it. Have you tried other PDFs? If your PDF is malformed (which many PDFs are since PDF is an open spec), TCPDF might choke on it. You can try to fix its syntax by re-saving (“Export as PDF”) with the Apple Preview application.

    You will need to provide more debugging information to me before I can pinpoint where your PDF is causing your server to run out of memory. 256MB is clearly plenty enough for simple online/website operations, but obviously not enough to run this PDF. These are resource-heavy operations. Many people are maxing out their memory (setting it to ∞) to process PDFs (but I don’t recommend that). Without knowing anything about your PDF or having any debugging information, I cannot say more.

    Thread Starter davedc

    (@davedc)


    I already updated to your latest version but still it gives me critical Error
    Here is the Error on debug.log

    PHP Fatal error: ?Allowed memory size of 268435456 bytes exhausted (tried to allocate 1261568 bytes) in /www/demutuqu_350/public/wp-content/plugins/waterwoo-pdf/lib/tcpdf/tcpdf/include/tcpdf_filters.php on line 361

    Host: Kinsta
    Theme: WP OCEAN
    WP version: 6.1.1
    WooCommerce version: 7.5.0
    Watermark PDF WooCommerce version: 3.2.0
    PHP version: 8.0
    WP memory limit: 256MB
    PHP time limit: 300

    PDF info
    PDF version: 1.4
    Creator: Adobe InDesign CS5.5(7.5)
    Producer: Adobe PDF Library 9.9
    Pages: 202
    Paper Size: 360x558px
    File Size: 73937853 bytes

    Base on the error 268435456 bytes is plenty enough to 1261568 bytes.

    Plugin Author Little Package

    (@littlepackage)

    Have you tried other PDFs?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Allowed memory size of 268435456 bytes exhausted’ is closed to new replies.