When I upgraded Meta Tags to alpha7 from alpha 5, the following error appears on pages which have Views tables which include dates, locations (and a like to google maps) on them (and not on other pages):

Notice: unserialize() [function.unserialize]: Error at offset 66 of 279 bytes in metatag_metatags_load_multiple() (line 302 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 271 bytes in metatag_metatags_load_multiple() (line 302 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 285 bytes in metatag_metatags_load_multiple() (line 302 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 265 bytes in metatag_metatags_load_multiple() (line 302 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).

It works fine when I roll back to alpha5.

Comments

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

Please try the latest -dev version.

marvs5’s picture

Version: 7.x-1.0-alpha7 » 7.x-1.x-dev

I upgraded to the latest -dev version per your suggestion. I received the following error...

Notice: unserialize() [function.unserialize]: Error at offset 66 of 265 bytes in metatag_metatags_load_multiple() (line 316 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 254 bytes in metatag_metatags_load_multiple() (line 316 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 241 bytes in metatag_metatags_load_multiple() (line 316 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 268 bytes in metatag_metatags_load_multiple() (line 316 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).
Notice: unserialize() [function.unserialize]: Error at offset 66 of 298 bytes in metatag_metatags_load_multiple() (line 316 of /home/sitename/public_html/sites/all/modules/metatag/metatag.module).

Reverting back to alpha5.

damienmckenna’s picture

The error repeats six times, so does that mean that six records were loaded on that page? Are you able to edit & view those objects (nodes or whatever) correctly on their own?

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

After further testing I'm unable to reproduce this, please re-edit & save the nodes and terms that load on that page with the latest -dev version to ensure the data saves correctly.

damienmckenna’s picture

Just to explain it further, when it says "Error at offset X of Y bytes" it means that it's getting errors trying to expand the serialized data that was loaded from the database using this command:

  $metatags = array_map('unserialize', $metatags);

In other words, the data has been corrupted somehow, possibly by a bug in an old version or maybe just Dumb Luck (tm), so the only way to fix it will be to re-edit the content and fix the data.