statamic / cms

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

Live Preview panel not appearing #8128

Closed theutz closed 1 year ago

theutz commented 1 year ago

Bug description

The whole panel with the Live Preview buttons don't seem to be appearing.

CleanShot 2023-05-12 at 14 00 08@2x

Furthermore, it seems there's a <style> tag in the header rendering the following CSS rule:

<style>.publish-tab-actions{display:none}</style>

If I deactivate the rule, then I can, in fact, use the Live Preview just fine.

How to reproduce

I'm using the Collaboration plugin and I have revisions enabled. Not sure if those are factors in this, but they seem somewhat related to how that panel is rendered.

Logs

No response

Environment

Environment
Application Name: Delegator
Laravel Version: 9.52.4
PHP Version: 8.2.6
Composer Version: 2.5.5
Environment: local
Debug Mode: ENABLED
URL: delegator.test
Maintenance Mode: OFF

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

Drivers
Broadcasting: pusher
Cache: redis
Database: mysql
Logs: stack / single, flare
Mail: smtp
Queue: redis
Session: redis

Statamic
Addons: 6
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.1.0 PRO

Statamic Addons
aerni/font-awesome: dev-main
rias/statamic-redirect: 3.0.0
statamic/collaboration: 0.6.0
statamic/seo-pro: 5.0.1
stillat/antlers-components: 2.0.0
visuellverstehen/statamic-classify: 2.6.1

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

runtime (new)

Additional details

No response

jasonvarga commented 1 year ago

This is caused by the "Redirect" addon. Please open an issue on their repo.

https://github.com/riasvdv/statamic-redirect

You can see that style was added in the "Add support for Statamic v4" commit. I'm not sure of the reason. https://github.com/riasvdv/statamic-redirect/commit/e2c9787d5be6ed871a150ee3be281e78a1d4ad11#diff-1177986ccc12eb2db151ee46c6bf95739d7961b9427139dfb245702ca32e77c1R12-R17

theutz commented 1 year ago

Thanks for figuring that out, @jasonvarga !