• Resolved logichub

    (@logichub)


    After upgrading Event Tickets to 5.4.2, we are getting following error on the WordPress login page:

    Fatal error: Uncaught Error: Call to a member function is_built_with_elementor() on bool in /public_html/wp-content/plugins/event-tickets/src/Tribe/Editor/Compatibility/Tickets.php:36
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(307): Tribe__Tickets__Editor__Compatibility__Tickets->include_frontend_form('')
    #1 /public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters('', Array)
    #2 /public_html/wp-content/plugins/buddyboss-platform/bp-core/bp-core-catchuri.php(1535): apply_filters('the_content', '')
    #3 /public_html/wp-includes/class-wp-hook.php(307): bp_core_change_privacy_policy_link_on_private_network('', '')
    #4 /public_html/wp-includes/plugin.php in /public_html/wp-content/plugins/event-tickets/src/Tribe/Editor/Compatibility/Tickets.php on line 36

    Error went away if I remove following code from /public_html/wp-content/plugins/event-tickets/src/Tribe/Editor/Compatibility/Tickets.php:

    		if ( class_exists( '\Elementor\Plugin' ) && \Elementor\Plugin::$instance->documents->get( get_the_ID() )->is_built_with_elementor() ) {
    			return $content;
    		}

    Site’s system info is given below:

    Server: Apache
    MySQL: 5.7.32-35
    PHP: 7.4.30
    PHP Memory Limit: 768M
    WordPress: 6.0
    Theme: BuddyBoss Theme 2.0.5
    
    == Active Plugins ==
    Auto Login on Register for BuddyBoss 1.0.0
    BuddyBoss Platform 2.0.5
    BuddyBoss Platform Pro: 2.0.4
    Display Posts: 3.0.2
    Elementor: 3.6.7
    Elementor Pro: 3.7.2
    Events Tickets Extension: Virtual / Online Event Tickets: 1.1.1
    Event Tickets: 5.4.2
    Gravity Forms: 2.6.4
    Gravity Forms Polls Add-On: 3.9
    Gravity Forms Quiz Add-On: 3.9
    Gravity Forms reCAPTCHA Add-On: 1.1
    Gravity Forms Survey Add-On: 3.7
    Gravity Forms Twilio Add-On: 2.9
    Gravity Forms User Registration Add-On: 5.0
    Gravity Forms Webhooks Add-On: 1.5
    Gravity Forms Zapier Add-On: 4.2
    Health Check & Troubleshooting: 1.4.5
    If Menu - Visibility control for menus: 0.16.3
    Loggedin - Limit Active Logins: 1.3.1
    MemberPress + BuddyPress Integration: 1.1.16
    MemberPress AWS: 1.3.6
    MemberPress Cancel Override: 1.0.1
    MemberPress Courses: 1.1.8
    MemberPress Developer Tools: 1.2.11
    MemberPress Downloads: 1.1.6
    MemberPress Elementor Content Protection: 1.0.2
    MemberPress Importer: 1.6.8
    MemberPress Plus: 1.9.39
    SiteGround Security: 1.2.9
    Stream: 3.9.0
    The Events Calendar: 5.16.2.1
    The Events Calendar PRO: 5.14.3
    User Switching: 1.6.0
    User Switching in Admin Bar: 1.4
Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @heidicannon @tedstur, appreciate you guys sharing this information. I would also like to ask for the steps on how to replicate the issue, this would definitely help us pinpoint the issue and check if there are workaround we can do in regard to this issue.

    Thanks for the help. Looking forward to hearing from you.

    Best,
    Abz

    I’m also getting this error on a client site when I try to go to the WooCommerce Checkout page (whether I have a ticket product in the cart or not). As soon as I go to the Checkout page I get this:

    Fatal error: Uncaught Error: Call to a member function is_built_with_elementor() on bool in /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-content/plugins/event-tickets/src/Tribe/Editor/Compatibility/Tickets.php:39 Stack trace: #0 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-includes/class-wp-hook.php(307): Tribe__Tickets__Editor__Compatibility__Tickets->include_frontend_form() #1 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters() #2 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-includes/formatting.php(3877): apply_filters() #3 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-includes/class-wp-hook.php(307): wp_trim_excerpt() #4 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters() #5 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-includes/post-template.php(429): apply_filters() #6 /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-content/plugins/wp-seopre in /home/596560.cloudwaysapps.com/asaaattbwg/public_html/wp-content/plugins/event-tickets/src/Tribe/Editor/Compatibility/Tickets.php on line 39

    Also, FWIW, the URL for the page which should be /boutique/commande/ when I click the Checkout button on the cart page is changed to/attendee-registration/?tickets_provider=tribe_wooticket.

    If I visit the checkout page manually (I’ve added it to the menu), I do not get the error and, on subsequent visits to the cart page, the button has the normal checkout page URL.

    Does this help?

    This is just a temporary fix but you can try to edit the file “/wp-content/plugins/event-tickets/src/Tribe/Editor/Compatibility/Tickets.php” and search for the content between lines 36 and 42. It should look like this:

    
    $post = get_post();
    if ( $post instanceof WP_Post
    	 && class_exists( '\Elementor\Plugin' )
    	 && \Elementor\Plugin::$instance->documents->get( $post->ID )->is_built_with_elementor()
    ) {
    	return $content;
    }
    

    Replace it with this:

    
    if ( $post instanceof WP_Post && class_exists( '\Elementor\Plugin' ) ) {
    
    	$element = \Elementor\Plugin::$instance->documents->get( $post->ID );
    
    	if ( $element && $element->is_built_with_elementor() ) return $content;
    
    }
    

    I’m trying now and looks like it works.

    Thank you @ingenyus ! That did fix the fatal error.

    Do you know if this fix will be added to the plugin soon?

    Thanks again!

    Plugin Support Abz

    (@abzlevelup)

    Hi @ingenyus, appreciate you sharing this one. Good to know that it is now working on your end @pixelyzed. I would definitely share this with the team.

    Have a great week ahead.

    Best,
    Abz

    Plugin Support Gladys

    (@greventscalendar)

    We have some great news! With our latest release of Event Tickets we have squashed a few bugs and made some improvements. This should resolve an issue causing a critical error during the checkout process. However, we have not been able to accurately reproduce the error on our end, so we cannot test and confirm. Be sure to review our full Release Notes for more details and update your plugin at your earliest convenience.

    As always, we suggest testing updates on a staging site first and having a recent backup, but it should all be smooth sailing. If you implemented any workarounds, you may remove them after updating.

    If you still have issues after updating to the latest releases, please open a new support topic and include any specific details, with screenshots if possible.

    Have a great day,
    Gladys

    Plugin Support Abz

    (@abzlevelup)

    Hi @pixelyzed @ingenyus @logichub @heidicannon, my colleague @greventscalendar shared that we have released a new version of the plugin that should fix the issue here. Please update to the latest version and keep a working backup of your website. We highly recommend trying the updates on a staging site.

    Let us know how it goes on your end.

    Best,
    Abz

    @pixelyzed @ingenyus @logichub @heidicannon

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

    Best,
    Rob

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Fatal error: Uncaught Error: Call to a member function is_built_with_elementor()’ is closed to new replies.