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: Languages not working

Status Resolved
Add-on / Version Publisher 1.2.2
Severity Critical
EE Version 2.8.0

Steven Vandemoortele

Mar 06, 2014

Hi,

I’m testing out the latest version of publisher 1.2.2 on a fresh install of EE2.8.0 and I can’t seem to get the languages to work at all.
Languages created in Publisher don’t show up in the control panel or in phrases, only english is shown as language.
The created languages are set to enabled in control panel.
The {exp:publisher:switcher} tag also only outputs “English”.

I have attached screenshots.

Kind Regards,
Steven Vandemoortele

#1

BoldMinded (Brian)

If you only have 2 languages you will only see 1 field in the phrases list, so your screenshot is correct. The 3rd screenshot looks as if there is a JavaScript error or you disabled Publisher for that channel. Also, disable that theme and try the default theme to see if the bar shows up.

#2

Steven Vandemoortele

Hi,

I’ve been trying to figure out what the problem is. It appears to be something with the language cache. If I output $languages in the function is_translated() of publisher_phrase, it would only return English. I have disabled the cache check in get_languages of publisher_model and now everything seems to work. It’s like adding a new language didn’t clear the cache…

#3

BoldMinded (Brian)

Steven, try adding this line: https://www.evernote.com/shard/s9/sh/458e1604-32a6-4f6b-a372-113e79a740b1/2b9b51d1e6d8715b2720022e1a16fb07

#4

Steven Vandemoortele

Hi,

That extra line doesn’t fix my problem. If I add a new language under languages it doesn’t appear in the dropdown in the control panel when adding a new entry.

#5

BoldMinded (Brian)

Did you select the site to assign it to in the language edit page?

#6

Steven Vandemoortele

yes, i have selected the site

#7

BoldMinded (Brian)

Would you be able to provide CP access so I can take a look?

#8

Steven Vandemoortele

Not really, it’s running on an internal development server

#9

BoldMinded (Brian)

Go to the Publisher > Support page in the CP and submit the form. Without CP access I’m not sure what else I can do to debug the issue. I can’t replicate it locally and have not heard similar reports.

#10

BoldMinded (Brian)

Did you disable the custom theme and use the default theme? What about JS errors on the Publish page? The toolbar is added with JS, so if something else errors out then the toolbar won’t get added. Is the toolbar displaying, but just not showing languages?

#11

Steven Vandemoortele

There are no js errors, the toolbar is showing and has languages. If i add a new language in publisher it doesn’t add it to the list of languages. If I disable the cache check in get_languages() new languages added are shown in the dropdown

#12

BoldMinded (Brian)

So it’s safe to assume that if you disable caching it works without having to modify the code?

#13

BoldMinded (Brian)

Should be fixed, sending you a 1.2.3 build.

#14

BoldMinded (Brian)

Going to close this b/c I’m sure its fixed in that build. Feel free to re-open the ticket if you have issues.

Login to reply