Blocks not working in panel on the server

When I edit blocks in the panel, all content in the blocks disappear after trying to save. It works fine on localhost. The blocks content uploaded directed from what’s edited locally shows up fine, but as soon as I edit anything in the page with blocks and save (on the server), even if it’s not the blocks field, the content disappears. All other fields work properly.

I’ve always used apache in the past but the server I’m using this time is using nginx. I did the nginx config, and the www/site folder owner is www-data. I’m at a lost :frowning:

To clarify: Does all content disappear or just the content of the blocks field?

Also, does the content just disappear from the Panel, or also from the content file?

Additionally, what is your Kirby version?

only the content of the blocks field would disappear. The content also disappears from the content file.
Kirby version is 3.8.1.1

@yuekaim Could you solve the problem? We have the same issue for one of our sites. Everything works fine locally, but on the server the block text fields are empty. It’s really strange, because it worked before …

Pretty sure, it’s a server config. In our case it’s Apache, not nginx.

I found the issue. It was a missing php extension php-simplexml.

I faced a similar issue today where the panel displayed empty text blocks. I have deployed Kirby on a Digital Ocean LAMP droplet, and the installed PHP was missing some key extensions. Mainly php-mbstring, php-xml and php-curl.

@texnixe Can the docs list down these extension dependencies?

It’s all there: Requirements | Kirby CMS
This page is linked from here: Quickstart | Kirby CMS

@texnixe My bad! I went through the quickstart guide – looked at the PHP version tab, read the required PHP version and moved on. I missed the recommended extensions line in the same section.