Update issues to Avada 5.0

Home Forums Calendar Products Events Calendar PRO Update issues to Avada 5.0

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1176414
    M
    Participant

    Hi,

    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 32

    Also in the admin part Event Add-Ons show now options “Buy this Add-On” while I have already bought some of them.

    #1176461
    Richard
    Participant

    Also 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.)

    #1178586
    Hunter
    Moderator

    Hello,

    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' );

    #1178597
    Richard
    Participant

    Thanks Hunter!

    #1179264
    Hunter
    Moderator

    Thank 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Update issues to Avada 5.0’ is closed to new replies.