Error decoding JSON data: Control character error, possibly incorrectly encoded

  • OdraregPepper
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 10 months ago #9026 by OdraregPepper
Hi Jose! Hope you and your family are fine and healtly
See i have this site with SCP and recently i have to use JCH Optimize to speed up the site and get bettter rank at Google Speed Insights, the jchoptimize generates multiple files in a php files wich are stored at cache folder. When i check my SCP i see all these cache files listed as possible malware, y sent those files to Metadefender cloud and i get 0 positives of malware, check my self the files with CP Filemanager and everything looks normal, so i select the listed files and add files as save, then i get the error at font and backend  "0 Error decoding JSON data: Control character error, possibly incorrectly encoded", all my teamworkers began to scream because they cant access to the site and clients cant visit our catalog... so after many tries to disable plugins "extensions" from phpmyadmin i see that the error was with SCP. I have to disable in order to everyone can work, but i do not like at all to have my site without the strenght of SCP. If i try to enable back i get the error again, i was searching maybe emty cache or something, Can you please point me in the direction to solve this?
Thanks in advance for your support 

P.D.
Es chistoso tener que escribir en inglés para poder comunicarse con otro hispanoparlante, pero es para que el foro sea mas global!
Saludos Jose
 

Please Log in or Create an account to join the conversation.

  • OdraregPepper
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 10 months ago #9027 by OdraregPepper
Hi again Jose
I found that the problen is with the format of "params" field of Securitycheck Pro on xxx_extensions table, to be more precise at the close of the line, maybe it was unable to store the data in to the field, i have to add the closing characters
"} at the end and now it works fine
Thanks!

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #9028 by Jose
Hola Gerardo!

P.D.Es chistoso tener que escribir en inglés para poder comunicarse con otro hispanoparlante, pero es para que el foro sea mas global!

Nada, vamos a hablar en español ;)

El problema es que se han añadido tantas excepciones que se ha superado el límite de caracteres al almacenarlas en la BBDD. Como la configuración se almacena en formato json, este formato se había roto y tú lo has solucionado añadiendo el carácter } al final.

Dos cosas para que esto no vuelva a pasar:
- La primera es que esto ha pasado porque hay un error en la versión actual de SCP (3.4.3) que no tiene en cuenta las excepciones. Así, es posible que hayas visto muchos archivos en los escaneos que no deberían aparecer, como por ejemplo archivos de la caché. Esto será corregido en la versión 3.4.4 que publicaré mañana.

- La segunda es que para evitar tener que añadir los archivos que pueden cambiar, como es el caso de los archivos de jch_optimize, en lugar de añadir los archivos notificados tienes que añadir el directorio donde se encuentran. Así, todo el directorio será excluido y no tendrás que añadir los archivos uno por uno. Para que esto suceda tienes que verificar que el parámetro "Recursive folder exceptions" de "Global configuration -> Tuning" está habilitado.

Un saludo,
Jose
  

Please Log in or Create an account to join the conversation.

  • OdraregPepper
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 10 months ago #9029 by OdraregPepper
Muchas gracias por tu atenta respuesta! Espero con mucho gusto la nueva versión y agradezco también tu recomendación referente a las carpetas, es una muy buena solución.
Un abrazo!

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #9030 by Jose
Gracias a ti! :)

Un saludo,
Jose

Please Log in or Create an account to join the conversation.

  • OdraregPepper
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 4 months ago #9244 by OdraregPepper
Hola Jose, espero que tu y tu familia se encuentren muy bien 
Fijate que actualicé varias extensiones además del core de joomla y ahora tengo 2074 archivos en el listado de modificados, sé que son seguros por que yo hice las actualizaciones y por que ninguno me aparece en la lista de malware, pero si los agrego como excepción estoy seguro que me va a mandar el error del JSON, ¿Sabes que debo hacer en este caso? No me gustaría tenerlos por siempre en la lista de modificados por que son un montonal y luego va a ser dificil ubicar los nuevos archivos. 
Quedo atento a tu respuesta, de antemano muchas gracias 
Saludos cordiales 

Please Log in or Create an account to join the conversation.

Time to create page: 0.187 seconds