Help me figure it out ... I didn’t change anything in the code, but suddenly, when you add a picture to the product, this error crashes. By the way, the same error crashes when entering the site settings. syntaxerror: unexpected token <in json at position 0 enter image description here

  • json is invalid because starts on <!--... --... - gil9red
  • Do not tell me how to fix it and where to find it? I am very far from js - Ivan Valchuk
  • Well, I especially don’t know what you have there :) look through the browser’s inspector request, make sure that <!--... came from the server, then on the server you need to find the place from where it was sent. You can also trim a string with <!--... in js, then json should be valid, but it's just a crutch - gil9red
  • prntscr.com/k3bhny prntscr.com/k3bi0a This is what the inspector gives me, tell me how I can find the place on the server where it was sent from? - Ivan Valchuk 1:31 pm
  • I understand this piece of code is responsible for adding images to goods prntscr.com/k3bki8 - Ivan Valchuk

1 answer 1

I figured it out .... I had this line in the admin file at the end of the file -