• Resolved Abigailm

    (@abigailm)


    I upgraded to the Events Calendar version 5.0.0 & am also running the latest versions of Events Calendar Pro, & Event Tickets & Event Tickets Pro.

    When I also upgraded the Category Colors program, the single-event view broke for pages which had tickets. There was a message on those pages indicating that an error had occured and the PHP error log showed the problem was with the Category Colors plugin.

    I rolled back to version 6.3.2 and everything seems to be working fine.

    Here is the PHP error message that was displayed in my logs:

    [28-Jan-2020 06:04:28 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Tribe__Tickets__Editor__Template::get_view() in /wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/Frontend.php:67
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(288): Fragen\Category_Colors\Frontend->set_legend_target_hook('/home/...', Array, Object(Tribe__Tickets__Editor__Template))
    #1 /wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #2 /wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /wp-content/plugins/event-tickets/common/src/Tribe/Template.php(693): do_action('tribe_template_...', '/home/...', Array, Object(Tribe__Tickets__Editor__Template))
    #4 /wp-content/plugins/event-tickets/src/Tribe/Tickets_View.php(1024): T in /wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/Frontend.php on line 67
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Andy Fragen

    (@afragen)

    Sorry about that. There seems to be a small conflict with the Events Tickets plugin.

    Can you try https://github.com/afragen/the-events-calendar-category-colors/archive/develop.zip

    Let me know if this fixes it and I’ll push it. I don’t have a copy of Events Tickets for testing.

    Thread Starter Abigailm

    (@abigailm)

    That seems to resolve the PHP error tied to the ticket plugin, but when I have the new version activated it blocks the loading of the venue map on the events view page. This is on all pages, not just those with tickets — so I think this is a separate problem.

    I see a console error tied to javascript and I know from the changelogs that with the general upgrade that there were some changes to the way javascript is handled that might affect paths in some way. Here is what the console error looks like:

    Uncaught ReferenceError: tribe is not defined
        at HTMLDocument.<anonymous> (legend-superpowers.js:139)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.J (jquery.js:2)

    That fixed it for me. Thx! Can once again see the RSVP’s for Event Tickets.

    • This reply was modified 4 years, 10 months ago by aussietx.
    Plugin Author Andy Fragen

    (@afragen)

    I just pushed a hotfix for the JS error.

    Thread Starter Abigailm

    (@abigailm)

    I updated to version 6.4.2 and I’m still seeing the Javascript error — both with loading of the Google map for the venue on event pages, and also on other pages which use the plugin “Data Tables Generator by Supsystic” (this uses a shortcode to embed a table on a page). Console error is the same, and this persists even if I roll back to version 6.3.2 — but there is no problem if I disable the Category Colors plugin — so it still looks like this plugin is causing the conflict. Although I think that it’s a conflict introduced by the Event Calendar update — that is, they changed something that caused a conflict in your plugin that wasn’t there before the change..

    I have disabled the Category Colors plugin for now — which is a shame because it is such a valuable feature to have on our site. But I’m hoping you’ll be able to iron out this bug soon.

    There is still an issue tied to the Tickets function because there is a slight difference in the Javascript console error.

    On the pages where I am seeing the failure to load Javascript-driven elements (map, embedded table) — that do NOT have events ticketing, I see this console error (“tribe is not defined”)

    legend-superpowers.js:139 Uncaught ReferenceError: tribe is not defined
        at HTMLDocument.<anonymous> (legend-superpowers.js:139)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.J (jquery.js:2)

    On the event pages where there is also an event ticketing option, the console error is “cannot read property ‘views’ of undefined”

    Uncaught TypeError: Cannot read property 'views' of undefined
        at HTMLDocument.<anonymous> (legend-superpowers.js:139)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.J (jquery.js:2)
    Plugin Author Andy Fragen

    (@afragen)

    @abigailm can you try the develop branch and see if the error persists or if there is a new error?

    https://github.com/afragen/the-events-calendar-category-colors/archive/develop.zip

    Plugin Author Andy Fragen

    (@afragen)

    @abigailm you don’t need to disable the whole plugin. You could simply uncheck the Legend Superpowers option.

    Thread Starter Abigailm

    (@abigailm)

    Andy, it is working now and I might owe you something of an apology, as there might have been a caching problem when I tested version 6.4.2. My site is on Cloudflare so it turned out that I needed to clear all caches there as well as the cache used on the server. (Plus also a local caching issue – I had to do a hard refresh in my browser as well).

    So I’m not quite sure at this point exactly what step fixed the problem — just that I need to once again remind myself to always clear all caches everywhere.

    • This reply was modified 4 years, 10 months ago by Abigailm.
    Plugin Author Andy Fragen

    (@afragen)

    @abigailm to be clear, you flushed the caches and now 6.4.2 works without any JS errors?

    Thread Starter Abigailm

    (@abigailm)

    Not with 6.4.2, unfortunately. (I just tested) But things are working with the development version you linked to above. (And now I am being careful to flush all caches with any changes).

    And thanks for the tip about the Legend Superpowers option — I didn’t remember that I had the option to disable that.

    Plugin Author Andy Fragen

    (@afragen)

    v6.4.3 now available.

    Plugin Author Andy Fragen

    (@afragen)

    v6.4.5 adds a new conditional test that is more specific. @abigailm Please let me know if your issue returns.

    Thanks Andy for the follow-up. I will check it again. I had to take events pro off line to deal with another possible conflict. Once I resolve I will reactivate and test. Thanks.
    Mike

    Thread Starter Abigailm

    (@abigailm)

    Everything looks ok for me after the upgrade – thanks for asking.

    Plugin Author Andy Fragen

    (@afragen)

    ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Bug Report with Version 6.4.0’ is closed to new replies.