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: error message when edit or create an entry

Status Resolved
Add-on / Version Publisher Language Control 2.0
Severity
EE Version 3.5.11

Riccardo Melzi

Jan 03, 2018

Description: I’ve installed the add-on, and when i open an entry i received the following error messages:

Exception Caught
publisher_toolbar_languages hook should return a Collection
user/addons/publisher/Service/Toolbar.php:318

i tried to select both, none and all available languages, under “toolbar languages” section on setting page, but the error persists.
I don’t have access to testing server now, let me know if you need it.

thanks for your help.
Riccardo

#1

BoldMinded (Brian)

Thanks Riccardo. Sorry you’re getting this error. I’ll try to look into it in the next day or two.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

Riccardo Melzi

I tried these build. It works with super admins, but I get this error opening an entry, when i set edit permission for a language to a specific member group:

Fatal error: Uncaught Error: Call to a member function first() on array in /home/amb65787/sys/user/addons/publisher_language_control/ext.publisher_language_control.php:128 Stack trace: #0 /home/amb65787/sys/ee/legacy/libraries/Extensions.php(243): Publisher_language_control_ext->publisher_toolbar_languages(Array) #1 /home/amb65787/sys/ee/legacy/libraries/Extensions.php(138): EE_Extensions->call_class(‘Publisher_langu…’, ‘publisher_toolb…’, Array, Array) #2 /home/amb65787/sys/user/addons/publisher/Service/Toolbar.php(315): EE_Extensions->call(‘publisher_toolb…’, Array) #3 /home/amb65787/sys/user/addons/publisher/tab.publisher.php(82): BoldMinded\Publisher\Service\Toolbar->compileOptions(‘entry’) #4 /home/amb65787/sys/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php(615): Publisher_tab->display(‘1’, ‘201’) #5 /home/amb65787/sys/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelEntry.php(897): EllisLab\ExpressionEngine\Model\Channel\ChannelEntry->getTabFields() #6 /home/amb65787/sys/ee/EllisLab/ExpressionEng in /home/amb65787/sys/user/addons/publisher_language_control/ext.publisher_language_control.php on line 128

#4

BoldMinded (Brian)

Comment has been marked private.

#5

Riccardo Melzi

Comment has been marked private.

#6

BoldMinded (Brian)

Do you have this site setup on a dev server I could access? CP and FTP access specifically? CP access would need to include admin and non-admin user.

#7

BoldMinded (Brian)

Comment has been marked private.

#8

Riccardo Melzi

I started setting up testing server, but this build works fine. thanks for your time. Riccardo

#9

BoldMinded (Brian)

Cool, glad its working. Sorry for the troubles. I’ll wait a day or so before I close this ticket. Just post here again if you’re having trouble with it.

#10

Riccardo Melzi

Thanks Brian, no problem for the troubles-

I got a warning message on phrases translation page:

Notice Undefined variable: boxClass user/addons/publisher/views/unauthorized.php, line 1 show details

table-list-wrap”> Unauthorized

You do not have permissions to access the requested page.

#11

Riccardo Melzi

no error for super admins, only for the member group assigned to a specific language

#12

BoldMinded (Brian)

Comment has been marked private.

#13

Riccardo Melzi

Comment has been marked private.

#14

BoldMinded (Brian)

That error is coming from Publisher. Are you sure the member group has permissions to view the requested page in the CP?

#15

Riccardo Melzi

Comment has been marked private.

#16

BoldMinded (Brian)

Comment has been marked private.

Login to reply