Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This issue happens when you preview a node that has a link field.
I believe that the attribute is still an array at this stage and is not yet serialised.
One way to fix it is to change the code like this:
if (isset($item['attributes'])) {
if(is_string($item['attributes'])){
return unserialize($item['attributes']);
} else {
return $item['attributes'];
}
}
Comments
Comment #1
JKingsnorth CreditAttribution: JKingsnorth commentedI cannot recreate the issue in the latest version, and since it is against an older version I'm going to close this off. Please do reopen it with full steps about how to recreate the issue in the latest version if it is still a problem.