Don’t understand my memory issue and server error
-
I am confused by a server 500 memory issue. I read your top post about 500 Internal Server errors but still unsure about something.
When I complete an order and the invoice is automatically generated and emailed, about 20% of the time I get a server 500 error. Otherwise, it works.
I turned on debug log and I see this:
[17-Jan-2020 19:28:30 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16207361 bytes) in xxx/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 5015134217728 corresponds to 128MB
16M is a lot to allocate for a single page, single pdf invoice it seems. Regardless …
I looked at a few things:
a) The PDF Invoice Status page memory status says: WordPress: 40M, PHP: 256M
b) The woocommerce status page says: WordPress memory limit: 256 MB
c) If I call php_info() and dump the results I see: memory_limit 128MSo 128MB does seem to be the default for the php memory limit setting, and the error message says 128M so that seems to correspond. But WordPress status’s say 256M. Who is right? Should I use my php config to increase it to 256M even though WP thinks it is already 256?
I do have quite a few plugins.
Lastly, the PDF Invoice status page has this link but it no longer goes anywhere useful on the wp site:
https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHPAlan
- The topic ‘Don’t understand my memory issue and server error’ is closed to new replies.