• Hi,

    I get this error message when trying to create an pdf invoice from an order:

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 786432 bytes) in /storage/content/80/4001080/friendy.se/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/html5lib/TreeBuilder.php on line 2565

    I have gone thru the diagnostics on: https://www.ads-software.com/support/topic/read-this-first-9/. And everything show green light in the system status and 128 mb memory. Also no problem creating a html page of the invoice.

    So what can be the problem? And how to fix. The plug in has worked perfect over a year until a couple of days ago. Site: https://www.friendy.se

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Francesco,
    Are you getting this error when opening the PDF? Or in the backend? This error looks like something I would expect in the backend (though haven’t seen before, I’m not sure what causes it, it looks like the WC settings for the Failed and Cancelled email have become corrupted) but not in the PDF.
    Which version of WooCommerce and WordPress do you use?

    Let me know!
    Ewout

    In the backend.
    When opening the pdf the error is the same like before:
    “Fatal error: Call to undefined method DOMText::getAttribute() in /var/www/vhosts/globando.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/cellmap.cls.php on line 437”

    Plugin Contributor Ewout

    (@pomegranate)

    Apologies, I meant opening the HTML!

    Yes, this error comes out when clicking on “PDF invoice” link, inside Woocommerce orders list.

    • This reply was modified 7 years, 8 months ago by globando.
    Plugin Contributor Ewout

    (@pomegranate)

    I’m sorry if I wasn’t clear in the previous instructions, here’s how to get the HTML output:

    • Go to PDF Invoices > Status
    • Enable ‘HTML output’
    • Click on the PDF invoice icon

    Instead of a PDF, the plugin will now generate a HTML version of the invoice. This will allow you to inspect the output for any errors as described in the documentation.

    Let me know what you find!
    Ewout

    Forgive me, I’m not an expert ??

    OK, no it generates a html invoice and inside it I read this errors:

    “Notice: Trying to get property of non-object in /var/www/vhosts/globando.com/httpdocs/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-shipping.php on line 127

    Notice: Trying to get property of non-object in …/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-shipping.php on line 127

    Notice: Trying to get property of non-object in …/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-shipping.php on line 127”

    • This reply was modified 7 years, 8 months ago by globando.
    • This reply was modified 7 years, 8 months ago by globando.

    I think there’s a conflict with Woocomerce-Multilingual Plugin.
    In fact I tried to disable it and the PDF invoices are OK.

    But unfortunately I need WC-Multilingual.

    Plugin Contributor Ewout

    (@pomegranate)

    These errors are from WooCommerce Multilingual (from the big update last week). I just checked the latest version (4.2.0) and it looks like that plugin is trying to read a screen, but doesn’t check if it is an AJAX request resulting in this error. Please contact WPML about this, if you give them that error they should be able to fix it quickly:

    
    Notice: Trying to get property of non-object in /var/www/vhosts/globando.com/httpdocs/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-shipping.php on line 127
    

    Hope that helps!

    Ewout

    p.s. for full WPML support, the Professional extension is recommended, this makes sure the PDF attachment is always in the correct language.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘PDF not showing or being created’ is closed to new replies.