error in the jquery.ba-resize.js file

Home Forums Welcome! Pre-Sales Questions error in the jquery.ba-resize.js file

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1342320
    Julia
    Guest

    Hello,

    I’ve found one issue when using the Events Calendar shortcode on a page, could you please fix it in the next plugin update?

    The matter is that on the following event: jQuery(window).on(‘resize’, function() { there is an error in the javascript in the jquery.ba-resize.js file: https://www.screencast.com/t/maMUsbTbA which is caused by the undefined data.

    This error can be solved by changing the code to https://www.screencast.com/t/bYUTgefboT7c

    Please note that there is a need to change it in the jquery.ba-resize.min.js file also.

    It will be great if you implemented such changes into the nearest plugin update. Thanks in advance!
    Looking forward you reply.
    Have a great day!

    #1342668
    Cliff
    Member

    Hi, Julia. Thanks for posting here to let us know.

    Could you please share the shortcode(s) you’re able to reproduce this issue with?

    #1342881
    Julia
    Guest

    Hi Cliff, thanks for your reply!

    The error occurs when using the [tribe_events view=”month”] shortcode on the page, and when any other plugin on this page is calling the event jQuery(window).on(‘resize’, function() {

    Thanks for your assistance!

    #1343267
    Cliff
    Member

    Julia, sorry you’re experiencing this, but I wasn’t able to reproduce the issue.

    Therefore, I’d suggest following these recommended troubleshooting steps for your own site:

    There might be some new updates available. Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    If it is, please follow our Testing for Conflicts Guide (basically switch to Twenty Seventeen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.

    Of course, we always recommend restorable database and file backups before modifying anything on your site.

    If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see while trying to replicate this issue and doing other things on your site relevant to this ticket (such as visiting your site’s home page, events page, single-event pages, and anything else you can think to do).

    Then, please share your System Information (while in Testing for Conflicts Mode) in a Private Reply. That will give me a lot of extra information to help troubleshoot this.

    You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)

    Let us know what you find out.

    Thanks.

    #1343502
    Julia
    Guest

    Cliff, thanks for the prompt reply.

    I do use the latest Events Calendar plugin version and the latest WordPress version.

    The issue can be observed on the default Twenty Seventeen WordPress theme.
    Please see the screenshot from the back-end: https://www.screencast.com/t/QJYco3GzMWU

    And here is what I get on the front-end: https://www.screencast.com/t/d8EK8ZJL4Xt

    The mentioned error can be seen in the console.

    Please take a look and let me know if you need any additional information.
    Thank you!

    #1345154
    Cliff
    Member

    Julia, thanks for the detailed replies.

    1) Regarding https://www.screencast.com/t/QJYco3GzMWU, why do you have that <script> on that page?

    2) If you remove that script, does the console error go away?

    #1345310
    Julia
    Guest

    Thanks for your reply!

    As I mentioned in the first message of this topic the issue with error is caused exactly by the event: jQuery(window).on(‘resize’, function() {

    The matter this jQuery method is used by many other plugins and it also can be called apparently on the page as it is used in scripts: https://www.w3schools.com/jquery/event_resize.asp

    That’s why I asked you to change the code in the next plugin update in jquery.ba-resize.js and jquery.ba-resize.min.js files to make the Events Calendar plugin function correctly when using mentioned jQuery method on the same page.

    Appreciate your understanding, hope you’ll be able to help.
    Thanks in advance!

    #1346216
    George
    Participant

    Hey Julia,

    Thanks for reaching out. I wanted to follow up on this ticket to confirm that we are actually aware of this bug separately, and are trying to fix it as soon as we can.

    If all goes to plan, we should be able to publish a fix for this in the next 2 weeks or so. But it may take just a bit longer depending — while it may seem like a simple thing to fix, this script touches a lot of aspects of our plugin so we need to test it thoroughly if we replace or update it.

    We’ll mark this thread “Pending Fix”, which means that we’ll post an update once the fix is available.

    I’m sorry for the trouble here — your patience is much appreciated while we work on this!

    Sincerely,
    George

    #1352920
    Victor
    Member

    Hello!

    Just wanted to share with you that a new maintenance release (for the Week of 18 September 2017) is out, including a fix for this issue 🙂

    Find out more about this release → https://theeventscalendar.com/maintenance-release-week-18-september-2017/

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    #1363314
    Support Droid
    Keymaster

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘error in the jquery.ba-resize.js file’ is closed to new replies.