Hi,
After I have been installed Display Suite and Layout plugin, 4 modules have been enabled: Display Suite, Display Suite Extras, Display Suite Switch View Mode, Layout Plugin, but it has been an error written on the Extend page:
Error is a PHP notice only:
------------------------------
Notice: Undefined index: ds_switch in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables() (line 554 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromSharedTables(Array, Array) (Line: 481)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->mapFromStorageRecords(Array) (Line: 433)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage(Array) (Line: 399)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) (Line: 242)
Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) (Line: 212)
Drupal\Core\Entity\EntityStorageBase->load('1') (Line: 186)
Drupal\Core\Session\AccountProxy->loadUserEntity('1') (Line: 54)
Drupal\Core\Session\AccountProxy->getAccount() (Line: 75)
Drupal\Core\Session\AccountProxy->getRoles() (Line: 115)
Drupal\locale\LocaleLookup->getCid() (Line: 327)
Drupal\Core\Cache\CacheCollector->lazyLoadCache() (Line: 143)
Drupal\Core\Cache\CacheCollector->get('Content type') (Line: 118)
Drupal\locale\LocaleTranslation->getStringTranslation('hu', 'Content type', '') (Line: 97)
Drupal\Core\StringTranslation\TranslationManager->getStringTranslation('hu', 'Content type', '') (Line: 145)
Drupal\Core\StringTranslation\TranslationManager->doTranslate('Content type', Array) (Line: 117)
Drupal\Core\StringTranslation\TranslationManager->translateString(Object) (Line: 199)
Drupal\Core\StringTranslation\TranslatableMarkup->render() (Line: 15)
Drupal\Core\StringTranslation\TranslatableMarkup->__toString() (Line: 681)
Drupal\Core\Entity\EntityType->getBundleLabel() (Line: 1156)
Drupal\Core\Entity\ContentEntityBase::baseFieldDefinitions(Object) (Line: 329)
Drupal\node\Entity\Node::baseFieldDefinitions(Object) (Line: 204)
Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions('node') (Line: 171)
Drupal\Core\Entity\EntityFieldManager->getBaseFieldDefinitions('node') (Line: 134)
Drupal\Core\Entity\EntityManager->getBaseFieldDefinitions('node') (Line: 70)
Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::propertyDefinitions(Object) (Line: 116)
Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::schema(Object) (Line: 634)
Drupal\Core\Field\BaseFieldDefinition->getSchema() (Line: 657)
Drupal\Core\Field\BaseFieldDefinition->getColumns() (Line: 189)
Drupal\Core\Entity\Sql\DefaultTableMapping->getColumnNames('entity_id') (Line: 532)
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->getEntitySchema(Object, ) (Line: 18)
Drupal\comment\CommentStorageSchema->getEntitySchema(Object) (Line: 1171)
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->createSharedTableSchema(Object, NULL) (Line: 1091)
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->performFieldSchemaOperation('create', Object) (Line: 386)
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->onFieldStorageDefinitionCreate(Object) (Line: 1397)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->Drupal\Core\Entity\Sql\{closure}() (Line: 1452)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->wrapSchemaException(Object) (Line: 1398)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->onFieldStorageDefinitionCreate(Object) (Line: 74)
Drupal\Core\Field\FieldStorageDefinitionListener->onFieldStorageDefinitionCreate(Object) (Line: 409)
Drupal\Core\Entity\EntityManager->onFieldStorageDefinitionCreate(Object) (Line: 169)
Drupal\Core\Entity\EntityDefinitionUpdateManager->installFieldStorageDefinition('ds_switch', 'comment', 'ds_switch_view_mode', Object) (Line: 231)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 171)
Drupal\system\Form\ModulesListConfirmForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 583)
Drupal\Core\Form\FormBuilder->processForm('system_modules_confirm_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('system_modules_confirm_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, 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: 139)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 62)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 98)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 77)
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: 628)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
---------------------------------------------
Details:
----------
project: 'ds'
version: '8.x-2.3'
---
project: layout_plugin
version: 8.x-1.0-alpha22
--
Drupal Core: 8.1.1
--
PHP version: 7.0.6
Web-Server nginx 1.10
Comment | File | Size | Author |
---|---|---|---|
#5 | 2734855-5.patch | 662 bytes | Anonymous (not verified) |
#3 | ds_switch_message.txt | 3.89 KB | ABaier |
Comments
Comment #2
aspilicious CreditAttribution: aspilicious commentedCan you try a reinstall?
Comment #3
ABaier CreditAttribution: ABaier commentedI can confirm this notice after the installation of
Display Suite Switch View Mode
. Uninstalling and installing the latest dev of display suite did not solve the problem. I attached my (slightely different) notice also. After starting the installation a whitescreen with the php notice appears before fetching translations.Drupal 8.1.7
ds 8.x-2.5+8-dev
layout_plugin 8.x-1.0-alpha22+7-dev
php 5.6.10
apache (MAMP)
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedConfrim for 8.2.2. Reproduce: install (or uninstall and install again) module "Display Suite Switch View Mode".
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedIt happens when
and as result
but
$row
haven't ds_switch key:Interesting fact that $row also haven't key 'preferred_admin_langcode', but this does not cause problems.
This patch solves the problem 'Undefined index: ds_switch' via set custom storage, but I'm not sure of its suitability. Also helpful filter by type 'node', like patch from #2770171: DatabaseExceptionWrapper: SQLSTATE[42S22], or maybe like code:
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedTypo with related issues, sorry.
Comment #7
lizperalta CreditAttribution: lizperalta as a volunteer commentedThis post has been very helpful, because I am getting the 500 Internal server error and it started happening after installing the ds display module. I have been trying to troubleshoot the problem and came across this. The error log indicates that the problem is with ds switch portion. I want to try this patch, but I am not understanding how to install it on the server running drupal. Any help would be great!
Comment #8
aspilicious CreditAttribution: aspilicious commentedDuplicate of #2770171: DatabaseExceptionWrapper: SQLSTATE[42S22] which is fixed.
Comment #9
aspilicious CreditAttribution: aspilicious commented