Saltar navegación

[Resuelto] Issue editing the existing custom code snippets

This support ticket is created hace 4 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Este tema contiene 0 respuesta, tiene 1 mensaje.

Última actualización por simonM-5 hace 4 años, 7 meses.

Asistido por: Waqar.

Autor
Mensajes
#1805755

Hi Support

Our Custom Code Snippet sections is giving errors when trying to save items.

If I create a new item, it gets created OK.

I cannot update or delete any items. I get the error message:
"There was an error when updating snippets."

I saw this post
https://toolset.com/forums/topic/cannot-save-custom-code-snippet/ which describes something similar, however the error message is different.

Also checked that the following are not present in the wp-config.php file
define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_FILE_MODS', true );

Also checked that the folder and contents have read and write permissions (see screenshot).

I can workaround this for the moment by moving files back and forth with FTP, but that's not ideal and is prone to errors. I would like to get this working again from the GUI.

Also, if I create a new snippet, eg test.php and then delete it via the FTP server, it is no longer visible in the GUI, but if I then try to re-create test.php in the GUI, it is somehow remembering that I had such a file before - where is this information being stored in the database?

Thanks and regards
Simon