Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter immanence

    (@immanence)

    The relevant parts of the Console output are:

    (anonymous function) @ animsition.min.js?ver=4.5:8
    methods.init @ animsition.min.js?ver=4.5:8
    $.fn.animsition @ animsition.min.js?ver=4.5:8

    The jquery version with WP4.5:

    jquery.js?ver=1.12.3:2 Uncaught Error: Syntax error, unrecognized expression: [href^=#]

    I’m getting the same problem, but using the Avada theme, with animations and slides not loading. I’m wondering if it’s n underlying problem in WordPress 4.5?

    Thread Starter immanence

    (@immanence)

    @ jfheath It’s a syntax problem in the plugin triggered by the updated version of jquery that ships with WP4.5.

    In the plugin’s page-animations-and-transitions.php file, on line 125, find and change this:

    [href^=#]

    to this:

    [href^="#"]
    Plugin Support weblizar_support

    (@weblizar_support)

    Hello immanence,
    thanks for update on this.

    Had to check all my code, but got it to work again.

    Thanks

    I added this code to the functions.php file in my theme, in order to use previous version of jQuery. worked like a charm ??

    //jQuery Insert From Google
    if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
    function my_jquery_enqueue() {
       wp_deregister_script('jquery');
       wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") .
            "://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js", false, null);
       wp_enqueue_script('jquery');
    }
    Thread Starter immanence

    (@immanence)

    @kingkin That’s a bad solution. jQuery is part of WP core, which should not be tinkered with. Updates to jQuery also include security patches.
    @weblizar_support Please update the plugin with the syntax change I noted above. This allows it to work with the latest jQuery that ships with WP4.5

    @immanence how to I find the offending code? I’m no expert by a longshot, just spent a lot of lime googling for a solution. Any help you can offer will be greatly appreciated

    Thread Starter immanence

    (@immanence)

    @kingkin Inside the Page Animations And Transitions plugin folder (yourdomain/wp-content/plugins) is a file named “page-animations-and-transitions.php”. On line 125 of that file, change this:

    [href^=#]

    to this:

    [href^="#"]

    I don’t know how you’re editing your WordPress files, but any code editor (like Sublime Text, Atom, Coda, PhPStorm, etc) will have a search function or the line numbers on the left if you open that file directly.

    Plugin Support weblizar_support

    (@weblizar_support)

    hello
    kingkin
    you can edit file go in wordPress plugins folder
    in plugin folder page-animations-and-transitions folder open it and open file page-animations-and-transitions.php see line number 120 to 130
    there is code [href^=#] edit it and change it [href^=”#”]

    Hello

    If I can’t find the “page-animations-and-transitions.php” under the (yourdomain/wp-content/plugins) is there somewhere else it can be ?

    Thread Starter immanence

    (@immanence)

    It’s in the plugin folder, which is most likely called “page-animations-and-transitions”, unless you renamed it

    Okay that is weird because the only file that is outside the folder is index.php When I login to the FTP and go to the plugins folder this is what I have. Image

    Thread Starter immanence

    (@immanence)

    @larsmmd Can you post a screenshot of your WordPress admin area, under the Plugins section, that shows the Page Animations And Transitions plugin activated?

    @immanence sure here you go I don’t know if that is what you meant?
    The theme that I’m using is called Avada I don’t know if that makes any difference?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘error after update to WP 4.5’ is closed to new replies.