Home › Forums › Ticket Products › Event Tickets Plus › Start Time to Month View Incompatibility
- This topic has 7 replies, 2 voices, and was last updated 8 years, 3 months ago by
Ezekial.
-
AuthorPosts
-
January 12, 2018 at 7:07 pm #1425365
Ezekial
ParticipantThe 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!
January 12, 2018 at 7:08 pm #1425366Ezekial
ParticipantLine 223, btw, is:
function tribe_add_start_time_to_event_title ( $post_title, $post_id ) {
January 14, 2018 at 10:09 am #1425977Jaime Marchwinski
KeymasterHi 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
January 14, 2018 at 11:26 am #1425990Ezekial
ParticipantThis is correct.
January 15, 2018 at 11:04 am #1426717Jaime Marchwinski
KeymasterHi 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
January 15, 2018 at 11:15 am #1426731Ezekial
ParticipantThat solves the problem. Thanks, Jaime.
January 15, 2018 at 11:55 am #1426784Jaime Marchwinski
KeymasterGlad 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!
-
AuthorPosts
- The topic ‘Start Time to Month View Incompatibility’ is closed to new replies.
