craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 637 forks source link

[5.x]: Saving not working, redirect to /admin #16179

Open fvwanja opened 4 days ago

fvwanja commented 4 days ago

What happened?

Description

Sometimes when I try to save an entry (with ⌘ + S), I am instead redirected to the front page (/admin). My changes were not saved.

Steps to reproduce

  1. It is difficult to reproduce, it happens sometimes on various devices for various people. Maybe it is, because they are logged in, we deploy an update and then the logged in state is corrupted (that is what the log files and my solution indicate (see below)).

Expected behavior

I would expect my data to be saved upon hitting ⌘ + S. I also would not expect to be redirected, instead be on the same page that I edit.

Actual behavior

I am redirected to the front page. No data was saved.

Solution

I can clear my browser data (Cookies, Session, etc.) or use an incognito tab (and login again).

web-2024-11-21.log

Craft CMS version

5.5.2

PHP version

8.3.12

Operating system and version

Linux 6.5.0-18-generic

Database type and version

MariaDB 10.6.18

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

brandonkelly commented 3 days ago

Strange. Can you work on coming up with steps to reproduce? Maybe keep an eye on your JavaScript console and see if any JS errors are getting logged that could be interfering with the save process.