Cockpit-HQ / Cockpit

Cockpit Core - Content Platform
https://getcockpit.com
Other
388 stars 47 forks source link

[Bug] Adding class to Section-layout-component doesn't save #190

Closed DanielWahl closed 6 months ago

DanielWahl commented 6 months ago

Version: Tested on Cockpit Pro 2.8.4 (fresh install) and 2.6.1 with mongolite, tested on different websites and installations. System: Ubuntu 20, PHP 8.2.19, Node.js v18

There seems to be a bug with adding a class to a section layout component on a page.

When creating a new section on a page without a class, the class-attribute is sent as null, which works.

Bildschirmfoto 2024-05-22 um 17 57 10

But after adding a class (and also after removing the text after once adding one -> empty string instead of null), the request resolves in a /pages/save 403 (Forbidden) with Uncaught (in promise) TypeError: Cannot read properties of null (reading 'error').

aheinze commented 6 months ago

Hi 👋 Can't verify it. If you go to Settings > Logs > Errors, do you see a related error there? If yes, can you post here the details?

Thanks!

DanielWahl commented 6 months ago

It was somehow resolved and it works now. Maybe it was a server problem and an update fixed it, but unsure.

There were no errors-logs for not saving.

Thanks for your quick response.