statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.7k stars 508 forks source link

When revisions are enabled, after saving and publishing, saving again disables publishing until a refresh is made #10723

Closed mattmultiplied closed 1 day ago

mattmultiplied commented 2 weeks ago

Bug description

After saving and publishing an entry with revisions enabled, saving again disables publishing until a refresh is made.

Please what the video for the bug:

https://www.loom.com/share/506dc00670d84a74b37682cf06b87eac?sid=658ffa02-ef67-42d0-8044-d6be94a6eac3

How to reproduce

With revision enabled.

Logs

No response

Environment

Environment
Application Name: Wilson Power Solutions
Laravel Version: 11.21.0
PHP Version: 8.3.7
Composer Version: 2.7.7
Environment: local
Debug Mode: OFF
URL: wilson-power-solutions.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: pusher
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 3
Sites: 3 (Wilson Power Solutions, Wilson Power Solutions India, WATTS Rental Dubai)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.23.0 PRO

Statamic Addons
alt-design/alt-redirect: 1.3.2
jacksleight/statamic-bard-texstyle: 3.3.0
statamic/seo-pro: 6.0.3

Installation

Fresh statamic/statamic site via CLI

Additional details

No fancy set-ups, just standard Statamic.

duncanmcclean commented 2 weeks ago

Do you have any event listeners at all or any custom JavaScript in the Control Panel?

I can't seem to reproduce this issue on my sandbox site:

https://github.com/user-attachments/assets/9b9d311c-3885-4ea0-968c-772bca5334b1

mattmultiplied commented 2 weeks ago

Do you have any event listeners at all or any custom JavaScript in the Control Panel?

I can't seem to reproduce this issue on my sandbox site:

CleanShot.2024-08-29.at.11.54.26.mp4

No custom scripts on the Control Panel, just a clean install of Statamic with multisite enabled - We also have this related issue occurring too which happens across all our websites with revisions enabled with multisite.

Both of these issues only happen when multisite is enabled, so it could potentially be multisite related.

https://www.loom.com/share/ea1d3df19f5547b4a6df3e547b2c544f?sid=2d5b12cc-9bef-4023-9e44-feca197ba90d

duncanmcclean commented 2 weeks ago

We also have this related issue occurring too which happens across all our websites with revisions enabled with multisite.

Can you open a separate issue for the Parent field issue?

Both of these issues only happen when multisite is enabled, so it could potentially be multisite related.

I've just enabled multi-site and tried again, but it still seems to be working for me on the latest version of Statamic. 🤔

Are you able to reproduce this issue on a fresh Statamic site?

mattmultiplied commented 1 day ago

Updating to the latest version of Statamic fixed this, no idea why - Was potentially due to a server caching issue or something causing it to do this.