• Resolved donpi73

    (@donpi73)


    Last version of your plugin has an error:
    No more columns are created and – in fact – Browser Console says:

    Uncaught TypeError: e.indexOf is not a function
    at S.fn.init.S.fn.load (jquery.min.js?ver=3.6.0:2:84932)
    at mctagmap.js?ver=17.0.22:95:17

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author tugbucket

    (@tugbucket)

    @donpi73 Turn off the combine all JS combine option in Litespeed, purge your cache and does the issue still exist? I installed Litespeed to test but for some reason, it’s not minimizing the files so I can
    t accurately test.

    Thread Starter donpi73

    (@donpi73)

    I tried turning off all JS combine option, and also completely unistsalling Litespeed plugin, but the issue stille exist.

    Thread Starter donpi73

    (@donpi73)

    I found the origin of the “problem”.
    In my child theme I disabled jQuery Migrate.
    When I re-enabled it, your plugin works like a charm.
    So this tell me (and you) that the problem is your JavaScript coding, that still contains obsolete and deprecate JavaScript features that will be removed as soon as possible.

    Cheers

    Plugin Author tugbucket

    (@tugbucket)

    @donpi73
    My plugin JS doesn’t include e.indexOf the reason your console shows mctagmap as the issue is you are combining and minimizing the JS from all your plugins and mine is last. There might be some conflict with my plugin and another you are using but as long as all the JS is combined and minified, I have no idea what plugins you are using.

    https://plugins.trac.wordpress.org/browser/multi-column-tag-map/trunk/mctagmap.js

    Thread Starter donpi73

    (@donpi73)

    No.
    I have tried with JavaScript NOT combined and NOT minified, and this is the Console errore message:

    Uncaught TypeError: e.indexOf is not a function
        at S.fn.init.S.fn.load (jquery.min.js?ver=3.6.0:2:84932)
        at mctagmap.js?ver=17.0.23:95:17
    S.fn.load @ jquery.min.js?ver=3.6.0:2
    (anonimo) @ mctagmap.js?ver=17.0.23:95

    According to this message, your plugin affected line of code must be this (line 95, column 17):

    jQuery(window).load(mctm_columns_tug98);

    So, please verify, as this error disappear when I activate jQuery Migrate.

    Plugin Author tugbucket

    (@tugbucket)

    well that’s more helpful. grab version 17.0.24.

    Thread Starter donpi73

    (@donpi73)

    Now it’s all OK.

    Thanks 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JavaScript error’ is closed to new replies.