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: 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, 2022Updated 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
Werner Gusset
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(‘…’)
BoldMinded (Brian)
What version of php are you using?
Werner Gusset
7.4
BoldMinded (Brian)
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.
BoldMinded (Brian)
Comment has been marked private.
BoldMinded (Brian)
Comment has been marked private.
Werner Gusset
Copied to build to the server. Same error.
Werner Gusset
The second build gives the same error.
BoldMinded (Brian)
Did you try clearing your EE cache?
Werner Gusset
Yes, cache was cleared. Just checked again.
BoldMinded (Brian)
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.
Werner Gusset
Sent CP and FTP access
BoldMinded (Brian)
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?
Werner Gusset
Thank you. Brian.
don’t need a zip at the moment.
BoldMinded (Brian)
Publisher 3.5.1 release should fix this and be public in a few days.