• Resolved visuallization

    (@visuallization)


    Dear theme developers,

    I’ve upgraded today to wordpress 4.5 and discovered that some of the plugins were not working correctly anymore (in this specific case formidablepro forms the conditional logic).

    In the console the following error was thrown:
    Uncaught Error: Syntax error, unrecognized expression: a[href=#scroll-top]

    After some research I found out that the error originated from the responsive theme.
    So I went to the responsive-scripts-min.js and removed temporarily the specific line of code which was causing the problem:

    jQuery(document).ready(function ($) {
    $(‘a[href=#scroll-top]’).click(function () {
    $(‘html, body’).animate({
    scrollTop: 0
    }, ‘slow’);
    return false;
    });
    });

    And voila the error was gone and formidable plugin worked again.
    But of course this is only a temporarily solution which goes without the scroll top functionality.

    Could you please fix this in your next theme update? ??

    Cheers,
    visuallization

Viewing 14 replies - 16 through 29 (of 29 total)
  • Thanks guys for all your prompt replies, I have discovered the problem to be the Woocommerce Plugin. disable that and everything works as it should. I was uptil 5.30am this morning working with the very supportive team at TMD Hosting Ltd. The worked tirelessly with me throughout the night. They refer to themselves as the “Genius Team”, they certainly live upto their name.

    The problem came about as a result of WordPress update and Woocommerce latest update being released around the same time. So point and vent your frustrations with the WooCommerce Development Team

    Smartalk,

    Thanks for the update. We’re also running Woocommerce (Free Version 2.5.5) and have not seen any problems with the Woocommerce plugin, but we will certainly keep an eye out for it. All of our problems were fixed by the jquery edit posted in this thread (and now available in the latest Responsive Theme update).

    Also, we have not seen any recent updates to the Woocommerce plugin. Again, we’re running the Free Version 2.5.5. Is the Woocommerce update that you reference a Premium update? What version? Thanks.

    Hi deeveedee,

    Thank you for your reply I am literally at my wits end with this issue Is the latest Trend Responsive update \themeforest-11542091-trend-responsive-woocommerce-wordpress-theme\trend_package\theme.

    I have little knowledge on JS so have no idea where to find and check this Can you please give me step by step instructions

    Vladimir,

    what you sent me for the Divi theme worked. Thank you.

    Smartalk – if your setup is like mine, you won’t need any JS knowledge to find the WooCommerce plugin version. Here are the steps that work for me:

    1. Login to wp-admin panel for your site (domain/wp-admin) as an Administrator
    2. Click on ‘Plugins’ listed on the left side of the Dashboard
    3. Find Woocommerce in the list of Plugins and read the version number
    There may be multiple Plugins that include WooCommerce in their name. Find the one simply named “WooCommerce”
    4. Logout

    That’s the extent of my knowledge, so hopefully that works. If you do find your WooCommerce version, let me know. Thanks.

    Hi deeveede,

    Thank you for your instructions, I can confirm the version of WooCommerce I am using is 2.5.5.

    Thanks for the update, Smartalk.

    In fairness to the WooCommerce Development Team, WooCommerce version 2.5.5 was released more than a month ago on March 11 and has been very stable and reliable. We installed it on March 19 after much testing. I can’t be certain, but if your problem is resolved and you’re running WooCommerce version 2.5.5, the problem (and required fix) wasn’t in WooCommerce.

    If you do confirm that the problem was WooCommerce and you can clarify the specific problem/fix, that would be helpful and something that we’ll keep an eye out for. Thank you.

    Glad your problem is fixed and you have a happy client!

    Thanks once again deeveedee,

    My problem sadly isn’t resolved, however I am in communication with Mike Jolley who you will know is the Author of WooCommerce he is being very helpful in helping me to resolve this problem. As I have said to Mike I have gone through every avenue of process of elimination, the technical team at TMD Hosting have literally spent hours assisting me in trying to resolve this problem. Hopefully Mike will be able to resolve the problem, otherwise I will just quietly lock myself in a very dark room and throw away the key. Thanks again for all the help and support you and the other members of the forum have given freely

    A site I manage uses the Responsive theme too, and after updating to WP 4.5 this weekend, our MB MiniAudio plugin stopped showing the normal buttons on the site.

    I contacted the plugin author Matteo, and he suggested I find a[href=#scroll-top] and change it to a[href=’#scroll-top’] in the offending file. It was the file mentioned at the top of this page: themes/responsive/core/js/responsive-scripts.min.js. Added the single quotes as mentioned here and it was all better. The theme needs edited.

    PROBLEM SOLVED AT LAST

    Finally the problem as be resolved the was an incompatibility issue with the Theme Trend Responsive WooCommerce with 4.5. It is only when I eventually tract the developers of the theme down they informed me

    Thank you for being noticing us about eventually issues that our Trend theme may have. We have fixed the WordPress 4.5 version compatibility and updated the new Trend v.1.9.5 Thursday.
    Please download the theme again from themeforest download section and update your theme from your admin.

    I am grateful for the update but somewhat disappointed and frustrated, considering it is not a free theme, the the theme developers did not have the decency to notify all those who had purchased the theme. After all support and updates are part of package.

    My thanks to everyone who has endured my frustrations and rants and have taken the time to come forward and offer support. Its nice to know that there are people out there willing to help

    Sincere regards
    Steve

    This bug is now playing up and has consequences for a lot of sites.
    For many of these, I changed pretty much everything, including the footer, so in most of my cases, the referred element does not exist in the dom anyway (it’s the arrow up that makes the page scroll all the way up – which I don’t *EVER* have any use for).

    For most of my sites, it comes down to going into this file:
    wp-content / themes / responsive / core / js / responsive-scripts.min.js

    and then remove the js that looks like this:

    jQuery(document).ready(function($){$("a[href=#scroll-top]").click(function(){$("html, body").animate({scrollTop:0},"slow");return false})});

    but be very very careful as this is minimized js; removing a semicolon too much or too little will break things (further).
    so keep a backup of the contents of that file.

    We are using the Responsive theme and updated it to the most recent version just now (also using WP 4.5). I checked the responsive-scripts.min.js file and found that it was updated to

    a[href="#scroll-top"]

    However, we are still getting the error:
    Uncaught Error: Syntax error, unrecognized expression: a[href=#scroll-top]

    This is causing the mapplic plugin to not show up on our site

    Any other ideas would be appreciated!

    Ok I think we figured it out. Somehow the site wasn’t reading the current version of the file so we cleared caches and removed the query strings (https://technumero.com/internet/remove-query-strings-from-static-resources/2986) and it works now.

    @hmchristine – I had the same issue as you, and per the link you posted I added the following to my functions.php (in the child theme) and it solved the issue, thanks.

    /*** Remove Query String from Static Resources ***/
    function remove_cssjs_ver( $src ) {
     if( strpos( $src, '?ver=' ) )
     $src = remove_query_arg( 'ver', $src );
     return $src;
    }
    add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
    add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘scroll-top blocks other plugin functionality on wp 4.5’ is closed to new replies.