Home › Forums › Calendar Products › Events Calendar PRO › Update issues to Avada 5.0
- This topic has 5 replies, 4 voices, and was last updated 9 years, 6 months ago by
Hunter.
-
AuthorPosts
-
October 14, 2016 at 12:43 am #1176414
M
ParticipantHi,
I just update to the new Avada 5.0 and see some issues. Anyone else here using Avada 5.0 and have problems?
On the event list I see everywhere:
Undefined index: name in /var/www/nlblue-abdaloglu/wordpress/current/wp-content/themes/Avada/tribe-events/list/meta.php on line 32Also in the admin part Event Add-Ons show now options “Buy this Add-On” while I have already bought some of them.
October 14, 2016 at 4:15 am #1176461Richard
ParticipantAlso reported at https://theeventscalendar.com/support/forums/topic/tec-pro-4-3-release/ – this seems to be because the returned data from tribe_get_venue_details() has changed in The Events Calendar 4.3
Formerly:
Array ( [name] => Peterborough Arena
[address] => East of England Showground
Peterborough, PE2 6XE United Kingdom )Now:
Array ( [linked_name] => Peterborough Arena
[address] => East of England Showground
Peterborough, PE2 6XE United Kingdom )I reported this to Avada, who are on the case, but I’m not clear why name has been changed to linked_name in 4.3 in the returned array. Is this an intentional change, I wonder? (Can’t see it in the release notes; tribe_get_venue_details() is part of the documented API so I’m surprised the returned data has changed without it being noted somewhere.)
October 18, 2016 at 12:11 pm #1178586Hunter
ModeratorHello,
Welcome to the both of you 🙂
I spoke with the developers are you are correct, we updated things just a bit in efforts to remove unneeded code from the plugin. Try adding the following snippet to your theme’s functions.php file and let me know if things work properly until Avada can update their code. Cheers!
function tribe_get_venue_details_back_compat( $details ) {
if ( is_array( $details ) && isset( $details['linked_name'] ) ) {
$details['name'] = $details['linked_name'];
}return $details;
}add_filter( 'tribe_get_venue_details', 'tribe_get_venue_details_back_compat' );
October 18, 2016 at 12:34 pm #1178597Richard
ParticipantThanks Hunter!
October 19, 2016 at 10:53 am #1179264Hunter
ModeratorThank you for the response 🙂
No worries! According to the Avada changelog, it looks like they may have updated their codes with the recent changes we made.
– NEW: Events Calendar 4.3 support
I’ll close this thread out but feel free to open a new thread if the problem persists or you come across anything new. Take care and thanks again. Cheers!
-
AuthorPosts
- The topic ‘Update issues to Avada 5.0’ is closed to new replies.
