Plugin Contributor
Ewout
(@pomegranate)
This error stems from faulty HTML in your template. Check the ‘read this first’ thread for instructions on how to output to HTML and figure out the issue.
Now it might be specific to the my account page, but please share the steps to reproduce here. Alternatively you can email support@wpovernight.com.
Looks like the source isnt from a faulty template but from a bug in another plugin. Sorry for false alarm.
I’ve been having the same issue for a while now. What plugin was causing the issue ?
Plugin Contributor
Ewout
(@pomegranate)
Hello James,
Version 1.5 of the PDF invoice plugin came with a new setting that allows you to output more descriptive errors. In this case, the error most likely comes from faulty HTML, so you may try to enable the “Output to HTML” setting and check for any errors in the output. If you don’t see any errors, you could also run the resulting HTML through a validator. See this thread for more information:
https://wordpress.org/support/topic/fatal-error-domtext?replies=12
Let me know what you find!
Ewout
To be honest, i am new to this so don’t really no what to look for. I keep getting this error every time i try to download an invoice or packing slip, which kind of makes the plugin unusable for me. Is there a way to increase the memory ?
Thanks, James.
Fatal error: Out of memory (allocated 40370176) (tried to allocate 131072 bytes) in /homepages/9/d78432199/htdocs/clickandbuilds/JamesADicksonBooks/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 1394
Plugin Contributor
Ewout
(@pomegranate)
Hello James,
Yes, on the Status tab of the plugin settings you can find information about your server memory, it looks like yours has 40M which is not so much. You can increase the WP_MEMORY_LIMIT by following the instructions here (this is also linked to from the status page): http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Hope that helps!
Ewout
Thanks for this. I have managed to change the limit to 64m but any time i try to increase it , it brings up an error in my browser window. Strange.
Any ideas ?
Thanks, James.
Parse error: syntax error, unexpected ” );’ (T_CONSTANT_ENCAPSED_STRING) in /homepages/9/d78432199/htdocs/clickandbuilds/JamesADicksonBooks/wp-config.php on line 68
Plugin Contributor
Ewout
(@pomegranate)
I think you have made a copy paste error, try again with the following (I recommend 128M):
define( 'WP_MEMORY_LIMIT', '128M' );
Many thanks for this. This has been accepted. Although i am still gettiing the original error when trying to download an invoice.
Any ideas ?
Thanks again, James.
Fatal error: Out of memory (allocated 40108032) (tried to allocate 181865 bytes) in /homepages/9/d78432199/htdocs/clickandbuilds/JamesADicksonBooks/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 2457
Plugin Contributor
Ewout
(@pomegranate)
Yes, this means that the memory is already limited in PHP (php.ini). The only way to solve this is to upgrade your hosting or contact your host and ask them if the 40M limit can be raised within your current package.