JS errors and event featured image missing

Home Forums Calendar Products Events Calendar PRO JS errors and event featured image missing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1217276
    Jairo
    Participant

    Hi,

    Since updating to WP 4.7.1 , The Events Calendar 4.4.0.1 and The Events Calendar PRO 4.4 we detected some issues.

    Datepicker fails when editing an Event. Please check attached image.
    Chrome console shows this message:

    events-admin.min.js:1 Uncaught TypeError: e(...).chosen is not a function
    at HTMLDocument.<anonymous> (events-admin.min.js:1)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2)
    at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2)
    at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2)
    (anonymous) @ events-admin.min.js:1
    i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2
    fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2
    ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2
    K @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-po…:2

    Besides the event image is missing on month view http://salapelicano.com/eventos/
    It should be shown when placing the mouse over the event title.

    There are also messages at Chrome console:

    JQMIGRATE: Migrate is installed, version 1.4.1
    tribe-events.min.js:1
    ["TEC Debug: Tribe Events JS init, Init Timer started from tribe-events.js."]
    tribe-events.min.js:1 TEC Debug: Browser and events settings information:
    tribe-events.min.js:1
    ["TEC Debug: tribe-events.js successfully loaded"]
    tribe-events.min.js:1
    ["TEC Debug: tribe-events-pro.js successfully loaded"]
    tribe-events.min.js:1
    ["TEC Debug: tribe-events-bar.js successfully loaded"]
    tribe-events.min.js:1
    Array[1]
    0
    :
    "TEC Debug: tribe-events-ajax-maps.js successfully loaded"
    length
    :
    1
    __proto__
    :
    Array[0]
    tribe-events-ajax-calendar.min.js:1 Uncaught TypeError: n.is_featured is not a function
    at HTMLDocument.<anonymous> (tribe-events-ajax-calendar.min.js:1)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)
    (anonymous) @ tribe-events-ajax-calendar.min.js:1
    i @ jquery.js:2
    fireWith @ jquery.js:2
    ready @ jquery.js:2
    K @ jquery.js:2

    #1217283
    Jairo
    Participant

    Hi,

    I give you more information about the second issue.
    This file /wp-content/themes/my-child-theme/tribe-events/month/tooltip.php contains this code:


    [[ if(imageSrc.length) { ]]
    <div class="tribe-events-event-thumb">
    [[=title]]
    </div>
    [[ } ]]

    Since today update imageSrc is null, so no image is shown.

    Thanks

    #1217790
    Hunter
    Moderator

    Hi. Sorry you’re experiencing the datepicker issue. It is a known bug that should be fixed soon via a plugin update.

    I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now.

    However, if you’re anxious to get it resolved right away, replacing the entire contents of this file:

    /wp-content/plugins/the-events-calendar/src/Tribe/Asset/Bootstrap_Datepicker.php

    with this code:

    https://raw.githubusercontent.com/moderntribe/the-events-calendar/6888c3ae5da0d67f4aacc147157f005efba1e93f/src/Tribe/Asset/Bootstrap_Datepicker.php

    resolved the issue for me. You might want to try it too. Please let me know how it works out.

    I am unable to reproduce the behavior of the featured image not displaying in the month view hover tooltip. I see you checked ‘Yes’ to reverting back to the default WordPress theme and deactivating all plugins other than ours as instructed in the Testing for conflicts guide, but can you please confirm this?

    Please keep me updated and have a good evening. Cheers!

    #1218094
    Jairo
    Participant

    This reply is private.

    #1218234
    Hunter
    Moderator

    This reply is private.

    #1219571
    Jairo
    Participant

    Hello,

    I’ve fixed the missing tooltip image.
    Old version used imageSrc and latest uses imageTooltipSrc, so I did a replace of this string.

    Is there any document where changes like this could be readed ?
    As we use custom views anytime they can fail if any change is done at the main scripts, and this file will help a lot.

    Thanks

    #1233058
    Hunter
    Moderator

    When users have custom templates they are responsible for updating them to match changes made in new releases – of course, we try to minimize disruption as far as possible. Also, we try to clue them in to things they should look for by providing useful data in Events > Help > Recent Template Changes. If you navigate there, you should see a list of recently updated templates (which changes each release).

    It’s also best you review our Release Notes and the plugin changelogs when updates are available.

    Thank you for sharing your solution with us and have a great rest of your day!

    #1249462
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘JS errors and event featured image missing’ is closed to new replies.