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

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

    Posts: 4031 Topics: 6
    | 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.


    Posts: 9815
    | 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: 4
    | 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

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