• Resolved smindworkz

    (@smindworkz)


    After I updated the Ivory Search plugin to version 4.5.4. the search function in the header stopped working. It happened to several sites I included Ivory Search and updated it.

    In every site it happened Ivory Search was shown as an magnifier icon in the header menu, and when you click on it the popup should open. In the popup you can type search words and the results are shown below. But after the update when you click on the magnifier icon it only adds an # to the URL and nothing happends. Also the styling seems off… In the console error it then shows Uncaught TypeError: a.indexOf is not a function. Migrating to an older version of Jquery is not the answer.. It has worked before the update.

    I hope it will be updated soon and with this bug fixed. Or does anyone else have an answer to this?

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    That sliding down is the functionality of Twenty Twenty theme and not the plugin.

    Please make sure that you have configured the plugin settings on the below path to display popup search in the menu.

    Admin Area -> Ivory Search -> Menu Search

    Thread Starter smindworkz

    (@smindworkz)

    As far as I can see now two files in the Ivory Search Plugin are using $(window).load(function () {. Isn’t that a depcricated function? The load event is removed from jQuery 3.0.
    Shouldn’t it be $(window).on(‘load’, function () {?

    Thread Starter smindworkz

    (@smindworkz)

    I just changed the $(window).load(function () in your files to $(window).on(‘load’, function () { and it works now… So I guess that was causing the issue. The plugin was using a depricated function.

    For now I guess the problem is solved, maybe it is possible to change it in the code?

    Anyway, thanks for your time.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Yes, you are right that it is depreciated as described here https://api.jquery.com/load-event/

    I was not getting this error as I was using the same jQuery version on my website that comes with WordPress.

    I will test the plugin with the latest jQuery version and resolve all the issues in the upcoming version of the plugin which I will release soon.

    Thank you for notifying the issue and helping out to improve the plugin.

    Your help here is really appreciated.

    I have this EXACT same issue. We are absolutely calling a new version of Jquery as it is required for a lot of other plugins. We are using the latest stable build of Jquery.

    Can you let us know what the latest stable version of Jquery is, that your plugin has been tested with?

    • This reply was modified 4 years, 7 months ago by badjesus.

    @smindworkz has the appropriate fix. I just corrected the three files and everything is now working again on the site. The function just needs to be es6 compliant.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    @badjesus I have fixed the issue with the plugin version 4.5.5 which will be released soon.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I have released the plugin version 4.5.5 containing fox for the issue.

    Thank you for your patience and cooperation.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Ivory search stopped working after update’ is closed to new replies.