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: Site broken after update from EE 5.4.3 to 6.2.2

Status Resolved
Add-on / Version Publisher 3.5.0
Severity
EE Version 6.2.2

Werner Gusset

Jan 20, 2022

Updated a site from EE 5.4.3 to 6.2.2. Installed is Publisher 3.5.0.

Got this error instead the site’s homepage:

TypeError Caught
BoldMinded\Publisher\Model\PhraseTranslation::__serialize() must return an array
Cache_file.php:108

Any suggestion to resolve this?

Werner

#1

Werner Gusset

Jan 20, 2022

Here ist the more complete error message

TypeError Caught
BoldMinded\Publisher\Model\PhraseTranslation::__serialize() must return an array
ee/legacy/libraries/Cache/drivers/Cache_file.php:108

Stack Trace: Please include when reporting this error
#0 ee/legacy/libraries/Cache/drivers/Cache_file.php(108): serialize(Array)
#1 ee/legacy/libraries/Cache/Cache.php(119): EE_Cache_file->save(‘default_site/pu…’, Object(ExpressionEngine\Service\Model\Collection), ‘10080’, 2)
#2 user/addons/publisher/Service/Cache/Cache.php(109): Cache->save(‘publisher/lang/...’, Object(ExpressionEngine\Service\Model\Collection), ‘10080’)
#3 user/addons/publisher/Model/Phrase.php(748): BoldMinded\Publisher\Service\Cache\Cache->save(‘BoldMinded\\Publ…’, Object(ExpressionEngine\Service\Model\Collection))
#4 user/addons/publisher/Model/Phrase.php(408): BoldMinded\Publisher\Model\Phrase->getTranslations()
#5 user/addons/publisher/Service/Frontend.php(172): BoldMinded\Publisher\Model\Phrase->findCurrentPhrasesIndexed()
#6 user/addons/publisher/Service/Frontend.php(144): BoldMinded\Publisher\Service\Frontend->loadPhrases()
#7 user/addons/publisher/ext.publisher.php(353): BoldMinded\Publisher\Service\Frontend->setGlobalVars()
#8 ee/legacy/libraries/Extensions.php(203): Publisher_ext->core_boot()
#9 ee/legacy/libraries/Extensions.php(108): EE_Extensions->call_class(‘Publisher_ext’, ‘core_boot’, Array, Array)
#10 ee/legacy/core/Controller.php(84): EE_Extensions->call(‘core_boot’)
#11 ee/ExpressionEngine/Core/Core.php(246): EE_Controller->__construct()
#12 ee/ExpressionEngine/Core/Core.php(113): ExpressionEngine\Core\Core->runController(Array)
#13 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#14 index.php(173): require_once(’...’)
#14 index.php(173): require_once(’...’)

#2

BoldMinded (Brian)

Jan 20, 2022

What version of php are you using?

#3

Werner Gusset

Jan 20, 2022

7.4

#4

BoldMinded (Brian)

Jan 20, 2022

Interesting. I have a fix for this but I thought it was a php 8 specific issue. Seems something changes in EE because this Publisher code has been largely unchanged for several years. I’ll send you a build shortly but I think I need to chat with the EE devs about this too.

#5

BoldMinded (Brian)

Jan 20, 2022

Comment has been marked private.

#6

BoldMinded (Brian)

Jan 20, 2022

Comment has been marked private.

#7

Werner Gusset

Jan 20, 2022

Copied to build to the server. Same error.

#8

Werner Gusset

Jan 20, 2022

The second build gives the same error.

#9

BoldMinded (Brian)

Jan 20, 2022

Did you try clearing your EE cache?

#10

Werner Gusset

Jan 20, 2022

Yes, cache was cleared. Just checked again.

#11

BoldMinded (Brian)

Jan 20, 2022

Weird. That build should have absolutely fixed it. Can you update the ticket with CP and FTP access to the server so I can debug it? Make sure the files are writable with the FTP login provided.

#12

Werner Gusset

Jan 20, 2022

Sent CP and FTP access

#13

BoldMinded (Brian)

Jan 20, 2022

Should be fixed now. Sorry about that. Do you want me to send a new zip file or just leave what is on the server?

#14

Werner Gusset

Jan 20, 2022

Thank you. Brian.

don’t need a zip at the moment.

#15

BoldMinded (Brian)

Jan 20, 2022

Publisher 3.5.1 release should fix this and be public in a few days.

Login to reply