• Resolved pixar2042

    (@pixar2042)


    I have a plugin template customization in tooltip.php the code I add is from event tickets to count the ticket quantity and display a link in calendar, this is working before the update and now I’m having critical error.

    Template Path: yourtheme/tribe/events/v2/month/calendar-body/day/calendar-events/calendar-event/tooltip.php

    <?php
    $tickets = new Tribe__Tickets__Tickets();
    if( $tickets->post_has_tickets( $event ) ){
    	$ticket = $tickets->get_ticket_counts( $event->ID );
    	if( $ticket['tickets']['available'] == 0 ){
    				?>
    <a href="<?php echo esc_url( $event->permalink ); ?>/#form-waitlist-title" rel="bookmark" style="font-size: 13px;text-decoration: underline;font-weight: bold;color: #153D6B;"><span>Click here to Join Waitlist</span></a>
    
    <?php
    	}
    }
    ?>

    Thanks

    • This topic was modified 1 year ago by pixar2042.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darian

    (@d0153)

    Hi @pixar2042

    Thanks for reaching out.

    It seems you have an active license with us. For us to help you better and follow WordPress Forum Guidelines regarding premium users, please open a Support Ticket on our Help Desk.

    In addition, please enable debugging on your website, replicate the Fatal error again, and send us the error message you see (in the support ticket). Don’t forget to disable the debugging after that.

    You’ll hear from one of my colleagues soon!

    Thread Starter pixar2042

    (@pixar2042)

    Hi, thanks for the reply.
    Unfortunately I don’t have my client’s account to submit support ticket and enabling debug report in wordpress.com is not working, but my client sent me an error report from plugin support and they said the issue is coming from the theme

    Do I need event calendar pro to do this modification?

    Fatal error: Uncaught Error: Call to a member function get_tickets() on null
    in /srv/htdocs/wp-content/plugins/event-tickets/src/Tribe/Tickets.php on line 1780
    
    Call stack:
    
        Tribe__Tickets__Tickets::get_all_event_tickets()
        wp-content/plugins/event-tickets/src/template-tags/tickets.php:71
        tribe_events_has_tickets()
        wp-content/plugins/event-tickets/src/Tribe/Commerce/Currency.php:399
        Tribe__Tickets__Commerce__Currency::filter_cost_meta()
        wp-includes/class-wp-hook.php:326
        WP_Hook::apply_filters()
        wp-includes/plugin.php:205
        apply_filters()
        wp-includes/meta.php:635
        get_metadata_raw()
        wp-includes/meta.php:574
        get_metadata()
        wp-includes/post.php:2526
        get_post_meta()
        wp-content/plugins/the-events-calendar/src/Tribe/Cost_Utils.php:121
        Tribe__Events__Cost_Utils::get_formatted_event_cost()
        wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php:1034
        tribe_get_cost()
        wp-content/plugins/the-events-calendar/src/Tribe/Models/Post_Types/Event.php:208
        Tribe\E\M\P\Event::build_properties()
        wp-content/plugins/event-tickets/common/src/Tribe/Models/Post_Types/Base.php:160
        Tribe\M\P\Base::get_properties()
        wp-content/plugins/event-tickets/common/src/Tribe/Models/Post_Types/Base.php:193
        Tribe\M\P\Base::to_post()
        wp-content/plugins/the-events-calendar/src/functions/template-tags/event.php:142
        tribe_get_event()
        wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template/Excerpt.php:73
        Tribe\E\V\V\T\Excerpt::Tribe\E\V\V\T\{closure}()
        wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template/Excerpt.php:127
        Tribe\E\V\V\T\Excerpt::avoiding_filter_loop()
        wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Template/Excerpt.php:74
        Tribe\E\V\V\T\Excerpt::maybe_filter_excerpt_more()
        wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Hooks.php:551
        Tribe\E\V\V\Hooks::filter_excerpt_more()
        wp-includes/class-wp-hook.php:324
        WP_Hook::apply_filters()
        wp-includes/plugin.php:205
        apply_filters()
        wp-includes/formatting.php:4028
        wp_trim_excerpt()
        wp-includes/class-wp-hook.php:324
        WP_Hook::apply_filters()
        wp-includes/plugin.php:205
        apply_filters()
        wp-includes/post-template.php:434
        get_the_excerpt()
        wp-content/plugins/the-events-calendar/src/Events/Integrations/Plugins/WordPress_SEO/Events_Schema.php:225
        TEC\E\I\P\W\Events_Schema::transform_tribe_schema()
        wp-content/plugins/the-events-calendar/src/Events/Integrations/Plugins/WordPress_SEO/Events_Schema.php:89
        TEC\E\I\P\W\Events_Schema::generate()
        /wordpress/plugins/wordpress-seo/21.9/src/generators/schema-generator.php:128
        Yoast\W\S\G\Schema_Generator::generate_graph()
        /wordpress/plugins/wordpress-seo/21.9/src/generators/schema-generator.php:75
        Yoast\W\S\G\Schema_Generator::generate()
        /wordpress/plugins/wordpress-seo/21.9/src/presentations/indexable-presentation.php:720
        Yoast\W\S\P\Indexable_Presentation::generate_schema()
        /wordpress/plugins/wordpress-seo/21.9/src/presentations/abstract-presentation.php:66
        Yoast\W\S\P\Abstract_Presentation::__get()
        /wordpress/plugins/wordpress-seo/21.9/src/presenters/schema-presenter.php:61
        Yoast\W\S\P\Schema_Presenter::get()
        /wordpress/plugins/wordpress-seo/21.9/src/presenters/schema-presenter.php:45
        Yoast\W\S\P\Schema_Presenter::present()
        /wordpress/plugins/wordpress-seo/21.9/src/integrations/front-end-integration.php:416
        Yoast\W\S\I\Front_End_Integration::present_head()
        wp-includes/class-wp-hook.php:324
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:348
        WP_Hook::do_action()
        wp-includes/plugin.php:517
        do_action()
        /wordpress/plugins/wordpress-seo/21.9/src/integrations/front-end-integration.php:387
        Yoast\W\S\I\Front_End_Integration::call_wpseo_head()
        wp-includes/class-wp-hook.php:324
        WP_Hook::apply_filters()
        wp-includes/class-wp-hook.php:348
        WP_Hook::do_action()
        wp-includes/plugin.php:517
        do_action()
        wp-includes/general-template.php:3052
        wp_head()
        wp-includes/template-canvas.php:17
        include()
        wp-includes/template-loader.php:106
        require_once()
        wp-blog-header.php:19
        require()
        index.php:17
    
    Query Monitor
    • This reply was modified 1 year ago by pixar2042.
    Plugin Support Darian

    (@d0153)

    Hi @pixar2042

    If you are unable to access your client’s account, you can still submit a ticket via our Help Desk. However, please ensure that you include your license key in the message so that we can verify your account.

    See- https://share.getcloudapp.com/eDue8G9l

    In addition, please include in your message the error log you provided above and all necessary details so we can check it further on our side.

    Thread Starter pixar2042

    (@pixar2042)

    Awesome, ok I will submit a ticket.

    Thanks for the assist ??

    Frank Remmy

    (@frankremmy)

    Hello @pixar2042

    You’re welcome.

    I’d be closing this thread, and please do not hesitate to bump a new thread on our way. This is for us to track down topics/issues efficiently and for us to follow the WordPress Forum Guidelines.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Event ticket code not working anymore in calendar template’ is closed to new replies.