Start Time to Month View Incompatibility

Home Forums Ticket Products Event Tickets Plus Start Time to Month View Incompatibility

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1425365
    Ezekial
    Participant

    The code referenced from this page (from 2015):
    https://theeventscalendar.com/knowledgebase/add-start-time-to-event-title/, while it still works, leads to some problems on the back-end. I see an error message in a few places, but now when I try to see “attendees” of an event, I can’t view them. I only see the following error message:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function tribe_add_start_time_to_event_title(), 1 passed in /home/public/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/public/wp-content/themes/kallyas/functions.php:223 Stack trace: #0 /home/public/wp-includes/class-wp-hook.php(286): tribe_add_start_time_to_event_title(‘Drawing Made Ea…’) #1 /home/public/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘Drawing Made Ea…’, Array) #2 /home/public/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Tabbed_View/Report_Tabbed_View.php(43): apply_filters(‘the_title’, ‘Drawing Made Ea…’) #3 /home/public/wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php(2569): Tribe__Tickets_Plus__Commerce__WooCommerce__Tabbed_View__Report_Tabbed_View->render() #4 /home/public/wp-includes/class-wp-hook.php(286): Tribe__Tickets_Plus__Commerce__WooCommerce__Main->render_tabbed_view(Object(Tribe__Tickets__Attendees)) #5 /home/public/wp-includes/class-wp-ho in /home/public/wp-content/themes/kallyas/functions.php on line 223

    Do I need to edit the code listed on the knowledgebase to make it more compatible with current platform version?

    Thanks!

    #1425366
    Ezekial
    Participant

    Line 223, btw, is:

    function tribe_add_start_time_to_event_title ( $post_title, $post_id ) {

    #1425977

    Hi Ezekial,

    Thanks so much for reaching out!

    Can you confirm that when you remove this customization, you are able to view attendees again, and you do not have any issues?

    Let me know!

     

    Thanks,

    Jaime

    #1425990
    Ezekial
    Participant

    This is correct.

    #1426717

    Hi Ezekial,

    Thanks for bringing this issue to our attention!  We have logged the issue and it should be resolved soon, however for now, can you try replacing:function tribe_add_start_time_to_event_title ( $post_title, $post_id )

    with function tribe_add_start_time_to_event_title ( $post_title=null, $post_id=null ).

    Let me know how that goes!

     

    Thanks,

    Jaime

    #1426731
    Ezekial
    Participant

    That solves the problem. Thanks, Jaime.

    #1426784

    Glad we could help, you are welcome back in our support forums any time!

    Since your issue has been resolved, I am going to close this thread.

    Have a great week!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Start Time to Month View Incompatibility’ is closed to new replies.