• hi i am facing issue with invoice and packing slip i am getting error Allowed memory size of 67108864 bytes exhausted (tried to allocate 119030 bytes) inpublic_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 2022 and i tried to resolve with this steps
    1. Try adding this line to your wp-config.php file:
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

    3. If you don’t have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M
    but then i am facing differcent different error and warnings

    https://www.ads-software.com/plugins/woocommerce-pdf-invoices-packing-slips/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ziaullove

    (@ziaullove)

    tried this also *** Here we consider 64M as good configuration. Depending on your need, server codition, how is your site, you could use 32M, 96M, 128M, 256M, 512M, 1024M, 2048M, 4096M. Make sure your server allow you to use that much dedicated memory.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! The error tells you that it runs out of memory at 67108864 bytes, which is exactly 64M (MiB). So it’s following your settings ?? Depending on your setup (amount of plugins, PHP version, etc), I recommend 128M. The exact error can change, depending on what other processes are running on the server or the size of the invoice.

    Here’s a bit more information about solving memory issues with the PDF invoice plugin: Memory issues

    Let me know if you have any other questions!
    Ewout

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allowed memory size of 67108864 bytes exhausted (tried to allocate 119030 bytes)’ is closed to new replies.