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: PHP Error when using {exp:publisher:languages} tag pair
Status | Resolved |
Add-on / Version | Publisher 1.6.5 |
Severity | |
EE Version | 2.10.1 |
Kevin Chatel
Jul 01, 2015Description:
I’ve added a language switcher to the top of the page that was working properly. I’ve since updated EE to the latest version 2.10.1 and Publisher to the latest version and now I get a PHP error:
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: publisher/mod.publisher.php
Line Number: 336
Here is my code:
{exp:publisher:languages show_current="no"}{if short_name == 'fr'}Français{if:else}{long_name}{/if}{/exp:publisher:languages}
Now on my page I see the tag {long_name} and not the rendered language name.
Only 3rd party modules that are installed are
Structure 3.3.17
User: 3.5.3
This is currently on a local build. Not on a live website.
BoldMinded (Brian)
It sounds like you have not created translations for your languages in the Phrases section.
Kevin Chatel
Wow rookie move. Thanks! Works