Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with plugin WooCommerce PDF Invoices & Packing Slips #21

Closed
xllentech opened this issue Mar 5, 2020 · 0 comments
Closed

Conflict with plugin WooCommerce PDF Invoices & Packing Slips #21

xllentech opened this issue Mar 5, 2020 · 0 comments

Comments

@xllentech
Copy link

When your plugin is activated, it breaks above plugin PDF creation with following error. It's PDF library conflict. Gets following error:

Fatal error: Call to protected method Cpdf::getFirstPageId() from context 'Dompdf\Adapter\CPDF'

#0 root-folder/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/CanvasFactory.php(57): Dompdf\Adapter\CPDF->__construct('letter', 'portrait', Object(Dompdf\Dompdf))
#1 root-folder/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(299): Dompdf\CanvasFactory::get_instance(Object(Dompdf\Dompdf), 'letter', 'portrait')
#2 root-folder/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(49): Dompdf\Dompdf->__construct(Object(Dompdf\Options))
#3 root-folder/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(625): WPO\WC\PDF_Invoices\PDF_Maker->output()
#4 root-folder/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(660): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#5 root-folder/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(337): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline')
#6 root-folder/wp-includes/class-wp-hook.php(288): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('')
#7 root-folder/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
#8 root-folder/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#9 root-folder/wp-admin/admin-ajax.php(175): do_action('wp_ajax_generat...')
#10 {main}

When I deactivate this plugin WC Recurring Invoice PDF, PDF creation works fine on the other plugin. Can you help if there is a way to make it work together. Thank you for your great plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants