• Resolved Phenotype_X

    (@phenotype_x)


    I can do a batch creation of 9 invoices, but trying to do 10 or more gives me a 500 error, which is apparently due to memory issues.

    The “WP Memory limit” is displayed as 256mb, but it is shared hosting so I’m not sure if all of this will be utilised.

    I’ve tried removing the logo from the invoice, but that didn’t improve things.

    My question is whether this seems like a reasonable maximum, or whether there is possibly something wrong with my setup?

    Any advice would be gratefully received.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    Did you read our documentation about memory issues? Solving memory issues. This page provides several options for optimization.
    I would recommend to check the actual amount of memory at which the plugin runs out. The WP Memory Limit shown by WooCommerce (WooCommerce > System Status) is not a very reliable indicator. You can compare this with the amount shown on WooCommerce > PDF Invoices > Status. On that status page you may find other hints too.

    Generally, 256M is more than enough and should easily let you create 25+ invoices at a time!

    Ewout

    Thread Starter Phenotype_X

    (@phenotype_x)

    From the debug it was allocating 128mb and without opcache enabled it was managing 9 PDF invoices.

    I managed to get the hosts to double it to 256mb and now it can do 20, which is fine for me (I haven’t tested higher).

    Plugin Contributor Ewout

    (@pomegranate)

    Great, glad to hear that’s resolved!

    Have a fantastic day!
    Ewout

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘500 error on batch creation. What is a reasonable amount?’ is closed to new replies.