undefined variable: quantity

Home Forums Ticket Products Event Tickets Plus undefined variable: quantity

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1290998
    Geert
    Participant

    Dear

    I’m running into issues since last thursday. Mainly internal server error while submitting the order (checkout form)
    WP debug present me constantly
    undefined variable: quantity in /data/sites/web/transplantouxbe/www/cms/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php on line 687

    Thanks for you help in advanced
    Greetings
    Geert

    #1292051
    Cliff
    Member

    Hi, Jonas/Geert. Sorry you’re experiencing this.

    This isn’t currently a known issue so I’d suggest following these recommended troubleshooting steps for your own site:

    There might be some new updates available. Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    If it is, please follow our Testing for Conflicts Guide (basically switch to Twenty Seventeen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.

    Of course, we always recommend restorable database and file backups before modifying anything on your site.

    If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see while trying to replicate this issue and doing other things on your site relevant to this ticket (such as visiting your site’s home page, events page, single-event pages, and anything else you can think to do).

    Then, please share your System Information (while in Testing for Conflicts Mode) in a Private Reply. That will give me a lot of extra information to help troubleshoot this.

    You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)

    Let us know what you find out.

    Thanks.

    #1292531
    Geert
    Participant

    Dear

    I did test a lot, and we where on all the latest updates of WordPress / Woocommerce and plugins.
    After a will I found out in apache error logs that the issue was related to Event Ticket Plus.

    I had lots of erros as below
    [Tue May 30 17:30:23.820511 2017] [error] [pid 21909] mod_proxy_fcgi.c(745):
    [client 78.21.70.57:52397] AH01071: Got error ‘PHP message: billing_email was called incorrectly. Order properties should not be accessed directly.
    Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’),
    do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_without_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Main->generate_tickets,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Main->complete_order,
    do_action(‘wootickets-send-tickets-email’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Email->trigger,
    WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.\nPHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’),
    do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_without_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Main->generate_tickets,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Main->complete_order,
    do_action(‘wootickets-send-tickets-email’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Email->trigger,
    WC_Email->get_content,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Email->get_content_html,
    WC_Abstract_Legacy_Order->__get, wc…\nPHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace:
    require(‘wp-blog-header.php’),
    require_once(‘wp-includes/template-loader.php’),
    do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_without_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Main->generate_tickets,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Main->complete_order,
    do_action(‘wootickets-send-tickets-email’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Email->trigger,
    WC_Email->get_content,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Email->get_content_html,
    WC_Abstract_Legacy_Order->__get, wc…\nPHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace:
    require(‘wp-blog-header.php’),
    require_once(‘wp-includes/template-loader.php’),
    do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_without_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Main->generate_tickets,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Main->complete_order,
    do_action(‘wootickets-send-tickets-email’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Email->trigger,
    WC_Email->get_content,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Email->get_content_html,
    WC_Abstract_Legacy_Order->__get, wc…\nPHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace:
    require(‘wp-blog-header.php’),
    require_once(‘wp-includes/template-loader.php’),
    do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_without_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Main->generate_tickets,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Main->complete_order,
    do_action(‘wootickets-send-tickets-email’), WP_Hook->do_action, WP_Hook->apply_filters, Tribe__Tickets_Plus__Commerce__WooCommerce__Email->trigger,
    WC_Email->get_content,
    Tribe__Tickets_Plus__Commerce__WooCommerce__Email->get_content_html,
    WC_Abstract_Legacy_Order->__get, wc…\n’

    I did fall back to version 4.4.4 of the Event Ticket Plus, and the issue is gone.
    I’m creating a test environment to avoid such problems in the future.

    #1292591
    Cliff
    Member

    Trying to read through all that, it seems there are messages specific to WooCommerce 3.0.

    Event Tickets Plus v4.4.5 (April 10, 2017) added support for WC 3.0. I would expect using ET+ 4.4.4 or below would cause more errors…

    Did you confirm you’re still experiencing one/several/all of these same errors when using the latest ET+ and a WordPress default theme like Twenty Fifteen, Twenty Sixteen, Twenty Seventeen, etc.–along with all WooCommerce extensions deactivated?

    What payment gateway(s) are you using?

    Please also share your System Information in a Private Reply.

    #1293229
    Geert
    Participant

    Hi Cliff

    First of all it’s rather difficult to go to all test procedure.
    We only have one single-site license for ET, WC Subscription, WC Memberships.
    We do use the Onepress theme which is 100% compatible with WooCommerce.

    After seeking for a while I managed to create a test/quality environment on https://www.transplantoux.be/test
    i have updatet this site to the latest version of everything, and it seems to work.
    As we are finalizing a hughe business project within two weeks, I prefer not to touch the production before 20the of June. As of then I will start backup the production site, and update component by component.
    Please put this ticket on hold till then.

    #1293509
    Cliff
    Member

    Thanks for the update.

    Please note that threads get Closed automatically after 3 weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.

    Thank you!

    #1308770
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘undefined variable: quantity’ is closed to new replies.