• Resolved Jaap de Wit

    (@hitec4ever)


    Hi,

    When creating a WooCommerce booking (WooCommerce bookings plugins) and saving the booking an error occurs.

    Error Details
    =============
    An error of type E_ERROR was caused in line 90 of the file /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php. Error message: Uncaught Error: Call to a member function get_id() on bool in /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php:90
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(308): WPO\WC\PDF_Invoices\Main->attach_pdf_to_email()
    #1 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #2 /public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(463): apply_filters()
    #3 /public_html/wp-content/plugins/woocommerce-bookings/includes/emails/class-wc-email-booking-confirmed.php(101): WC_Email->get_attachments()
    #4 /public_html/wp-includes/class-wp-hook.php(310): WC_Email_Booking_Confirmed->trigger()
    #5 /public_html/wp-includes/class-wp-hook.php(332):

    Can this be looked into please?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi Jaap,

    Are you using the last release of our plugin? Currently, it’s 3.2.4

    Also, is this error prompted just after creating a booking or in a later stage when you try to generate a PDF document for that booking?

    Thread Starter Jaap de Wit

    (@hitec4ever)

    Hi @yordansoares,

    The latest version is running. The error occurs after saving the created booking in the back-end. My customer creates this booking from bookings –> new booking. The error occurs if no ordernumber is being created. When he choses to create a new ordernumber or select an existing order the error is not there.

    Cheers,
    Jaap

    Hi @hitec4ever,

    Thank you for the report!

    We are aware of the problem. We already added it to our roadmap, and it should be fixed in the next release. A temporary solution should be to uncheck all WooCommerce booking emails in the “Attach to” option.

    We’ll let you know as soon as we publish the fix ??

    Hi @hitec4ever,

    We have released a new version PDF Invoices & Packing Slips for WooCommerce 3.2.5 which fixes the issue, can you upgrade?

    Let me know if this works for you.

    Thread Starter Jaap de Wit

    (@hitec4ever)

    Hi @jhosagid,

    Thanks! The issue has been solved.

    Cheers,
    Jaap

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error when creating Booking’ is closed to new replies.