Any idea why preview would stop working (other than mercury retrograde!). I am logged in a Super Admin and cannot preview any channels. Preview displays The following errors were encountered
I did upgrade to 7.5.21 today.
Welp- weird one! @Bryan figured it out. Basically, apache sometimes strips out some header info before it hands it over to php. And in this case, we’re passing a token in that auth header. Which is why it failed.
Good news- adding this to your htaccess file said ‘please don’t do that’ and now it works:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1And we’re going to get that documented and some more informative error messaging for when that happens.
Well with this new server implementation the problem was narrowed down to an Apache setting. In my case, it was due to a misconfiguration of our Cloudflare SSL/TLS settings used for the proxy. the HTTP_X_FORWARDED_PROTO was coming back as http. That alone would prevent the preview from working. Changing the TLS/SSL settings to full or full (strict) got that value to be https and preview worked. Special pat on the back goes to EE’s Bryan for identifying this.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.