after update template. Fatal error: Call to a member function g

[ad_1]

Hello.
After updating the plugin to the latest version, my modern template stopped working.

This is the error it gives me:

Fatal error: Call to a member function get_header_logo_id() on null
/home2/myweb/public_html/wp-content/themes/flatsome-child/woocommerce/pdf/Modern/invoice.php (7) 0 /home2/myweb/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(976): include() 1 /home2/myweb/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(879): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home2/myweb…’, Array) 2 /home2/myweb/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(834): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() 3 /home2/myweb/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(901): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() 4 /home2/myweb/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(466): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’) 5 /home2/myweb/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”) 6 /home2/myweb/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array) 7 /home2/myweb/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 8 /home2/myweb/public_html/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_generat…’) 9 {main}

The basic template works well

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer