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: Publisher 1.0.3 Phrases Bug

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

Mike C

Jul 22, 2013

Hi Brian -

You’ve been helping us with the Publisher 1.0.3 MSM settings and we found an issue. Everything has been working ok except that there is no ‘Languages’ group in the Phrases section. Only the ‘Default’ group is present so that when we create a phrase, EE gives us an ‘ok’ message but nothing shows up in the Phrases tab - it remains blank. Recall, we had an earlier issue with the 1.0.3 update where a default language was not being created upon install.

Not certain if we can manually create the ‘Languages’ group or whether another update is required for the module?

Thanks,
Mike

#1

BoldMinded (Brian)

Did you create a new group for the other site(s)? The groups already have a site_id column, so they should be MSM compatible already.

#2

Mike C

No, I have not created any phrase groups at all. My understanding is there should have been a ‘default’ and ‘languages’ group in place upon installation but only the ‘default’ group is there.

However, just checking the other site (site ID 1) and it does have the ‘languages’ group and I see my attempts at adding 2 phrases.

So, site ID 2 shows only the ‘default’ group and no phrases and site ID 1 shows the ‘languages’ group and the 2 phrases I tried creating while I was in site ID 2.

#3

BoldMinded (Brian)

Do the languages translate properly when viewing site #2?

Since languages are global I’m not sure it makes sense to add a languages phrase group to each extra site. You’d effectively be translating the same thing multiple times.

#4

Mike C

Ok, so do you mean that the install is correct (ie. the languages group should only appear in the main site (ID 1) and that all phrases that need translation reside there)?

If that’s the case, does that mean an editor has to be in the site ID 1 CP in order to view and manage those phrases?

As to the translation working, I don’t know. Both sites are EN and site ID 2 has DE added to it but we don’t want/need that language in site ID 1. So, when I access the phrase in the site ID 1 CP, I can only add an EN phrase - DE does not show up as an option.

#5

BoldMinded (Brian)

You should be able to add a new group that is site 2 specific. Only the languages group will be shared and edited in site 1. If you can’t create phrase groups in site 2 then that is a bug.

#6

Mike C

I can’t as per what I’d expect. If I create a group while in site #2, the group does not show up while in its CP but does show up while in site #1 CP. If I then add a phrase to that group I have the same issue of it not allowing we to access other languages from site #2.

#7

BoldMinded (Brian)

Go to line 391 of models/publisher_phrase.php and add this:

‘site_id’ => ee()->publisher_lib->site_id

so it looks like https://www.evernote.com/shard/s9/sh/790a76aa-3dc3-4eda-b0e0-936e2dfc6f0a/da4cb6bf47273f318ebf7343c434aa91

#8

Mike C

I get this error when trying to add a new group in site #2 now:

A PHP Error was encountered

Severity: Notice

Message: Use of undefined constant ‘site_id’ - assumed '‘site_id’'

Filename: models/publisher_phrase.php

Line Number: 391

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /nfs/c07/h04/mnt/112936/domains/system252_stag/codeigniter/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 408

A Database Error Occurred
Error Number: 1054

Unknown column '‘site_id’' in 'field list'

INSERT INTO `exp_publisher_phrase_groups` (`group_name`, `group_label`, `‘site_id’`) VALUES ('cadex', 'Cadex Phrases', '2')

Filename: third_party/publisher/models/publisher_model.php

Line Number: 467

« Back
#9

Mike C

Sorry - please ignore - bad quotes from copying that line.

#10

Mike C

Ok - still not quite there. I can now add the group in site #2 and it only shows up in site #2. However, if I now add a phrase to that group, I get an EE ‘ok’ msg but no phrase shows up in that group - it remains empty.

#11

BoldMinded (Brian)

New build sent

#12

Mike C

Ok - can I just update and not re-install?

#13

Mike C

Update fixes the issue. Thanks Brian.

#14

BoldMinded (Brian)

Fixed for 1.0.3

Login to reply