• Hello guys,

    First of all, I want to thank you for your awesome plugin! I love it.

    Few days ago when I was testing my site on different browsers (Chrome, Firefox, Opera, Safari) I noticed that on Safari the Slider Revolution isn’t showing up properly. I researched on internet about this issue and find out that Autoptimize is causing this. (by de-activating it) I tried to exclude some JS files but it didn’t helped me and I suppose this would be particular for each error. Also I searched for assets.zip in Slider Revolution plugin files but it is already unzipped.

    Here’s the error on the website:
    “Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include. This includes make eliminates the revolution slider libraries, and make it not work.

    To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.
    2. Find the double jquery.js include and remove it.”

    I can’t find any related-error in developer console.”

    Here’s my build:
    WordPress 4.9.9
    Slider Revolution 5.4.8
    Autoptimize 2.4.4

    Any help would be greatly appreciated. Thanks in advance!

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    so what JS errors appear on the browser console when this happens?

    (also have a look at this thread, also cocerning revslider)

    Thread Starter alexinzo

    (@alexinzo)

    Thanks for your fast reply!

    I have only one error which says:
    “SyntaxError: Expected an identifier but found “media_children’ instead”. It is something located in wp-content/cache/autoptimize/js

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, so the solution (or at least the next step) is in finding which or your original JS has media_children in the source and then excluding that from optimization. let me know how that works out! ??

    Thread Starter alexinzo

    (@alexinzo)

    I couldn’t find anything more explicit for that except the following code:
    “jQuery(function($){$(document).ready(function(){$(‘#activity-stream’).on(‘click’,’.acomment-delete’,function(){let media_children=$(this).closest(‘li’).find(‘div.acomment-content ul.rtmedia-list’);if(media_children.length>0){media_children.remove();}});});var o_is_album,o_is_edit_allowed;if(typeof(is_album)==’undefined’){o_is_album=new Array(”);}else{o_is_album=is_album;}
    if(typeof(is_edit_allowed)==’undefined’){o_is_edit_allowed=new Array(”);}else{o_is_edit_allowed=is_edit_allowed;}”

    Even so I don’t understand what the rtmedia (buddypress-media) plugin has to do with the slider. I guess it has no connection but I can’t get any other errors in the console when loading the page.

    Any idea?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Even so I don’t understand what the rtmedia (buddypress-media) plugin has to do with the slider. I guess it has no connection but I can’t get any other errors in the console when loading the page.

    well, it does not have to have to do anything with revslider really; when JS gets aggregated and some part in it breaks then -is the problem is severe enough- the execution of what follows is stopped.

    so indeed try excluding the JS-file that has that code and see what happens (also on the browser console)?

    Thread Starter alexinzo

    (@alexinzo)

    Just tried to exclude by filling the following: “rtMedia.js, plugins/buddypress-media/app/assets/js/rtMedia.js”

    Still the same error.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmmm … can you share your URL so I can have a peek? ??

    Thread Starter alexinzo

    (@alexinzo)

    Hello,

    Here you have it along with the error.

    https://imgur.com/a/J2v6ECU

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    plugins/buddypress-media/app/assets/js/rtMedia.backbone.js indeed is the only JS-file that has media_childern in the code. Now on your screenshot the error is still coming from an autoptimized file, so that implies the JS was not excluded when you took the screenshot. can you check the exclusions and purge any page cache you might have?

    Thread Starter alexinzo

    (@alexinzo)

    Hello,

    It worked out but unfortunatelly it broked something in the media gallery.

    How can I solve this?

    View post on imgur.com

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, what JS error do you see on the console? ??

    Thread Starter alexinzo

    (@alexinzo)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, do you have a gallery that is NOT in members so I can look at the JS (specifically what JS has check_conditions in it)?

    Thread Starter alexinzo

    (@alexinzo)

    Is this code useful for identifying the problem?

    View post on imgur.com

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, use that info (a “defining” string from that line) to search for the original JS when looking at the unoptimized page (adding ?ao_noptimize=1 to the URL) and when you find that file, add it to the JS exclusion list and you’re all set ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Autoptimize crashes Slider Revolution’ is closed to new replies.