Jump to content
Darius1990

JS files have unreadable TOKEN and broke Prestashop

Recommended Posts

Hi,

never before had so strange behavior. My website working online fine. But when I pull all file with FileZilla and try to work locally all JS files have strange TOKEN. It seems it is not UTF-8... If I add new JS files it start working perfectly. How can i regenerate TOKEN? Any help appreciated.

Already tired:

- Cache clear

- changing from PHP 7.0 to 7.1

- turning off "increased security mode" in Preferences / General

- delete /var/cache

Share this post


Link to post
Share on other sites

What do you mean by strange token? Getting the "unexpected token..." error after editing any files? If so, change your editor, try a simple text file.

  • Like 1

Share this post


Link to post
Share on other sites
5 minutes ago, NemoPS said:

What do you mean by strange token? Getting the "unexpected token..." error after editing any files? If so, change your editor, try a simple text file.

image.png.eb6c59d70a310a6ef531ba056a99eef6.png

image.png.9700879b2575a0bf6e68362b1f5a9659.png

Second screenshoot of /*! jQuery UI - v1.10.3. If I add brand new jquery and another files it's starting working. But there is few problems. First too much to change and why in first place it happen?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More