Help Desk

replace create_function with anonymous function in community.Main.php line 922

  • Posts: 3 Topics: 3
    | Permalink

    I believe is should be updated to:

                <code>add_shortcode( 'tribe_community_events_title', function() {
                    return apply_filters( "tribe_ce_submit_event_page_title", __( "Submit an Event", "tribe-events-community" ) );
                });</code>
    

    But didn’t test yet. The Depreciation warning went away.

    Posts: 6230 Topics: 17
    | Permalink

    Hi Mike!

    Thanks for reaching out to us!

    Just wanted to let you know that we are dealing with a high volume of threads at the moment and it may take us more than usual to get back to you.

    We appreciate your patience while we slowly get back to normal response times.

    Best,
    Victor

    Posts: 11239
    | Permalink
    Correct Answer

    Hi, Mike. Yes, create_function() was deprecated in PHP 7.2.

    I searched our plugins’ code and found it used in The Events Calendar, Event Tickets, and Community Events.

    I’ve logged this bug with our developers and marked this thread as Pending Fix, which means it should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.

    I apologize for this issue and appreciate your understanding and patience.

    Posts: 65
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    | Permalink
    Posts: 5926
    | Permalink

    Hi There!

    Just wanted to share with you that a new release of our plugins is out, including a fix for this issue 🙂

    Find out more about this release —> https://theeventscalendar.com/maintenance-release-week-25-march-2018/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Jaime

    Posts: 65
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

The topic ‘replace create_function with anonymous function in community.Main.php line 922’ is closed to new replies.