• Resolved Syl

    (@alexsylvester)


    Problem:

    After updating the plugin, when I enter event categories on wp-admin, it causes a critical error, the layout is broken, and I’m unable to edit any categories.

    Error details:

    The E_ERROR error was caused in line 56 of the file {PATH}/wp-content/plugins/the-events-calendar/src/Events/Category_Colors/Admin/Quick_Edit.php. 
    Error message: Uncaught TypeError:
    TEC\Events\Category_Colors\Admin\Quick_Edit::add_custom_column_data(): Argument #1 ($content) must be of type string, null given, called in {PATH}/wp-content/plugins/the-events-calendar/src/Events/Category_Colors/Admin/Controller.php on line 178 and defined in {PATH}/wp-content/plugins/the-events-calendar/src/Events/Category_Colors/Admin/Quick_Edit.php:56
    Stack trace:
    #0 {PATH}/wp-content/plugins/the-events-calendar/src/Events/Category_Colors/Admin/Controller.php(178): TEC\Events\Category_Colors\Admin\Quick_Edit->add_custom_column_data(NULL, 'category_priori...', 59)
    #1 {PATH}/wp-includes/class-wp-hook.php(324): TEC\Events\Category_Colors\Admin\Controller->add_column_data(NULL, 'category_priori...', 59)
    #2 {PATH}/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
    #3 {PATH}/wp-admin/includes/class-wp-terms-list-table.php(669): apply_filters('manage_tribe_ev...', '', 'category_priori...', 59)
    #4 {PATH}/wp-admin/includes/class-wp-list-table.php(1802): WP_Terms_List_Table->column_default(Object(WP_Term), 'category_priori...')
    #5 {PATH}/wp-admin/includes/class-wp-terms-list-table.php(352): WP_List_Table->single_row_columns(Object(WP_Term))
    #6 {PATH}/wp-admin/includes/class-wp-terms-list-table.php(319): WP_Terms_List_Table->single_row(Object(WP_Term), 'level-0')
    #7 {PATH}/wp-admin/includes/class-wp-terms-list-table.php(256): WP_Terms_List_Table->_rows('tribe_events_ca...', Array, Array, 0, 20, 0)
    #8 {PATH}/wp-admin/includes/class-wp-list-table.php(1639): WP_Terms_List_Table->display_rows_or_placeholder()
    #9 {PATH}/wp-admin/edit-tags.php(622): WP_List_Table->display()
    #10 {main}
    thrown

    Version details:
    The Events Calendar (v 6.15.0.1)
    PHP: 8.2.29

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

    (@d0153)

    Hi @alexsylvester

    Thanks for reaching out. It looks like you may not have migrated your category colors yet.

    If you haven’t done so already, please follow the steps in this guide to migrate your category colors:
    How to Migrate from the Standalone Category Colors Plugin to The Events Calendar

    Let me know once you’ve completed the migration, or if you run into any issues along the way — I’ll be happy to assist further.

    Thread Starter Syl

    (@alexsylvester)

    @d0153 thank you for the quick response. I forgot to mention, I’ve never used the Category Colors plugin, nor do I intend to on that site. Settings for category colors are as on the below image. If possible, I would like to disable it at all. Is there an option or a filter to do so?

    Plugin Support tristan083

    (@tristan083)

    Hi @alexsylvester ,

    Thank you for your message and clarification.

    The Events Calendar now ships with the functionality that The Events Calendar: Category Colors came with. Since you do not wish to use this functionality, I recommend you ensure to deactivate and remove The Events Calendar: Category Colors plugin from your WordPress environment -> Plugins section.

    The following filter hook will also deactivate the category colors functionality that ships with the latest versions of The Events Calendar.

    add_filter ( 'tec_events_category_colors_enabled', '__return_false' );
    Plugin Support Darian

    (@d0153)

    Hi @alexsylvester ,

    I hope you’re doing well. I just wanted to touch base and check in with you. It’s been a little while since we’ve heard from you. I was just curious if you had the chance to try out the recommendation provided above.

    Let us know if there’s anything we can assist you with.

    Thread Starter Syl

    (@alexsylvester)

    @d0153 I tried using the recommended filter:

    add_filter('tec_events_category_colors_enabled', '__return_false' );

    And interestingly, it didn’t solve the problem, nor did it turn off the Category Colors option from the Events Calendar plugin. It’s still visible in Events > Settings > Display > Category Colors. Of course it still causes the critical error when entering: Events > Event Categories.

    I’ve never used the Events Calendar: Category Colors plugin, so there is nothing to uninstall. The problem has occurred since the update to the recent version of the Events Calendar.

    At the moment, the only solution I see is to revert to the previous, working version. Are the previous versions publicly available to download? It would be a better move for me than getting it from my last backup.

    Thread Starter Syl

    (@alexsylvester)

    I reverted to the last working version (6.13.2.1). Everything is fine now, as the introduction of Category Colors is causing problems, and this is the last version without it. However, it also means that I will be unable to update the plugin unless the bug causing the error is handled.

    If anyone faces the same problem, here are all the releases: https://github.com/the-events-calendar/the-events-calendar/releases

    Anyway, my recommendation for The Events Calendar team is to not force using the Category Colors. It should be turned off by default if you already decided to merge it into the main plugin.

    Plugin Support Darian

    (@d0153)

    Hi @alexsylvester

    Thanks for your message. I completely understand how frustrating this must be, especially since you’re not even using Category Colors plugin previously on your site.

    We’ve already created an internal bug ticket for this specific issue so our development team can investigate it further and implement the necessary fix to prevent it from happening again.

    In the meantime, would it be possible for you to run a quick conflict test on your end? This will help us rule out any potential conflicts with other plugins, customizations, or your theme, so we can narrow down the cause more efficiently.

    To help isolate the issue, please activate only our plugins along with a default WordPress theme like Twenty Twenty-One, and then check if the issue still occurs.

    If everything works as expected in that setup, you can begin reactivating your other plugins and theme one by one. This will help pinpoint exactly what’s triggering the conflict.

    I highly recommend doing this on a staging site to keep your live site safe and uninterrupted. If you haven’t set one up yet, the WP Staging plugin makes the process quick and easy.

    Let me know how it goes.

    —–
    Internal Bug Ticket Reference: TECTRIA-1256

    Plugin Support Darian

    (@d0153)

    Hi @alexsylvester

    We prioritize bugs by taking into consideration the number of users impacted as well as how the bug impacts one’s ability to run an event/sell tickets. I don’t have a specific timeline as to when this issue will be resolved, but trust that our team is aware. Our team communicates updates and bug fixes in our newsletter and via our changelog. We’ll also update you through this thread once the fix is out.

    I’m happy to help if any other questions are coming up around this topic, otherwise I’ll go ahead and close this ticket for now.

    Thread Starter Syl

    (@alexsylvester)

    Thank you @d0153 for the support. I’ll try to run a conflict test on my end, but it will take me a while. Meanwhile, you can close the ticket, as I’m able to edit categories, and this is what’s important. If I had any findings after the test, should I post it here (probably not possible after closing the ticket), or reach out somewhere else? Email maybe, with the ticket reference?

    Plugin Support Darian

    (@d0153)

    Hi @alexsylvester

    Thanks for your response.

    You can still reply to this thread even after it’s closed. Once you’ve replied, just mark it as “Not Resolved” in the sidebar so it moves back to the Not Resolved threads.

    Plugin Support Darian

    (@d0153)

    Hi @alexsylvester

    Thanks for your patience. We’ve just released a new version of the plugin that resolves the issue you were experiencing with Category Colors. Please update to the latest version to apply the fix.

    As always, we recommend testing the update on a staging site first before deploying it to your live site.

    Thread Starter Syl

    (@alexsylvester)

    Yes, it seems, it’s all good now. Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.