Okay
  Public Ticket #981670
Conflict with another plugin
Closed

Comments

  •  2
    Willie255 started the conversation

    I have LayerSlider installed with pages using it, but recently purchased another plugin called FWD Simple 3D Coverflow but cannot see the carousel or flow since I am getting the following error pertaining LayerSlider: 

    Uncaught TypeError: Cannot read property 'length' of undefined

    but when I deactivate the Layerslider everything works fine, and able to see the carousel 

    Can you help, since I want to be able to keep both products in my website.

    Thanks.

  • [deleted] replied

    Hey Willie255,

    Could you please show us your site or a test page where we can check the conflict issue and look into it further ?

  •   Willie255 replied privately
  •  2
    Willie255 replied

    Any feedback, since had left the site open for you to check, but will need to temporary close it and deactivate LayerSlider to be able to finish working on the site?

    Thanks.

  •  18
    George replied

    Hello,

    Please update LayerSlider to 6.1.0 - the new version should solve this issue.
    6.1.0 is available with Auto Update right now, we uploaded it also to CodeCanyon but it is not yet approved by Envato.

    Best Regards,
    George | Kreatura Dev Team

  •  2
    Willie255 replied

    I currently have LayerSlider 6.1.0 and the issue is with that version.

  •  18
    George replied

    Could you, please enable it to see the issue? As I can see, you are currently using Slider Revolution on your site.

    Best Regards,
    George | Kreatura Dev Team

  •  2
    Willie255 replied

    I had it enabled for over a day, and deactivated to be able to continue building de site. I just activated it, and yesI do also use Slider Revolution for the main slider of the home page.

  •  18
    George replied

    This is an unfortunate issue with the greensock library (all three plugins are using it). ThemePunch and we have taken the necessary steps to resolve this conflict, but the 3D Carousel plugin is using a 3 years old release of greensock library which can cause an issue like this. The author should update greensock in that plugin as we recommended him weeks ago.

    Best Regards,
    George | Kreatura Dev Team

  •  2
    Willie255 replied

    So now I purchased all of them, and find myself with the issue, and when I deactivate yours, everything else works fine. For the 3D Carousel to update the greensock it will take probably too long, if it is they decide to do so. And all this after I had created pages and sliders, in the site, and now need to decide who I deactivate or uninstalled, and spent the money already.

  •  2
    Willie255 replied

    Also, why does the 3D Corousel work fine when I have Themepunch activated and not with LayerSlider, if the greensock library is apparently the issue?

  •  18
    George replied

    The order in which WordPress loads the plugin files can be the reason. You can change the loading priority of LayerSlider script files under the Advanced Settings. Please try a value above 10.

    Best Regards,
    George | Kreatura Dev Team

  •  18
    George replied

    Another important note: also make sure that the "Load scripts in the footer" option is enabled.

    Best Regards,
    George | Kreatura Dev Team

  •  2
    Willie255 replied

    Can you share with me a screenshot of exactly this is done?

    The loading priority is in the plugins section or directly in the LayerSlider setting? And where do I perform the  "Load scripts in the footer" ?

  •  18
    George replied

    Please see the attached screenshot.


    Best Regards,
    George | Kreatura Dev Team

  •  2
    Willie255 replied

    I think I found where, is it here (in the attachment?)

  •  2
    Willie255 replied

    If I use a script priority of over 3 neither page with the layerslider or carousel runs at all? The same if I enable the "Load scripts in the footer", the slider does not load at all?


  •  18
    George replied

    Unfortunately the perfect solution would be if the author of 3D Carousel would fix the outdated greensock library in his plugin. Our options can only help in certain scenarios, but the source of the problem comes from another plugin which we cannot fix or control.

    Best Regards,
    George | Kreatura Dev Team

  •  2
    Willie255 replied

    I found someone who had similar issue as I do with LayerSlider and he modified the script, is this something I can do as well to get both plugin to live together?

    The actual problem is not in the Avada Theme but in Layerslider 6, a recently launched version. Greensock.js 1.19 is used by Layerslider and the 3D Caroussel simply fails to load when greensock.js is loaded also.

    I have tried to adjust Layerslider to conditional load, place code in the footer etc but somehow failed. So I made a change to the LayerSlider's scripts.php which fixes the issue for now.

    Original code LayerSlider scripts.php

    // Include in the footer? 

    $condsc = get_option('ls_conditional_script_loading', false) ? true : false;

    $footer = get_option('ls_include_at_footer', false) ? true : false;


    Changed LayerSlider scripts.php to:

    // Include in the footer?

    $condsc = get_option('ls_conditional_script_loading', false) ? true : false;

    // MLV20161119 Added code for LayerSlider and 3D Caroussel

    if (is_page('attorneys')) {

      $condsc = true;

    }

    $footer = get_option('ls_include_at_footer', false) ? true : false;

  •  24
    John replied

    Hi Willie,

    This code excludes the LayerSlider scripts from certain pages. The same can be achieved without any coding, just enable the Conditional script loading option in the Advanced Settings section. Unfortunately, it is not a solution, you will not be able to use the plugins together. 

    The underlying issue is caused by the old GreenSock library in the 3D Carousel plugin. It is more than 3 years old. The GreenSock team was aware of issues like this, and they introduced a finalized API in a later version. No one can solve this issue as long as that old version is updated to a more recent one.

    The issue might surface in a variety of ways, but we're confident what's the problem here. We've had the pleasure to talk with the 3D Carousel plugin author before, and he is not cooperating with us in any way. We've debugged this issue, dug into the source code of his plugin, even contacted the GreenSock team, but he refuses to even try out our proposed solution, which would only take a few minutes. We did everything on our part, but we cannot fix or workaround an issue that is in another product.

    If you need proof or reference, here are a few relevant GreenSock support forum thread:

    http://greensock.com/forums/topic/9910-order-loading-tweenmax-and-tweenlite-error/
    http://greensock.com/forums/topic/9881-avoid-multiple-loaded-tweenmax-and-tweenlite/
    http://greensock.com/forums/topic/7074-jquery-wrapper-animate-stop/#entry26398
    http://greensock.com/forums/topic/7753-two-versions-of-tweenmax-on-same-page/
    http://greensock.com/forums/topic/15485-using-multiple-instances-of-greensock-on-the-same-page/

    As you can see, this issue is not limited to our product. It affects everyone else in given circumstances.

    Best Regards,
    John | Kreatura Dev Team