Call to a member function getAlias on null

Created on 18 January 2020, almost 5 years ago
Updated 17 September 2024, 3 months ago

I'm trying to synchronize content from my server to my client and I'm receiving this error.

Call to a member function getAlias() on null dans Drupal\path\Plugin\Field\FieldType\PathItem->postSave() (/var/www/vhosts/placement-direct.fr/core/modules/path/src/Plugin/Field/FieldType/PathItem.php ligne 88) #0 /var/www/vhosts/placement-direct.fr/modules/contrib/pathauto/src/PathautoItem.php(34): Drupal\path\Plugin\Field\FieldType\PathItem->postSave(true) #1 [internal function]: Drupal\pathauto\PathautoItem->postSave(true) #2 /var/www/vhosts/placement-direct.fr/modules/contrib/pathauto/src/PathautoFieldItemList.php(24): call_user_func_array(Array, Array) #3 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Field/FieldItemList.php(198): Drupal\pathauto\PathautoFieldItemList->delegateMethod('postSave', true) #4 [internal function]: Drupal\Core\Field\FieldItemList->postSave(true) #5 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(881): call_user_func_array(Array, Array) #6 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(913): Drupal\Core\Entity\ContentEntityStorageBase->invokeFieldMethod('postSave', Object(Drupal\node\Entity\Node), true) #7 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(839): Drupal\Core\Entity\ContentEntityStorageBase->invokeFieldPostSave(Object(Drupal\node\Entity\Node), true) #8 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/EntityStorageBase.php(535): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('update', Object(Drupal\node\Entity\Node)) #9 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(728): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\node\Entity\Node), true) #10 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/EntityStorageBase.php(460): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\node\Entity\Node), true) #11 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(837): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\node\Entity\Node)) #12 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Entity/EntityBase.php(395): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\node\Entity\Node)) #13 /var/www/vhosts/placement-direct.fr/modules/contrib/entity_share/modules/entity_share_client/src/Service/JsonapiHelper.php(516): Drupal\Core\Entity\EntityBase->save() #14 /var/www/vhosts/placement-direct.fr/modules/contrib/entity_share/modules/entity_share_client/src/JsonapiBatchHelper.php(41): Drupal\entity_share_client\Service\JsonapiHelper->importEntityListData(Array) #15 /var/www/vhosts/placement-direct.fr/core/includes/batch.inc(295): Drupal\entity_share_client\JsonapiBatchHelper::importEntityListBatch(Object(Drupal\entity_share_client\Entity\Remote), Array, Array) #16 /var/www/vhosts/placement-direct.fr/core/includes/batch.inc(137): _batch_process() #17 /var/www/vhosts/placement-direct.fr/core/includes/batch.inc(93): _batch_do() #18 /var/www/vhosts/placement-direct.fr/core/modules/system/src/Controller/BatchController.php(55): _batch_page(Object(Symfony\Component\HttpFoundation\Request)) #19 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request)) #20 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #21 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #22 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #23 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #24 /var/www/vhosts/placement-direct.fr/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #25 /var/www/vhosts/placement-direct.fr/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #26 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /var/www/vhosts/placement-direct.fr/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /var/www/vhosts/placement-direct.fr/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /var/www/vhosts/placement-direct.fr/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #33 /var/www/vhosts/placement-direct.fr/core/lib/Drupal/Core/DrupalKernel.php(694): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #34 /var/www/vhosts/placement-direct.fr/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #35 {main}.

I think it has something to do with the Pathauto module.
For information I have Drupal 8.8.1, Entity Share alpha9 and Pathauto 1.6 installed.

Can someone help me please?

💬 Support request
Status

Fixed

Version

3.0

Component

Code

Created by

🇲🇺Mauritius Diveshh Mauritius

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.

Production build 0.71.5 2024