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: Default language

Status Resolved
Add-on / Version Publisher 1.6.1
Severity
EE Version 2.9.2

Karen Bosch

Apr 29, 2015

I have the latest version of your publisher build, and I think I found a bug. I’ve added a second language: Dutch. I’m trying to set this language as the default language, but when I do this, the flag tags that I use to switch between languages turn disappear and turn into code. It works fine when I keep English as my default language.
This is what it literally shows in my chrome debugger when I selected Dutch as my default language:

                               
  •                        

 

#1

BoldMinded (Brian)

Karen, can you add your code inside of a /code/ block (replace the / with [ ])? Also, It would help in this case from the sound of it to see a video of you replicating the bug. You can share a video via Dropbox link or similar service. screenr.com and Screeny App are free services if you’re on a Mac to capture videos.

#2

Karen Bosch

Comment has been marked private.

#3

BoldMinded (Brian)

Unfortunately I can’t open that video. The Quicktime player doesn’t recognize it.

#4

Karen Bosch

Comment has been marked private.

#5

BoldMinded (Brian)

Thanks for that. Did you add translations for the new language in the Phrases section?

#6

Karen Bosch

No I didn’t, I usually do that in the end. Could that be the problem?

#7

BoldMinded (Brian)

Could be yes, because the tag only parses over the phrases for the languages.

#8

Karen Bosch

It gives error when I add a phrase:

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: publisher/mod.publisher.php

Line Number: 331

Is it an idea to put the website online and give you the credentials for the FTP and admin?

#9

BoldMinded (Brian)

I would like to avoid logging into anything right now. Can you take a screenshot of your Languages phrase translations page?

#10

Karen Bosch

Comment has been marked private.

#11

BoldMinded (Brian)

That link doesn’t work.

#12

BoldMinded (Brian)

Not sure why, but this is what I see. https://www.dropbox.com/s/6ptnza8sic3v7cf/Screenshot 2015-04-30 10.07.57.png?dl=0

#13

BoldMinded (Brian)

Karen, the only bug here is that it isn’t parsing that tag, and its not parsing it because you added a new language and set it as the default, thus there are no phrase translations for that language. It needs translations for the default language to display anything.

I’ve made an update so the unparsed tags log a message in EE’s template log, and adds a hidden comment in the code so its a little more obvious what the issue is when someone goes to inspect it.

https://www.dropbox.com/s/ucjb7z3m7e6kaqz/Screenshot 2015-04-30 19.52.14.png?dl=0

Going to close this now.

Login to reply