Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Incorrect Preview URL and content for default language

Status Resolved
Add-on / Version Publisher 2.4.0
Severity
EE Version 3.5.2

TradeMark Media

Mar 31, 2017

Description:
When the preview pops up, the site URL is missing a slash after the site url but only when previewing the default language, my other language translation works correctly e.g.
http://texasoncourse.localabout/index/house-bill-18?publisher_status=draft&publisher_key=ahXOuXeb
Even if I try to correct the URL by adding the missing slash or by just appending publisher_status=draft to my URLs, it’s still using the published, not draft content

Even weirder, on my development site, the preview popup isn’t showing up at all.

Detailed steps to reproduce the issue:
1. Save entry as draft for default language entries

#1

BoldMinded (Brian)

I’m fixing some issues with drafts and previews right now. Regarding the /, do you have it in your site_url config value?

#2

Mighty Citizen

Hey Brian,

No, I don’t have a / in the site_url config value - I could probably add in.

#3

BoldMinded (Brian)

Yeah, I think most add-ons, and even EE, expects the trailing slash to be in there.

#4

Mighty Citizen

Sounds good - any idea on ballpark timeline on the draft and preview fixes? Just need to know what to tell the client.

Thanks!

#5

BoldMinded (Brian)

Comment has been marked private.

#6

BoldMinded (Brian)

Disregard that link, it didn’t build correctly.

#7

BoldMinded (Brian)

Comment has been marked private.

#8

Mighty Citizen

That didn’t seem to change anything i.e. the English preview still shows published content. FYI I also changed the site_url to add the slash, and the preview URL still isn’t including the slash.

#9

BoldMinded (Brian)

Ok, what are you trying to preview? A Structure page or a normal template based url? If the later, what does your Template Preview settings page look like? Also, have you added {publisher:entry_status} to your status parameter mentioned in the bottom of this docs page? http://docs.boldminded.com/publisher/drafts-workflow

#10

Mighty Citizen

One is a custom URI and the others are template based url - here are the settings: http://imgur.com/EK4NSLa

I must have missed that {publisher:entry_status} parameter from the docs. For some reason my Spanish entries were working without that parameter. I’ll give that a shot - thanks!

#11

BoldMinded (Brian)

If the entry has an open version already published, that variable isn’t required, but if you’re creating a new entry as a draft status and it has not been published as open yet, then it won’t load unless you have that variable in there. All it does is add “Draft” to your status=”” parameter.

#12

Mighty Citizen

Not sure if I should open a separate ticket for this but here’s another issue that cropped up - if my draft status is displaying, then none of my phrases work.

https://dev.texasoncourse.org/es/about/house-bill-18 https://dev.texasoncourse.org/es/about/house-bill-18?publisher_status=draft

#13

BoldMinded (Brian)

That would be a separate ticket, but make sure you clear your EE cache, especially if you’re using file cache. Phrases are saved to cache if its enabled and if it hasn’t been cleared it could contain bad data.

#14

Mighty Citizen

I’ve cleared my cache and getting the same results - I’ll open up a different ticket

Login to reply