• Hello,

    I have an online shop, and whenever I try to make a PDF Invoice, the following error message shows up in red:

    Fatal error: Call to a member function get_id() on boolean

    #0 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-includes/class-wp-hook.php(286): Vc_Aino_Order->add_pdf_information(‘30200054’, Object(WPO\WC\PDF_Invoices\Documents\Invoice))
    #1 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘30200054’, Array)
    #2 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(155): apply_filters(‘wpo_wcpdf_billi…’, ‘30200054’, Object(WPO\WC\PDF_Invoices\Documents\Invoice))
    #3 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(158): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_billing_phone()
    #4 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(39): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->billing_phone()
    #5 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(728): include(‘/customers/2/d/…’)
    #6 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(632): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/customers/2/d/…’, Array)
    #7 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(614): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
    #8 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(650): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #9 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(332): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’)
    #10 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #11 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #12 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #13 /customers/2/d/5/dyre-handel.dk/httpd.www/wp-admin/admin-ajax.php(173): do_action(‘wp_ajax_generat…’)
    #14 {main}

    I hope someone can help ??
    Joshua

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Based on the stack trace of the error, this is created by a third party plugin that tries to add data to the PDF:

    Vc_Aino_Order->add_pdf_information

    Do you know what this “Vc_Aino_Order” class could be from?

    Thread Starter joshuafs

    (@joshuafs)

    Thank you for the quick response!

    I must admit, that I don’t know what that plugin could be.
    Maybe I need to contact a professional to fix it, I’m not sure I dare change too much with the plugins haha

    Thank you again,
    Joshua.

    Plugin Contributor Ewout

    (@pomegranate)

    If you can post your system status from WooCommerce > Status > “Get system report”, I’ll see if I can spot which plugin this might be!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Call to a member function get_id() on boolean’ is closed to new replies.