Closed (fixed)
Project:
Metatag
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2022 at 15:15 UTC
Updated:
9 Nov 2022 at 18:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jnoordsijComment #3
damienmckennaDoes the problem go away if you edit and re-save the global default settings?
Comment #4
jenger1965 commentedI have the same problem with lots of "This could not be unserialized: a:0:{}" error messages in the wd log.
Resaving of the global settings does not help.
In MetatagManger->getFieldTags(): An serialized empty array "a:0:{}" should be handled as empty string.
Not enter the
if (!empty($new_tags))pathComment #5
jenger1965 commented$new_tags = unserialize($serialized_value);can return FALSE if unserialize() fails.
Maybe it makes sense to differ between FALSE and an empty array at
if (!empty($new_tags)) {Comment #6
jenger1965 commentedThis patch work for me...
Comment #7
damienmckennaThanks for working out a possible patch, let's see how it works with the testbot.
Comment #8
wellsI'm also seeing this issue. The #6 patch had the wrong base. Attaching an updated patch here.
Comment #9
flocondetoileI saw too a lot of errors in the logs since I upgraded metatag to 8.x-1.22.
Patch #8 fix the issue.
Comment #10
othermachines commentedPatch #8 resolves the error for me (using metatag 8.x-1.22) - thanks!
Comment #11
damienmckennaThank you for the reviews.
This has a minor tidying of the changes.
Comment #13
damienmckennaCommitted. Thanks everyone!