• Resolved lukebar

    (@lukebar)


    The last two updates we have done for metaslider have broken the Admin area.

    It seems that there are several css and js files not found.

    For instance, the plugin is expecting
    /plugins/ml-slider/admin/assets/dist/js/admin-3.17.4.js
    but the file is actually named
    /plugins/ml-slider/admin/assets/dist/js/admin-3-17-4.js

    When I rename the files to use . instead of – in the version numbers, everything works fine. But I’d rather not have to do this every time we update. I can’t find anyone else having the same problem, so I’m at a loss. Any ideas?

    As I said, I can get the admin area working again just by renaming the files. But I’m perplexed why they are misnamed in the first place.

    – Luke Bartolomeo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @lukebar

    MetaSlider uses sanitize_title to format the version numbers. Is something filtering that function to use . instead of -?

    I can look into using a different function there.

    Thread Starter lukebar

    (@lukebar)

    That is exactly the issue. We were using sanitize_title to do exactly that for something completely unrelated. If you can use a different function in the future, great. Until then, we’ll work around the issue.

    Thanks! – Luke

    @lukebar In your filter, limit the context to avoid the clash. Post your code here if you need a hand.

    Hi,

    I removed this functionality in the latest version so you should be safe to update without worry. Let me know if any new issues arise!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Admin area broken – css and js files not found’ is closed to new replies.