• Resolved gilesytheking

    (@gilesytheking)


    I am using autoptimise plugin on my site to minify CSS and JS.

    When the autoptimise plugin is active the JS does not load correctly and products are unable to be filtered. When I disable autoptimise filtering works fine.

    I have added the .js files from your plugin into the section of autoptimise to Exclude scripts from Autoptimize:, but this does not seem to help. Here are the errors i am getting in console.

    Hopefully you have a solution for this issue? perhaps a setting within your plugin that i missed?

    jquery.js:2 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in []
        at s (jquery.js:2)
        at Function.each (jquery.js:2)
        at woof_draw_products_top_panel (front.js:635)
        at HTMLDocument.<anonymous> (front.js:212)
        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)
    s @ jquery.js:2
    each @ jquery.js:2
    woof_draw_products_top_panel @ front.js:635
    (anonymous) @ front.js:212
    i @ jquery.js:2
    fireWith @ jquery.js:2
    ready @ jquery.js:2
    K @ jquery.js:2
    checkbox.js:61 Uncaught TypeError: Cannot use 'in' operator to search for 'pa_clothing-size' in []
        at woof_checkbox_direct_search (checkbox.js:61)
        at woof_checkbox_process_data (checkbox.js:54)
        at HTMLInputElement.<anonymous> (checkbox.js:42)
        at HTMLInputElement.dispatch (jquery.js:3)
        at HTMLInputElement.r.handle (jquery.js:3)
    woof_checkbox_direct_search @ checkbox.js:61
    woof_checkbox_process_data @ checkbox.js:54
    (anonymous) @ checkbox.js:42
    dispatch @ jquery.js:3
    r.handle @ jquery.js:3
    autoptimize_b85a1ca….js:191 ShiftNav initialized via window.load
    checkbox.js:69 Uncaught TypeError: Cannot read property 'split' of undefined
        at woof_checkbox_direct_search (checkbox.js:69)
        at woof_checkbox_process_data (checkbox.js:54)
        at HTMLInputElement.<anonymous> (checkbox.js:45)
        at HTMLInputElement.dispatch (jquery.js:3)
        at HTMLInputElement.r.handle (jquery.js:3)
    woof_checkbox_direct_search @ checkbox.js:69
    woof_checkbox_process_data @ checkbox.js:54
    (anonymous) @ checkbox.js:45
    dispatch @ jquery.js:3
    r.handle @ jquery.js:3
    checkbox.js:61 Uncaught TypeError: Cannot use 'in' operator to search for 'pa_clothing-size' in []
        at woof_checkbox_direct_search (checkbox.js:61)
        at woof_checkbox_process_data (checkbox.js:54)
        at HTMLInputElement.<anonymous> (checkbox.js:42)
        at HTMLInputElement.dispatch (jquery.js:3)
        at HTMLInputElement.r.handle (jquery.js:3)
    woof_checkbox_direct_search @ checkbox.js:61
    woof_checkbox_process_data @ checkbox.js:54
    (anonymous) @ checkbox.js:42
    dispatch @ jquery.js:3
    r.handle @ jquery.js:3
    checkbox.js:69 Uncaught TypeError: Cannot read property 'split' of undefined
        at woof_checkbox_direct_search (checkbox.js:69)
        at woof_checkbox_process_data (checkbox.js:54)
        at HTMLInputElement.<anonymous> (checkbox.js:45)
        at HTMLInputElement.dispatch (jquery.js:3)
        at HTMLInputElement.r.handle (jquery.js:3)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with Autoptimise Plugin’ is closed to new replies.