• Resolved GuenterHagedorn

    (@guenterhagedorn)


    Hi there… I’ve been testdriving your plugin “The Events Calendar” and have been running into a javascript error, that according to a google search was reported a few times but there was never an answer to it: When
    running the calender view, in the theme I’m using I’m getting a

    a.originalEvent is undefined

    error message. After turing script debugging on it turns out to be

    TypeError: event.originalEvent is undefined
    var state = event.originalEvent.state;

    in

    \the-events-calendar\src\resources\js\tribe-events-ajax-calendar.js

    I added a

    if (typeof event.originalEvent !== “undefined”) {
    }

    and the problem is gone. I couldn’t figure out though, what is causing
    the problem. I wonder if you’re adding this to the original file or if I have to add this to each and every update ?? or maybe you have some guidiance on how to debug the original problem.

    Cheers,
    Guenter

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Brian

    (@brianjessee)

    Hi,

    We do not have a bug ticket for this issue and this is the first I have seen it in the last year.

    However, it is is an issue it is something we would like to fix if we can get more information.

    What theme are you using? If you change to a WordPress Codex theme does it still show?

    Let us know.

    Thanks

    Thread Starter GuenterHagedorn

    (@guenterhagedorn)

    I’ve seen it here:
    https://www.ads-software.com/support/topic/javascript-error-typeerror-boriginalevent-is-undefined?replies=2

    I guess that this is after all not a problem of your plugin. The problem does not show up in original wordpress theme. However it does have other circumstances.

    For unknown reasons if an specific error (of so far unknown kind) occurs, it breaks your code at the named position. The theme I’m using is “pressroom” from theme forest.

    I can send you credentials to check it out you want to figure it out.

    Thanks for the link and the additional information.

    If you can isolate this as an issue that’s inherent to The Events Calendar, we’d be happy to look into it further. Unfortunately, we can’t help troubleshoot conflicts here on the free forum. If you do find a conflict, you can try getting in touch with the developer of the theme or plugin and see if they can shed some light on the issue.

    Thread Starter GuenterHagedorn

    (@guenterhagedorn)

    Maybe for now you could simply add the

    if (typeof event.originalEvent !== “undefined”) {
    }

    to the release. If your plugin does nothing wrong it doesn’t hurt.

    Thread Starter GuenterHagedorn

    (@guenterhagedorn)

    oh.. same thing for list and day of course.

    Hey @guenterhagedorn,

    Just want to follow-up with you on this, as Cliff noted if this is an issue with a particular theme you should let them know so they can fix it on their’s end.

    I understand your comment, as it seems to be an easy fix for us to implement but we cannot address in our plugin issues from the code of third-party theme or plugins. Does this makes sense?

    Please let me know if there’s anything else we can do for you,
    Best,
    Nico

    Thread Starter GuenterHagedorn

    (@guenterhagedorn)

    It’s actually not a theme issue either. It seems to be an issue with a certain combination of plugins including yours. I wasn’t able to pinpoint the source of the problem, but it’s not the theme.

    Anyway.. I will go on fixing it each time you bring out an update as I don’t know how else to find a solution.

    Cheers,
    Guenter

    Plugin Author Brian

    (@brianjessee)

    Ok, thanks for the followup.

    Not sure it is a good idea for us to wrap that if another plugin is causing the issue.

    We will be on the look out for it though.

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘originalEvent is undefined’ is closed to new replies.