• Resolved sunnycs121

    (@sunnycs121)


    Hi,

    After upgrading a woocommerce pdf invoices related plugin “PDF Invoices & Packing Slips for WooCommerce” we started seeing error in this plugin’s vendor file when clicked on button to download pdf.

    Error states:

    PHP Fatal error: Uncaught Error: Call to a member function get_stylesheet() on null in /nas/content/live/sa2pro/wp-content/plugins/pdf-generator-for-wp/package/lib/dompdf/vendor/dompdf/dompdf/src/FrameReflower/Page.php:53

    Latest version of plugin i.e. Version 1.2.9 is installed.

    Please help.

    • This topic was modified 1 year, 3 months ago by sunnycs121.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello,

    Thanks for using our plugin,

    We need to check this from our side please connect with  our support team so that they can help you.

    Regards,

    I have the same problem.

    In an object of the class Dompdf\Frame the attribute $style is not set, but it is required to execute the code.

    • This reply was modified 1 year, 1 month ago by philippze.
    Plugin Author WP Swings

    (@wpswings)

    Hello,

    This issue arises due to the library used in our plugin, which is impacted by some of the CSS used in your site’s posts or pages, rendering it incompatible with PDF generation. For further assistance, Please feel free to connect directly with our support team.

    Regards,

    Thanks for the reply @wpswings!

    Our solution for now: Downgrade “PDF Invoices & Packing Slips for WooCommerce” to version 3.5.1

    Plugin Author WP Swings

    (@wpswings)

    Okay we will surely check this in our next coming update.

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call to a member function get_stylesheet() on null’ is closed to new replies.