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: Translations Not Saving

Status Resolved
Add-on / Version Publisher
Severity Critical
EE Version 17

Jacob Russell

Jan 07, 2013

I’ve installed Publisher on a new site, turned off the workflow features, and am just using it’s multi-language capabilities.  I have 3 languages set up - English, American English (uses same EE English Language), and Norwegian.  When I addd / edit an entry in the CP, I can switch between the 3 languages, but when I save the entry the content is copied to all 3 languages, regardless of which language I’ve selected and entered.  Am I missing something?

#1

BoldMinded (Brian)

I won’t be able to look into this until tonight, sorry. I’m dealing with a project emergency right now.

#2

Jacob Russell

Tonight is fine, looks the same as the other issue reported today, so I might not be alone.

#3

Jacob Russell

I also have a problem the publisher:languages tag only outputting American English and Norwegian, not English, both with and without using the show= parameter. English is both enabled and the default language.

#4

BoldMinded (Brian)

Go to line 20 of Publisher_fieldtype.php and comment out the return;

Did you get an error the first time you installed it by chance?

#5

Jacob Russell

I have a return on line 22, this what you’re referring to?

// Errors galore here if this isn’t set for some reason :/ if (isset($_SESSION[‘installing_publisher’])) { return; }

#6

BoldMinded (Brian)

Yeah, that whole if statement. I just setup a new environment and got an error on install, and I think that $_SESSION var isn’t getting unset, which is why it isn’t saving fields. Did you just install it today and start developing? If so that would confirm this is the bug… you probably still have that $_SESSION var set.

#7

Jacob Russell

Installed yesterday (no error) and as of this morning I was still having hte problem. I’ll comment that out and test.

#8

BoldMinded (Brian)

Weird. Well I’m pretty sure its that line, will dig into it some more.

#9

Jacob Russell

Commented out and it’s now working correctly, thanks!

Any thoughts on the other issue (only 2 of 3 languages outputting)?

Code is as follows: {exp:publisher:languages show=”1|2|3”} {long_name} {/exp:publisher:languages}

Languages in the CP: http://cl.ly/image/1O0u0s2b1N0p

Only outputs 2 and 3 w/ or w/out the show parameter.

#10

BoldMinded (Brian)

Someone else reported something similar and I wasn’t able to replicate it locally. I can look into that too 😊

If you need to show all languages just don’t use the show parameter. It will automatically show all enabled languages.

#11

Jacob Russell

Yeah I assumed as much, show= was my second attempt after the first didn’t work.

#12

BoldMinded (Brian)

Jacob, go to the Phrases, and make sure English has a value. The install process isn’t creating the English phrase.

#13

Jacob Russell

That did the trick, thanks Brian!

#14

Red Carrot

A point of interest:- now when you go into sub-pages on Structure we get this error:-

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE::$file_upload_preferences_model

Filename: Publisher/Publisher_fieldtype.php

Line Number: 197

#15

Red Carrot

Changing ~197 from:- $upload_paths = $this->EE->file_upload_preferences_model->get_file_upload_preferences(NULL, NULL);

To:-

 $this->EE->load->model('file_upload_preferences_model', NULL, TRUE);
                $upload_paths = $this->EE->file_upload_preferences_model->get_file_upload_preferences(NULL, NULL);

Fixes this problem.

#16

BoldMinded (Brian)

Red Carrot, thanks. I spotted that the other day and it will be in the next release.

Login to reply