Download & Extend

Return of link_load() unserialize() error

Project:Link
Version:7.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This error appeared some time ago and it appears from the queue that it was fixed. But I am having it with 7.x-1.1 and the fix in #1801662: Warning: unserialize() expects parameter 1 to be string, array given in _link_load() line 320 when previewing node. made it go away.

Comments

#1

I spoke too soon. The change did not fix the problem.

#2

I'm setting an "Additional CSS Class" in the link field admin.

Afterwards, if I save a node containing a link, I get

Notice: unserialize() [function.unserialize]: Error at offset 0 of 11 bytes in _link_load() (Line 329 of /sites/all/modules/link/link.module).

If I look in the DB, the value is not serialized. Thus, unserizalize will throw a notice.

I tried to debug it, but I didn't figure it out.