Problem saving in fields in panel

Every time I save fields in the panel it rollback to the previous content.

I have a multi languages site (fr / en). In my content folder i have something like that


I tried to look for lost .txt files in the content folder but did not find any.

On my localhost the panel was saving content, but when i went live the panel stopped saving fields.

Does someone has the same problematic ? :raised_hand_with_fingers_splayed:

Have you checked folder/file permissions and ownership? Any messages in the console?

I have checked the folders and files permission. Folders is set to 755 and all files (en.txt, fr.txt) are set to 644. Is this right ?
If that help, all pages in the content folder are not saving. Not just only the 02_about.

I have also look into the cpanel log and no errors occur.

The question remains who owns the files? Usually is should be www-data.

The permissions are OK, but only if file ownership is.

Have you made sure you don’t have any stray text files in your folder, but only text files that belong either to a translation or a file?

I’m a bit rookie with that, No sure how to check who owns the files !

Also I have copy paste the content folder to overwrite the localhost and it work. I can save in localhost.

What you can do as a first step is check if you can save on the remote, if you set folders to 777 and files to 666. If that works, then it’s probably an ownership issue.

Do you have access to the command line on the server via ssh?

Yes i have access to to the command line on the server via ssh.

Then if you do a

ls -la 

in the project root, you should get to see the user and group and rights…

This is what I get. Really not sure to fully understand !
Maybe should I ask a cpanel tech guy ?

total 36
drwxr-x---.  8 embarque nobody   4096 Mar 11 15:40 .
drwx--x--x. 15 embarque embarque 4096 Mar 20 10:16 ..
-rw-r--r--.  1 embarque embarque 3970 Mar 20 10:03 .htaccess
drwxr-xr-x.  3 embarque embarque   27 Jun  5  2018 .well-known
drwxr-xr-x.  5 embarque embarque   41 Mar 12 08:28 assets
drwxr-xr-x. 11 embarque embarque 4096 Mar 19 10:14 content
-rw-r--r--.  1 embarque embarque   53 Nov 16 15:24 google01fc23315f2a9002.html
-rw-r--r--.  1 embarque embarque   78 Mar 11 15:40 index.php
drwxr-xr-x.  9 embarque embarque 4096 Mar 11 15:41 kirby
drwxr-xr-x.  6 embarque embarque   53 Mar 12 09:04 media
-rw-r--r--.  1 embarque embarque  675 Mar 11 15:40 robots.txt
drwxr-xr-x. 12 embarque embarque 4096 Mar 11 15:40 site


Are thumbs generated in the media folder? Wondering if that is only an issue with saving content via the Panel or whether or not you can’t write to any folder.

I have delete everything in the media folder. All files have been recreate. So I assume that we can write to any folder.

Ok, then it must be something else.

Is the mb_string extension enabled?

It look like the mbstring extension enabled.

But is it also enabled? Check with phpinfo()

It look ok.

I’m running out of ideas, I’m afraid.

One last try: Have you checked if the content does indeed not get stored in the content files and it’s just not reflected in the Panel?

Have you also checked the browser console for any errors?

Yes, there is a error in the console every time I try to save on the panel


That sounds as if PATCH requests are not possible on the server. I’d contact the hosting service’s support.

I asked the server and yes they told me that the patch requests was blocked by the mod_security rule.
We changed it and it now work like a charm.

Thanks for your great support. :star_struck: