• Resolved cnxsoft

    (@cnxsoft)


    Since the update to WordPress 5.6, I had to disable JavaScript optimization or it would conflict with Events Manager plugin. The calendar will just not load if
    Here are the errors I have in the console:

    jQuery.Deferred exception: E[r.substring(...)] is not a function TypeError: E[r.substring(...)] is not a function
        at f (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:70561)
        at s (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:69330)
        at Object.o [as formatRange] (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:69211)
        at e.formatRange (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:581:52012)
        at e.computeTitle (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:52630)
        at e.<anonymous> (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:63255)
        at https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:73725
        at c (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:74191)
        at e.<anonymous> (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:74385)
        at e (https://www.cnx-software.com/wp-content/cache/autoptimize/js/autoptimize_280f6d32541af696b40bafcfd026731f.js:580:17994) undefined
    S.Deferred.exceptionHook @ jquery.min.js?ver=3.5.1:2
    t @ jquery.min.js?ver=3.5.1:2
    setTimeout (async)
    (anonymous) @ jquery.min.js?ver=3.5.1:2
    c @ jquery.min.js?ver=3.5.1:2
    fireWith @ jquery.min.js?ver=3.5.1:2
    fire @ jquery.min.js?ver=3.5.1:2
    c @ jquery.min.js?ver=3.5.1:2
    fireWith @ jquery.min.js?ver=3.5.1:2
    ready @ jquery.min.js?ver=3.5.1:2
    B @ jquery.min.js?ver=3.5.1:2

    If I disable JavaScript optimization the error goes away, and the calendar loads properly.

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter cnxsoft

    (@cnxsoft)

    Sorry, the code above is for a warning. The error is:

    jquery.min.js?ver=3.5.1:2 Uncaught TypeError: E[r.substring(...)] is not a function
        at f (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at s (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at Object.o [as formatRange] (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at e.formatRange (autoptimize_280f6d32541af696b40bafcfd026731f.js:581)
        at e.computeTitle (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at e.<anonymous> (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at autoptimize_280f6d32541af696b40bafcfd026731f.js:580
        at c (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at e.<anonymous> (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
        at e (autoptimize_280f6d32541af696b40bafcfd026731f.js:580)
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Maybe try excluding jquery-migrate.min.js from JS optimization as well?

    I have the same exact issue after upgrading to WP 5.6, and I already have jquery-migrate.min.js in the exclude list. Any other recommendations that might fix this issue?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    can you share your site’s URL @pablopaul ?

    We had to disable AO on our live website, so here’s a clone I set up to troubleshoot the issue:
    https://kmun.candlefish.org/

    Here’s the broken calendar page, which uses the WP FullCalendar plugin to display the Events Manager calendar:
    https://kmun.candlefish.org/events-calendar-coast-community-radio/

    I thought that perhaps this issue was specific to the WP FullCalendar plugin, but then I noticed that when AO’s JavaScript Optimize is checked, it also breaks the styles on the modal window for individual program summaries on this page:
    https://kmun.candlefish.org/kmun-program-schedule/

    Here’s the list of everything I currently have in the AO JS exclude list:
    wp-includes/js/dist/,
    wp-includes/js/tinymce/,
    wp-spamshield,
    jquery.js,
    jquery.min.js,
    jquery-migrate.min.js,
    js/script.js,
    js/jquery/jquery.js,
    js/jquery/jquery.min.js,
    js/jquery/jquery-migrate.min.js

    Again, if I uncheck AO JavaScript Optimization, everything works fine.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    And have you tried adding plugins/wp-fullcalendar/ to the comma-separated JS optimization exclusion list?

    Adding plugins/wp-fullcalendar/ to the exclusion list doesn’t resolve the issue.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Just had a look at the cloned site and plugins/wp-fullcalendar/ is still not excluded there and the JS error on the console most certainly points to a JS file from that plugin, so as a first step let’s exclude it even if it doesn’t fix things immediately pablopaul ?

    I have added plugins/wp-fullcalendar to the exclusion list, but it seems that AO is failing to exclude it. When JavaScript Optimization is disabled, I can see that there are two js files in the plugins/wp-fullcalendar/includes/js folder. I have tried it with and without the preceding plugins/ in the exclusion name, and neither way works.

    Something else that might be relevant here: this calendar page corresponds to the Events Manager Events page, and is overwritten by it. When the WP FullCalendar plugin is deactivated, the calendar appears again, but it looks awful because it lacks the nice styling that WP FullCalendar normally would provide.

    Here’s what is in my AO exclusion list now:
    wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, wp-spamshield, jquery.js, jquery-migrate.min.js, js/jquery/jquery.min.js, plugins/wp-fullcalendar/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You can untick the “also minify excluded JS/ CSS”-option to “see” the original filename.

    Can you also add wp-includes/jquery/ui ?

    Adding plugins/wp-fullcalendar and unticking “also minify excluded JS/CSS” solved the issue with the calendar. Thank you!

    Adding wp-includes/jquery/ui didn’t seem to have any effect. Was that supposed to be js/jquery/ui?

    With AO JS Optimization enabled, I am still having problems with the broken styling of the jQueryUI-generated modal windows on our program schedule page. I can open a separate ticket for that, unless you want to address that in this thread as well. I tried with wp-includes/jquery/ui and js/jquery/ui, and still no change.
    https://kmun.candlefish.org/kmun-program-schedule/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Adding wp-includes/jquery/ui didn’t seem to have any effect. Was that supposed to be js/jquery/ui?

    indeed, my mistake; wp-includes/js/jquery/ui, potentially both in JS and CSS exclusions, can you try that?

    Including wp-includes/ as part of the directory in the exclusion name seems to be optional. For the sake of testing, though, I will use it. I have added wp-includes/js/jquery/ui to the CSS exclusion list, but it doesn’t fix the styling of the Programming Schedule modal.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK so re. the programming schedule modal; can you try disabling CSS opt. for a second to see if that fixes that issue, or JS opt. instead?

    After disabling both CSS and JS optimization, I realized the Programming Schedule modal issue has something to do with the clone on my dev server and not with the live website. Everything is resolved for me at this point.

    To recap: Adding wp-includes/js/jquery/ui and plugins/wp-fullcalendar to the JS exclusion list, and also unchecking “Minify excluded CSS and JS files” in the AO Misc Options section resolved my issue with the calendar not appearing.

    Thank you for all your help!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Conflict with Events Manager in WP 5.6’ is closed to new replies.