Skip to content

Instantly share code, notes, and snippets.

@mikeshiyan
Last active October 30, 2018 09:36
Show Gist options
  • Save mikeshiyan/3f6342f8f870a49443eca5dd540893ae to your computer and use it in GitHub Desktop.
Save mikeshiyan/3f6342f8f870a49443eca5dd540893ae to your computer and use it in GitHub Desktop.
Error: Call to a member function getFieldStorageDefinition() on array in Drupal\Core\Field\TypedData\FieldItemDataDefinition->getPropertyDefinitions() (line 66 of core/lib/Drupal/Core/Field/TypedData/FieldItemDataDefinition.php) for https://www.drupal.org/project/drupal/issues/2750463
Drupal\Core\Field\TypedData\FieldItemDataDefinition->getPropertyDefinitions() (Line: 50)
Drupal\Core\Field\FieldItemBase->__construct(Object, 0, Object) (Line: 46)
Drupal\Core\TypedData\TypedData::createInstance(Object, 0, Object) (Line: 91)
Drupal\Core\TypedData\TypedDataManager->createInstance('field_item:entity_reference', Array) (Line: 103)
Drupal\Core\TypedData\TypedDataManager->create(Object, NULL, 0, Object) (Line: 187)
Drupal\Core\TypedData\TypedDataManager->getPropertyInstance(Object, 0, '1') (Line: 82)
Drupal\Core\Field\FieldTypePluginManager->createFieldItem(Object, 0, '1') (Line: 40)
Drupal\Core\Field\FieldItemList->createItem(0, '1') (Line: 66)
Drupal\Core\TypedData\Plugin\DataType\ItemList->setValue(Array, ) (Line: 118)
Drupal\Core\Field\FieldItemList->setValue(Array, ) (Line: 195)
Drupal\Core\TypedData\TypedDataManager->getPropertyInstance(Object, 'uid', '1') (Line: 74)
Drupal\Core\Field\FieldTypePluginManager->createFieldItemList(Object, 'uid', '1') (Line: 488)
Drupal\Core\Entity\ContentEntityBase->getTranslatedField('uid', 'x-default') (Line: 452)
Drupal\Core\Entity\ContentEntityBase->get('uid') (Line: 76)
Drupal\mp3\Entity\Mp3Source->getOwnerId() (Line: 20)
Drupal\mp3\Mp3SharedAccessControlHandler->checkAccess(Object, 'view', Object) (Line: 93)
Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', Object, ) (Line: 593)
Drupal\Core\Entity\ContentEntityBase->access('view') (Line: 197)
Drupal\views\Plugin\views\argument_validator\Entity->validateEntity(Object) (Line: 179)
Drupal\views\Plugin\views\argument_validator\Entity->validateArgument('3') (Line: 995)
Drupal\views\Plugin\views\argument\ArgumentPluginBase->validateArgument('3') (Line: 1030)
Drupal\views\Plugin\views\argument\ArgumentPluginBase->setArgument('3') (Line: 1090)
Drupal\views\ViewExecutable->_buildArguments() (Line: 1254)
Drupal\views\ViewExecutable->build('page_1') (Line: 1378)
Drupal\views\ViewExecutable->execute('page_1') (Line: 2513)
Drupal\views\ViewExecutable->unserialize('a:9:{i:0;s:16:"source_mp3_files";i:1;s:6:"page_1";i:2;a:1:{i:0;s:1:"3";}i:3;i:0;i:4;a:0:{}i:5;a:0:{}i:6;a:0:{}i:7;s:64:"dbd023f1a6d424cbdfb1853e858d0a73c6a6caed6fc492ada5c866bc5916c59b";i:8;b:1;}')
unserialize(...) (Line: 71)
Drupal\Core\Batch\BatchStorage->load('12') (Line: 75)
Drupal\Core\ProxyClass\Batch\BatchStorage->load('12') (Line: 43)
_batch_page(Object) (Line: 55)
Drupal\system\Controller\BatchController->batchPage(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 652)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
@mikeshiyan
Copy link
Author

Had to cut line 27's argument, 'cause it's very-very long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment