Support » Plugin: PropertyHive » jQuery 3+ “Uncaught TypeError: url.indexOf is not a function”

  • Resolved eightwire

    (@eightwire)


    jQuery version 3.0 + shows console error
    “Uncaught TypeError: url.indexOf is not a function”

    Requires the following changes to fix in
    /wp-content/plugins/propertyhive/assets/js/flexslider/jquery.flexslider.init.js

    from
    $(window).load(function() {}

    to
    $(window).on(‘load’, function() {}

    https://api.jquery.com/load-event/
    .load( handler ) version deprecated: 1.8, removed: 3.0

Viewing 1 replies (of 1 total)
  • Plugin Author Property Hive

    (@propertyhive)

    @eightwire Thanks for this. At the moment we support the same version of jQuery that WordPress includes, assuming people will enqueue the same version on the frontend.

    I do agree though that some people might want to use the latest version of jQuery on the frontend, epsecially seeing as 1 and 2 are no longer supported.

    I’ve added this to our roadmap (https://trello.com/c/OFfilEdu) for addressing in the near future. It does effect quite a few areas of the plugin, including a lot of add ons, so will require a lot of testing, but will try and get this done for the next release in a few weeks.

    Of course, Property Hive is open source (https://github.com/propertyhive/WP-Property-Hive) should anyone else wish to contribute to this and do it earlier.

    Regards,
    Steve

Viewing 1 replies (of 1 total)
  • The topic ‘jQuery 3+ “Uncaught TypeError: url.indexOf is not a function”’ is closed to new replies.