- Issue was unassigned.
- 🇮🇹Italy apaderno Brescia, 🇮🇹
If what reported in this issue is a Drupal core bug, should not this issue be closed?
- Status changed to Closed: duplicate
almost 2 years ago 1:25pm 23 May 2023 - 🇧🇷Brazil gerson.analista
The default menu link is requered and always generates a record in "link__options" field of the {menu_link_content_data} table.
The new field created by the "Translatable menu link uri" module "link_override__options" on {menu_link_content_data} table is optional and his value table can be empty.
This fact causes the deprecated message in the core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php file around line 602.
foreach ($columns as $property_name => $column_name) { $column_attributes = $definition_columns[$property_name]; $values[$id][$field_name][$langcode][$property_name] = (!empty($column_attributes['serialize'])) ? unserialize($row[$column_name]) : $row[$column_name]; //Deprecated generated here }
I marked this problem as active because I was investigating the problem further.
I have some sites that use this module, I thought I would find a way to avoid the deprecated message directly in this module, but by the way we will have to wait for the problem to be fixed in core of Drupal. - 🇨🇭Switzerland sir_squall
Hello,
I just installed this module and I got PHP errors:
Deprecated function : unserialize(): Passing null to parameter #1 ($data) of type string is deprecated dans Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables() (/home/clients/b6be4a8b5bd76d63cc49ffea7dfff886/sites/camps.apolline.art/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php ligne 603)I'm using PHP 8.3.14
Thanks