• Resolved fogcity

    (@fogcity)


    We are seeing the fatal error below when trying to view a PDF receipt from the My Account page. Attributed to your plugin. Can supply information to reproduce the error via private email if you provide your email address.

    Please advise!

    Fatal error: Call to undefined method DOMText::getAttribute() in /home/mysite/public_html/sitedomain/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/cellmap.cls.php on line 437

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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 [email protected].

    Thread Starter fogcity

    (@fogcity)

    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://www.ads-software.com/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): https://codex.www.ads-software.com/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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error when trying to view pdf invoice’ is closed to new replies.