Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Gustavo Bordoni

    (@bordoni)

    Hi @jetxpert,

    In that case, it seems like tribe-events-dynamic is being enqueued as a dependency of something else which could cause localized data not to load.

    A possible solution would be to:

    
    <?php
    add_action( 'wp_enqueue_scripts', function() {
        wp_localize_script( 
            'tribe-events-dynamic',
            'tribe_dynamic_help_text',
            tribe( 'tec.assets' )->get_js_dynamic_data()
        );
    }, 50 );
    
    

    Hopefully, that helps.

    Best Regards,

    Thread Starter jetxpert

    (@jetxpert)

    @bordoni,

    Thank you so much for your help. Unfortunately, your code did not work.

    In List view, we still get the error reported above.

    In Detail view, we now get the message provided below. Click here for details.

    Uncaught ReferenceError: DateFormatter is not defined

    Any other solutions you’d like to try?

    Thank you.

    Thread Starter jetxpert

    (@jetxpert)

    @bordoni,

    Apologies. Please disregard the “DateFormatter” issue reported above. Only need help with the original request. Again, your code did not work.

    Thank you.

    Thread Starter jetxpert

    (@jetxpert)

    @bordoni,

    *** GOOD NEWS. YOUR CODE FIXED THE ISSUE ***

    It worked after all. We re-cleared all cache files generated in the back end and front end for our website. After clearing all cache files, waited 5 minutes, then closed and relaunched our browser(s).

    Specifically:

    BACKEND

    Avada > Options > Performance > Reset Avada Caches
    WP Rocket > Settings > Dashboard > Clear Cache
    SG Optimizer > Supercacher Settings > Purge Cache
    Cloudflare > Caching > Purge Cache > Purge Everything

    FRONTEND

    Browser > Clear Cache (Global Cache)
    Broswer > CTRL + F5 (Local Cache)
    Close Browser > Reopen Browser

    Again, thank you. Cheers.

    Thread Starter jetxpert

    (@jetxpert)

    @bordoni (et al),

    Above works provided the following is activated in either Perfmatters or SG Optimizer:

    Remove Query Strings or Remove Query Strings From Static Resources

    Cheers!

    Thread Starter jetxpert

    (@jetxpert)

    @bordoni,

    Well, bad news. The issue re-appeared. Re-opening a new topic since this one cannot be “unchecked” as resolved.

    Cheers!

    Moderator Yui

    (@fierevere)

    永子

    Re-opening a new topic since this one cannot be “unchecked” as resolved.

    no need to open new topic, removed “resolved” mark

    Thread Starter jetxpert

    (@jetxpert)

    Fixed:

    OK, let’s try this one more time ??

    We can confirm the above snippet provided by @bordoni works.

    Here’s what we did:

    (1) Added the snippet to our functions.php file using the plugin “Code Snippets.” (Activated on back-end and front-end, Priority 2)

    (2) Activated “Remove Query Strings From Static Resources” in SG Optimizer. Any other caching plugin should have this feature.

    (3) Cleared all cache.

    (4) Waited 15′ for all cache files to re-generate.

    We’ll monitor this fix for a week and mark this issue as “Resolved” if it doesn’t resurface.

    Cheers!

    Thread Starter jetxpert

    (@jetxpert)

    Final Update and Fix:

    The above DID NOT work. However, we fixed this issue (confirmed) as follows:

    Open the following files:

    /wp-content/plugins/the-events-calendar/src/resources/js/events-dynamic.js

    and

    /wp-content/plugins/the-events-calendar/src/resources/js/events-dynamic.min.js

    Replace:

    helper

    With:

    help

    Thread Starter jetxpert

    (@jetxpert)

    Item Resolved!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Uncaught Reference Error (Tribe Dynamic Help Text Not Defined)’ is closed to new replies.