• Resolved Christian Roth

    (@christiangoyippi)


    Hi, there is an error appearing when you use the functions tribe_get_event_cat_slugs or tribe_get_event_cat_ids and there is no category assigned to an event.

    In wp-content/plugins/the-events-calendar/src/functions/template-tags/general.php – line 473 you check if an error is occuring:

    if ( $terms instanceof WP_Error ) {
    	return [];
    }

    But you also need to check if the request is empty:

    if ( empty($terms) || $terms instanceof WP_Error ) {
    	return [];
    }

    The same goes for the line 496 in the function tribe_get_event_cat_slugs.

    All the best
    Christian

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darian

    (@d0153)

    Hi @christiangoyippi

    Thanks for reaching out.

    As it turns out, the same issue was already reported to our developers, and we have already created an internal ticket. As of now, it is in QA.

    I have added this thread to our internal ticket. While we don’t have an ETA, you’ll get notified once there is an update and fix.

    Please let me know if you have further questions or concerns.

    Regards,
    Darian

    —-
    Internal Bug Ticket: TEC-4725

    Thread Starter Christian Roth

    (@christiangoyippi)

    Hi @d0153,

    thanks for your answer. That sounds totally fine for me.

    All the best
    Christian

    Plugin Support Darian

    (@d0153)

    Hi @christiangoyippi

    As soon as we release a fix for this issue, we will post an update here in the thread.

    Appreciate your patience so far. If you do have other concerns or issues you need help with, please create another support topic as indicated in the www.remarpro.com support guidelines.

    Plugin Support Guga Alves

    (@gugaalves)

    Hi there,

    We’re back with good news for you.

    The internal bug ticket TEC-4725 was fixed!

    As always, we suggest testing updates on a staging site first and having a recent backup, but it should all be smooth sailing.

    Please update your Events Calendar plugin to apply that fix to your site.

    Best Regards,

    Plugin Support Darian

    (@d0153)

    Hi @christiangoyippi

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please open a new thread if any other questions arise, and we’d be happy to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tribe_get_event_cat_slugs error with empty categories’ is closed to new replies.