- Posts: 51
- Thank you received: 1
Error decoding JSON data: Control character error, possibly incorrectly encoded
- OdraregPepper
- Topic Author
- Offline
- Senior Member
-
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
-
- Posts: 51
- Thank you received: 1
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.
- Jose
-
- Offline
- Administrator
-
- Posts: 4857
- Thank you received: 366
Nada, vamos a hablar en españolP.D.Es chistoso tener que escribir en inglés para poder comunicarse con otro hispanoparlante, pero es para que el foro sea mas global!

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
-
- Posts: 51
- Thank you received: 1
Un abrazo!
Please Log in or Create an account to join the conversation.
- Jose
-
- Offline
- Administrator
-
- Posts: 4857
- Thank you received: 366

Un saludo,
Jose
Please Log in or Create an account to join the conversation.
- OdraregPepper
- Topic Author
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 1
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.
This site is not affiliated with or endorsed by the Joomla! Project. It is not supported or warranted by the Joomla! Project or Open Source Matters. The Joomla! logo is used under a limited license granted by Open Source Matters, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons. This information is retained only until we check you're not trying to hack our website.