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

rsbecker’s picture

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

scito’s picture

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.

scito’s picture

Issue summary: View changes

Fixed typos

dqd’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Link module is in Drupal core now. I'll close this issue due to inactivity for 12 years and upcoming EOL of Drupal 7 in January 2025. While the project version for Drupal 7 will keep providing support for security issues and website breaking bug fixes for Drupal 7, we should try to minimize the open issues for Drupal 7 in the queue as much as possible. Thanks for the report and all the efforts in here. Feel free to re-open if you can provide a fix or found an additional related problem which increases the issue priority to "Critical" here.