I've installed Backdrop on shared hosting through Softaculous - latest version of everything (apache php8.5.4) - and I'm having some issues with posting html content in text fields on all kinds of content, including blocks.

Basically the form submits, processes and then just resets with no error thrown and all the updated content not accepted.

If i try to change the text format to accept more html code, or even adding more buttons to the Basic text format (for example tables), once again nothing happens. No errors and no update.

I've tried a separate clean install from softaculous and the error persists.

I'm at a loss, so can anyone help, please?

Comments

Just confirmed that this issue is happening when I install backdrop via ftp.

It's not possible for me to add or edit and text formats, even if ckeditor is disabled. This is a clean install of backdrop.

Is this an issue with the hosting environment, perhaps?

It does sound likely related to the hosting environment. Have they been any help?

Anything in the watchdog/database log or server error logs?

Can you post the details from admin/reports/debug here?

If it's a cPanel server, I have seen strange hard-to-pinpoint issues when ModSecurity rules end up blocking admin-related pages.

Could you please post clear, step by step instructions to reproduce the problem? Your first message refers to HTML content, and your second to text formats. Please add details to reproduce each problem.

Sorry, it did seem confusing when I read it back...

So if I add some html to a text field, for example in a page or a block, whatever the text format of the field may be (raw html or basic) and submit, then the page behaves as though it's processing but it simply reloads the form. None of the fields that have been filled in on the form are accepted. There's no error message and nothing in the logs.

This is replicated in admin screens as well, for example I'm trying to paste html into a box for the Realfavicon generator module, but again it simply goes through the motions of submitting but ultimately reloads the blank form. If I don't paste the html into the box and change one of the other options, the form processes.

Also if I try to change the options in text formats, I'm not able to do anything as, once again, they appear to be processing but simply reload the form back to what the config options were originally. I'm also unable to create new text formats for the same reason.

I initially discovered this when trying to paste some html into a custom block. Thinking it was because the raw html text format couldn't accept the html tags I was using I have been trying to change the settings in the raw html text format to accept all html tags, but it's impossible. The little config buttons start spinning and then do nothing.

As a workaround, I've had to paste escaped html into the json files for custom blocks, and have tried, unsuccessfully, to paste into the database for page content. Whist the database holds the html, it won't display on the front end, because, I guess, Backdrop is sanitising it before displaying.

I've never seen this before with Drupal or Backdrop. It's very odd, for sure!

Hi! The description is still very vague and lacks step-by-step instructions on how to reproduce. It doesn't include the version of Backdrop either, nor a list of contrib modules you are using.

I've tried to reproduce from your description by running a vanilla installation of Backdrop 1.34.0-preview running on Apache (locally) and PHP 8.5. Everything works fine for me.  I tried creating a Page and pasting HTML content in the Body, creating a custom block, and modifying options in the Basic text format. Everything is saving fine.

There must be another reason for this strange behavior - but Backdrop core seems not to be the problem.