Search error

onne
onne
Offline
0
Hi Germi,

I'm getting errors on the search results page:

ReferenceError: perform_search is not defined[Meer info] index.php:236:5
https://www.rapsearch.com/index.php:236:5
n.Callbacks/i https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:27444
n.Callbacks/j.fireWith https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:28213
.ready https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:30004
K https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:30366

is this related to a change in jquery? I call them from a CDN as you can see and always had this to select the latest version. Recently it was updated to 3.2.0 and now the search results do not display.

I tried to set a manual version of jquery 3.1.1 but that does not work as well. Going lower to the 2.0 causes more erorrs on my site so that is no option as well.


Solution for now is that i disabled the jquery plugin (https://extensions.joomla.org/extension/eorisis-jquery/) but i would really like to use it... Is there some modification needed so i can enable it again?
Responses (12)
  • Accepted Answer

    onne
    onne
    Offline
    Monday, March 20 2017, 10:12 PM - #Permalink
    0
    Some more details...

    I tested my earlier mentioned solution but found it its something different i think.

    for some reason i only seems to have this in firefox? the erorr i posted above comes up there

    Chrome/IE and mobile work fine
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 21 2017, 11:01 AM - #Permalink
    0
    are you using JS file combination? I can't see the file search.js file being loaded on that page.. this means probably is mixed with other JS content... can you disable that?
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Wednesday, March 22 2017, 09:41 PM - #Permalink
    0
    I do yes, i use the plugin scriptmerge. What i did now is to let that plugin skip search.js and you can see it in the source code now... but its not working yet in Firefox on dekstops/mobile

    Is this enough or do you need me to change more settings?

    I can hand access so you can temp. disable the plugin yourself when you look? but i need it activated right after as disabling causes more issues
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 27 2017, 10:15 AM - #Permalink
    0
    can you do the same with the files playlists.js and playlist.js
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Monday, March 27 2017, 06:57 PM - #Permalink
    0
    Done.. although i dont see them in the source. I disabled the playlist feature as i dont use it in admin / permissions..

    I'm freally confused as to why FF is causing issues and IE and Chrome work just fine
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 28 2017, 09:28 AM - #Permalink
    0
    I don't see them either.. the files are not there...
    the absence of the file is causing the problem in FF aparently
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Tuesday, March 28 2017, 08:11 PM - #Permalink
    0
    Germi,

    I pinned it down to NOT include all .js files with the 'assets' path in it...

    But can you tell me which are reated to showing search results? I believe search.js / tagmanager.js / big_search_bar.js ...
    But there are more cause when i exlude the rest its not whoing results yet.. i just keeps loading.
    There are many .js files and i dont think all are needed on the search results page right?

    Second... do you have any idea why FF and IOS (i found out) have issues here while android and chrome worked fine?
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Thursday, March 30 2017, 03:48 PM - #Permalink
    0
    Hi germi..

    One more question added to the 2 above...

    When i exclude the 'assets' from being merged into one big .js file.. all works as i said, but.. the auto search results dropdown doesnt anymore?

    Is there a specific .js which controls that part of the search?
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Monday, April 03 2017, 07:30 PM - #Permalink
    0
    Hi Germi,

    I hope you can find time to fill me in on my earlier posts ;)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 05 2017, 09:50 AM - #Permalink
    0
    hi

    it works now for me if I check this on FF. Search results do show up now... so the JS file compression was causing some issues for you...
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Wednesday, April 05 2017, 01:25 PM - #Permalink
    0
    I does work now yes cause i excluded all .js with the 'assets' path in it. Reason i ask which .js are related is that i do want to include your system in to the compression. It can save me around 15! queries which i feel is a lot.

    Or do you have a different idea to optimize that?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 06 2017, 10:49 AM - #Permalink
    0
    it SHOULD be working, but clearly is not, because when you include these js files, it does not work. maybe your compression system is not doing it well..
    I would keep these files outside of compression
    The reply is currently minimized Show
Your Reply