All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Unpublished Structure draft previews not working, loading 404

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version 31

Timothy Kelty

Jun 11, 2013

In my draft preview iframe, or with ?publisher_status=draft, unpublished drafts (where the EE status is still draft and not open), do not load, instead they get caught by my {if no_results}{redirect="404"}{/if} and I see a 404.

It’s loading the correct template, if I change the entries tag to have a status=“not closed”, it works. Of course, I don’t want that, as I don’t want these drafts live yet.

This is the Lipp site you’ve helped with with previously. If you want me to zip up the latest for you, I can.

I have the core hacks from your gist on https://support.ellislab.com/bugs/detail/19456 applied.

#1

BoldMinded (Brian)

Check out the very bottom of this page: http://boldminded.com/add-ons/publisher/template-tags

#2

BoldMinded (Brian)

That status variable is only assigned a value if ?publisher_draft is found in the URL. So normally it prints nothing.

#3

Timothy Kelty

Thanks!

I knew it was something like that, but I passed over it in the docs. Thanks.

Login to reply