• Resolved Vinayak5192

    (@vinayak5192)


    Im facing the issue for the plugin with Jquery conflict: Please find the error below:
    Uncaught TypeError: jQuery(…).finalTilesGallery is not a function

    Please guide me on this

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    that error happens when the theme or another plugin don’t include jQuery using the proper function (enqueue_script).

    In order to understand who’s causing the issue you need to:

    1) switch to the WordPress default theme, if the issue disappears then the problem is caused by the theme, contact the author and explain he must include jQuery using enqueue_script

    2) if the problem is not the theme then you need to deactivate other plugin one by one until the issue disappears. Once you discover the plugin causing the issue contact the author and explain he must include jQuery using enqueue_script

    Kind regards,
    Diego

    I experienced the same issue and have added <?php wp_enqueue_script(“jquery”); ?> before <?php wp_head();?> to include jQuery as you explained.
    jQuery version is 1.12, after that WordPress loads jQuery Migrate and after the plugin js “script.js”
    I tried to deactivate also my plugins one by one but the issue is not disappeared.
    The page recalls a function that does not exist, infact I’m not able to find any “finalTilesGallery” function inside script.js.
    Can you point me to a solution?

    Hi,

    you can’t actually add the wp_enqueue_script before wp_head(). That’s not the way WordPress works. wp_enqueue_script must called inside the wp_head action:

    function include_jquery() {
        wp_enqueue_script(“jquery”);
    }
    add_action('wp_head', 'include_jquery');

    this code must be placed inside your functions.php

    If you are interested in themes development you should read carefully the main guide of wp.org https://codex.www.ads-software.com/Theme_Development

    Hi
    I have included wp_enqueue_script inside functions.php but the gallery is not visible yet.
    All items are fully loaded in DOM, it seems that javascript sets height=0 to all divs with class “ftg-items”.
    Please check the link I sent you via email.

    I guess the problem is this huge Grid size value: it’s now 1440 but it should be between 0 and 50.

    Diego

    Great!
    Now gallery is working.
    The problem is solved!
    Thanks for your fast replies.

    @greentreelabs
    page url : https://www.iskconmangalore.org/blog/deity-darshan/

    hey i’m facing the same problem.

    console:
    Uncaught TypeError: jQuery(…).finalTilesGallery is not a function.

    I added this code to functions.php

    function include_jquery() {
        wp_enqueue_script(“jquery”);
    }
    add_action('wp_head', 'include_jquery');
    • but the gallery is not visible yet.
    • console still shows the same error:
      Uncaught TypeError: jQuery(…).finalTilesGallery is not a function.

    Please guide me on this

    @webciit the problem is from your theme or another plugin which is currently adding jQuery statically, you can see by inspecting the code:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

    Try changing theme or disabling other plugins. Once you see who’s responsible you can contact the author asking to fix the issue. jQuery should NEVER be included statically, instead it must use the wp_enqueue_script function.

    Cheers,
    Diego

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