Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #426688

    In the layerslider that comes with Enfold, I can create a new layerslider with no layers, adjust the width/height/display settings, and set a background image for slide 1. It works as intended and displays on the site without any problems (just shows the background and my settings).

    I can re-open it and hit the save button over and over, rename it, no issues.

    But as soon as I add a layer to the slide, when I hit save all of the settings are lost and the slider doesn’t display on the page anymore. Even the NAME reverts to “unnamed”. From that point, nothing I do will change the settings on that slider and the only option is to delete it.

    Doesn’t matter whether it’s a text or image layer.

    It’s the latest version of the theme. I’ve run the Enfold theme on nearly a dozen sites and never had this issue before, so what I’m trying to figure out is what’s different about THIS server. The rest of the theme seems to work fine. I even tried making the sliders on a dev box where it was working fine and then importing them over, same problem. They won’t display on the pages, and when I try to edit there are no settings visible.

    I get a script error when saving that says:

    Uncaught TypeError: Cannot read property ‘indexOf’ of undefined admin.js?ver=5.3.2:656
    LayerSlider.generatePreview admin.js?ver=5.3.2:656
    (anonymous function) admin.js?ver=5.3.2:640

    What would cause this problem?

    • This topic was modified 9 years, 7 months ago by ronrule.
    #426742

    Also, I should point out that the error doesn’t happen every time. Sometimes there is no script error at all, but the rest is the same (settings are lost, no layers, background disappears, name reverts back to Unnamed)

    #426954

    Hey!

    Could you try to deactivate all plugins to see if one of them is causing a conflict please?

    Best regards,
    Rikard

    #427604

    All plugins were deactivated and removed.

    This is an exact copy from a dev server to live, worked fine on the dev server. No changes to scripts (the only change was the domain name setting, from the dev domain to the live one).

    The only difference between the servers is that it’s php 5.4.x on the dev and 5.3.3 on the live, but updating the live server to a newer version of PHP isn’t something I will be able to do. Could the PHP version be the problem?

    If so, is there a way to run an older version of the layerslider while keeping the current version of Enfold?

    #427689

    Well, I figured this out … turns out the only difference wasn’t the PHP version, it was also SQL. The production server runs postgresql instead of mySQL, and was escaping using double quotes (thus making all of the info submitted blank).

    All of the WordPress posts and pages seemed to update just fine, but for some reason this didn’t. Anyway, I changed the escape method and it works fine now.

    #428089

    Hi!

    Great, glad you got it solved and thanks for sharing the solution.

    Regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.