Publisher is EE6 compatible, but it does not support the Fluid field. 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)

Jan 07, 2013

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

#2

Jacob Russell

Jan 07, 2013

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

#3

Jacob Russell

Jan 07, 2013

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)

Jan 07, 2013

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

Jan 07, 2013

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)

Jan 07, 2013

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

Jan 07, 2013

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)

Jan 07, 2013

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

#9

Jacob Russell

Jan 07, 2013

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)

Jan 07, 2013

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

Jan 07, 2013

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

#12

BoldMinded (Brian)

Jan 07, 2013

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

#13

Jacob Russell

Jan 07, 2013

That did the trick, thanks Brian!

#14

Red Carrot

Jan 08, 2013

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

Jan 08, 2013

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)

Jan 08, 2013

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

Login to reply