- 3fa3daf0 committed on 8.x-1.x
Issue #3054599 by r.nabiullin, batigolix: Fix notice when parent...
- 3fa3daf0 committed on 8.x-1.x
Automatically closed - issue fixed for 2 weeks with no activity.
I got a lot of same notices in logs after enabling this module.
Notice: Array to string conversion in Drupal\Component\Utility\Html::load() (line 285 of /var/www/html/web/core/lib/Drupal/Component/Utility/Html.php) #0 /var/www/html/web/core/includes/bootstrap.inc(584): _drupal_error_handler_real(8, 'Array to string...', '/var/www/html/w...', 285, Array) #1 [internal function]: _drupal_error_handler(8, 'Array to string...', '/var/www/html/w...', 285, Array) #2 /var/www/html/web/core/lib/Drupal/Component/Utility/Html.php(285): strtr('<!DOCTYPE html ...', Array) #3 /var/www/html/web/core/lib/Drupal/Component/Utility/Html.php(459): Drupal\Component\Utility\Html::load(Array) #4 /var/www/html/web/modules/contrib/rest_absolute_urls/src/Normalizer/StringDataNormalizer.php(52): Drupal\Component\Utility\Html::transformRootRelativeUrlsToAbsolute(Array, 'http://lambor....') #5 /var/www/html/vendor/symfony/serializer/Serializer.php(143): Drupal\rest_absolute_urls\Normalizer\StringDataNormalizer->normalize(Object(Drupal\Core\TypedData\Plugin\DataType\StringData), 'api_json', Array) #6 /var/www/html/web/modules/contrib/jsonapi/src/Serializer/Serializer.php(49): Symfony\Component\Serializer\Serializer->normalize(Object(Drupal\Core\TypedData\Plugin\DataType\StringData), 'api_json', Array) #7 /var/www/html/web/modules/contrib/jsonapi/src/Normalizer/FieldItemNormalizer.php(54): Drupal\jsonapi\Serializer\Serializer->normalize(Object(Drupal\Core\TypedData\Plugin\DataType\StringData), 'api_json', Array) #8 /var/www/html/web/modules/contrib/jsonapi_extras/src/Normalizer/FieldItemNormalizer.php(69): Drupal\jsonapi\Normalizer\FieldItemNormalizer->normalize(Array, 'api_json', Array) #9 /var/www/html/vendor/symfony/serializer/Serializer.php(143): Drupal\jsonapi_extras\Normalizer\FieldItemNormalizer->normalize(Object(Drupal\Core\Field\Plugin\Field\FieldType\StringLongItem), 'api_json', Array) #10 /var/www/html/web/modules/contrib/jsonapi/src/Serializer/Serializer.php(46): Symfony\Component\Serializer\Serializer->normalize(Object(Drupal\Core\Field\Plugin\Field\FieldType\StringLongItem), 'api_json', Array) #11 /var/www/html/web/modules/contrib/jsonapi/src/Normalizer/FieldNormalizer.php(96): Drupal\jsonapi\Serializer\Serializer->normalize(Object(Drupal\Core\Field\Plugin\Field\FieldType\StringLongItem), 'api_json', Array) #12 /var/www/html/web/modules/contrib/jsonapi/src/Normalizer/FieldNormalizer.php(44): Drupal\jsonapi\Normalizer\FieldNormalizer->normalizeFieldItems(Object(Drupal\Core\Field\FieldItemList), 'api_json', Array) #13 /var/www/html/vendor/symfony/serializer/Serializer.php(143): Drupal\jsonapi\Normalizer\FieldNormalizer->normalize(Object(Drupal\Core\Field\FieldItemList), 'api_json', Array) #14 /var/www/html/web/modules/contrib/jsonapi/src/Serializer/Serializer.php(46): Symfony\Component\Serializer\Serializer->normalize(Object(Drupal\Core\Field\FieldItemList), 'api_json', Array) #15 /var/www/html/web/modules/contrib/jsonapi/src/Normalizer/EntityNormalizer.php(220): Drupal\jsonapi\Serializer\Serializer->normalize(Object(Drupal\Core\Field\FieldItemList), 'api_json', Array) #16 /var/www/html/web/modules/contrib/jsonapi/src/Normalizer/EntityNormalizer.php(105): Drupal\jsonapi\Normalizer\EntityNormalizer->serializeField(Object(Drupal\Core\Field\FieldItemList), Array, 'api_json') #17 /var/www/html/vendor/symfony/serializer/Serializer.php(143): Drupal\jsonapi\Normalizer\EntityNormalizer->normalize(Object(Drupal\paragraphs\Entity\Paragraph), 'api_json', Array) #18 /var/www/html/web/modules/contrib/jsonapi/src/Serializer/Serializer.php(46): Symfony\Component\Serializer\Serializer->normalize(Object(Drupal\paragraphs\Entity\Paragraph), 'api_json', Array) #19 /var/www/html/web/modules/contrib/jsonapi/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php(193): Drupal\jsonapi\Serializer\Serializer->normalize(Object(Drupal\paragraphs\Entity\Paragraph), 'api_json', Array) #20 [internal function]: Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer->Drupal\jsonapi\Normalizer\{closure}(Object(Drupal\paragraphs\Entity\Paragraph))
It happen when parent normilize return to StringDataNormalizer empty array, instead of NULL.
Fixed
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Issue #3054599 by r.nabiullin, batigolix: Fix notice when parent...
Automatically closed - issue fixed for 2 weeks with no activity.