• Resolved erdcck

    (@erdcck)


    Hello

    There is no problem in the first search, results are returned, but in the second search, no actions and I get a javascript error. How do I fix this. thank you.

    JS ERROR:
    —————-

    jquery-migrate.min.js?ver=3.3.2:2 JQMIGRATE: Migrate is installed, version 3.3.2
    core.min.js?ver=1.13.0:116 Uncaught TypeError: Cannot read properties of undefined (reading '_super')
        at r.<computed> (core.min.js?ver=1.13.0:116:888)
        at Array.sort (<anonymous>)
        at x.<computed>.<computed>.garageAdd (main.js?ver=5.9:5:51)
        at x.<computed>.<computed>.r.<computed> [as garageAdd] (core.min.js?ver=1.13.0:116:958)
        at x.<computed>.<computed>._submit (main.js?ver=5.9:36:242)
        at x.<computed>.<computed>.r.<computed> [as _submit] (core.min.js?ver=1.13.0:116:958)
        at x.<computed>.<computed>.submit (main.js?ver=5.9:35:6)
        at x.<computed>.<computed>.r.<computed> [as submit] (core.min.js?ver=1.13.0:116:958)
        at x.<computed>.<computed>.loadLevel (main.js?ver=5.9:17:6)
        at x.<computed>.<computed>.r.<computed> [as loadLevel] (core.min.js?ver=1.13.0:116:958)
    r.<computed> @ core.min.js?ver=1.13.0:116
    garageAdd @ main.js?ver=5.9:5
    r.<computed> @ core.min.js?ver=1.13.0:116
    _submit @ main.js?ver=5.9:36
    r.<computed> @ core.min.js?ver=1.13.0:116
    submit @ main.js?ver=5.9:35
    r.<computed> @ core.min.js?ver=1.13.0:116
    loadLevel @ main.js?ver=5.9:17
    r.<computed> @ core.min.js?ver=1.13.0:116
    i @ jquery.min.js?ver=3.6.0:2
    i @ core.min.js?ver=1.13.0:116
    dispatch @ jquery.min.js?ver=3.6.0:2
    v.handle @ jquery.min.js?ver=3.6.0:2
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the line:

    
       selected.vehicles.sort(this.sortCaseIns);
    

    with:

    
       selected.vehicles.sort($.proxy(this.sortCaseIns, this));
    

    in the file:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Then refresh your browser cache.

    Stanislav

    Thread Starter erdcck

    (@erdcck)

    Thank you so much, you are the best

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Error’ is closed to new replies.