Okay
  Public Ticket #1196181
Editor not working
Closed

Comments

  • serdar_a started the conversation

    I can't say when it happened, but as I tried to edit my slides, the edit page didn't load properly. In the java console I get following message:

    Uncaught SyntaxError: Unexpected token <
    ls-admin-slider-builder.js:2064 Uncaught TypeError: Cannot read property '0' of undefined
        at Object.generatePreview (ls-admin-slider-builder.js:2064)
        at Object.selectSlide (ls-admin-slider-builder.js:763)
        at HTMLDocument.<anonymous>
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.K (jquery.js:2)
    

    I'm using 6.4.0 and wordpress 4.7.5 by the way.

  • [deleted] replied

    Hey serdar_a,

    There is no issue like this present in the latest release of our plugin (6.4.), so unfortunately it is most likely a conflict problem on your installation or a server configuration issue.
    To start troubleshooting please try to temporary disable other plugins and switch to a default theme to see if that solves the issue.
    Please also check the LayerSlider System Status, located on the WP sidebar for any related error messages that could provide more information.

  • serdar_a replied

    Thanks for your anwer.

    I switched plugins off and switched to another theme and tried it again. Nothing changes. I've added a screenshotof the system status and the editor.

  • [deleted] replied

    Could you please set up a temporary WP login for us so we can investigate it from the back-end further ?

    Don't forget to set the message to private so others can't see the credentials.

  •   serdar_a replied privately
  •  69
    John replied

    Dear Serdar, 

    I'm John from the Kreatura Dev Team.

    I've logged in to your site and was able to reproduce the issue. It seems like an unusual character encoding/escaping problem. The dynamic layers feature in LayerSlider automatically retrieves the latest posts you've made and it appears that a special character is being used in one of your posts. Although this souldn't be a problem, for some reason it triggers a JavaScript error. I've tried to reproduce this issue on our end as well without any luck. 

    This really appers to be an edge case and I will continue trying to find the source of the problem. In the meantime, I've temporarily disabled the dynamic layers feature and the editor is now loading fine. 

    Thank you for your understanding! 

    Best Regards,
    John | Kreatura Dev Team

  • serdar_a replied

    Thank you John.

    Now after the update the same issue appears again. Is it possible that you tell me how to disable the dynamic layers feature so I don't have to bother you again with this problem?

    Regards,

    Serdar

  •  69
    John replied

    Dear Serdar,

    Unfortunately, it involves editing the source code of the plugin, so there is no easy way to disable that feature. However, we're planning to release a new update in the next few days. We already have a more appropriate solution for this issue in our development version, so it won't be a problem in the future.

    I've tried to log in to your site in the meantime to apply a temporary fix. Unfortunately, your site appears to be using caches. My changes did not show up at all, but it should be working fine once the cache is updated.

    Best Regards,
    John | Kreatura Dev Team