We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Some strange stuff going on with Live Preview

Development and Programming

Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

Some strange stuff going on with Live Preview on a site, brought to my attention by the client. Any attempt on any channel to use Preview in the CP results in the white screen with error message: The following errors were encountered

  • You are not allowed to edit the entries you selected.

Permissions are all correct but the Preview does not work when logged in as the user or the Super Admin. I created a “clean” test channel but still the same. Checked Preview template path, all good. Checked user roles and all permissions, can;t find anything that looks off.

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

What version of EE?

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

It’s likely from this… in the next patch release, we’re hoping this is addressed, while remaining as tight (secure) as things are as a result of this change.

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

<https://expressionengine.com/forums/topic/254312>

       
Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

Latest version Tom, 7.5.21

       
Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

I’ll try that htaccess rule to see if it works.

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

Any shot your up for testing the patch we’e about to push out?

       
Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

Sure. That htaccess rule worked on my client site BTW

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

okay.. so this is the fix <https://github.com/ExpressionEngine/ExpressionEngine/pull/5223/changes>

These are the 2 files you need (click raw to copy them) https://github.com/ExpressionEngine/ExpressionEngine/blob/3bc46cac9851fd98c6728e42[…]4f73d/system/ee/ExpressionEngine/Addons/channel/mod.channel.php

https://github.com/ExpressionEngine/ExpressionEngine/blob/3bc46cac9851fd98c6728e42[…]d75604f73d/themes/ee/asset/javascript/src/cp/publish/publish.js

       
Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

Cool will try it on a live test site. The issue does not seem to occur on local sites

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

that would be awesome!

       
Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

Tom, just to double-check - that js file is new, is that correct? I don’t have a /src/ folder under javascript on this particular install

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

oh, that gets compiled i bet

       
Tom Jaeger's avatar
Tom Jaeger
511 posts
one week ago
Tom Jaeger's avatar Tom Jaeger

just to confirm themes/ee/asset/javascript/src/cp/publish/publish.js ?

       
Mandarax's avatar
Mandarax
22 posts
one week ago
Mandarax's avatar Mandarax

Yes. The only files I have in the javascript folder is a compressed folder and an index.html

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.