• Resolved MCMarco

    (@marcomedia)


    Hi Ewout,

    I am getting a strange error. I can’t show a pdf anymore. When customers go to their account and clcik download pdf they get the following (I placed the “-” to protect my customer):

    Fatal error: Call to a member function get_id() on boolean
    #0 /home/——-/public_html/wp-includes/class-wp-hook.php(288): EVOTX_WC->order_item_name(‘test’, Object(WC_Order_Item_Product))
    #1 /home/——-/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘test’, Array)
    #2 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(494): apply_filters(‘woocommerce_ord…’, ‘test’, Object(WC_Order_Item_Product), false)
    #3 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(94): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_order_items()
    #4 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(698): include(‘/home/kastanje/…’)
    #5 /home/———-/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(602): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/kastanje/…’, Array)
    #6 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(584): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
    #7 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(620): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #8 /home/——–/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(255): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
    #9 /home/———–/public_html/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #10 /home/kastanje/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #11 /home/———-/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #12 /home/————-/public_html/wp-admin/admin-ajax.php(167): do_action(‘wp_ajax_generat…’)
    #13 {main}

    Also when I go thru the backend there is no pdf but this error.

    Hopefully you know what the problem is. I don’t ??

    Cheers

    Marco

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

    (@pomegranate)

    Hello Marco,
    It looks like this error is triggered by ‘EVOTX_WC’ which from a quick glance at google appears to be an “EventOn” calender plugin for WooCommerce/WordPress?
    It looks like this plugin is trying to modify the name/description of products, but there’s a ‘test’ product in this particular order that doesn’t exist in the WooCommerce catalog anymore, so the EVOTX_WC plugin crashes trying to read data from it. This will probably also crash the WooCommerce email since it uses the same filters for the product name that our PDF Invoice plugin uses.
    I recommend reaching out to the EventOn plugin developers and ask them to build in a check for non-existing products to avoid this issue.

    Hope that helps!

    Thread Starter MCMarco

    (@marcomedia)

    Thanks Ewout! Will do that.

    Thread Starter MCMarco

    (@marcomedia)

    Hi,

    Eventon boys and girls solved the problem within a day. They released an update and everything was solved.

    Plugin Contributor Ewout

    (@pomegranate)

    Awesome, thanks for the feedback!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Suddenly getting an error’ is closed to new replies.