Array given, but string expected as argument 1 for unserialize() in _link_load():315 (when title-attribute is user defined)

Created on 18 December 2011, almost 13 years ago
Updated 1 September 2024, 26 days ago

This issue is probably related to Notice: Array to string conversion in _link_sanitize(), but as the error message is somehow different I opened an own issue for this.

After adding one or more fields of type "Link" with user-defined attributes and title (both, "real" title and attribute) to a custom content type, I'm getting this error message after creating a new node of that content type:

Warning: unserialize() expects parameter 1 to be string, array given in _link_load() (Line 315 in ${DRUPALHOME}/sites/all/modules/link/link.module).

Though, the new node is created, each link shows up just as a "<" character.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇩🇪Germany torbjoernk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin

    Does this issue still persist? If so keep me posted. 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, a patch re-roll against latest dev which can be committed or found an additional related problem which increases the issue priority.

Production build 0.71.5 2024