- Issue created by @devanbicher
- f4150546 committed on 1.0.x
Issue #3491107: getAdditionalMappings() Error when using paragraph...
- f4150546 committed on 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.
When using paragraph library items (a submodule in
Paragraphs β
), when placing a paragraph library item on page, after saving and viewing the page, the page breaks, with a white screen.
Locally we see the following error:
The website encountered an unexpected error. Try again later.
Error: Call to a member function getAdditionalMappings() on null in Drupal\schemadotorg_additional_mappings\SchemaDotOrgAdditionalMappingsJsonLdManager->schemaPropertyAlter() (line 147 of modules/contrib/schemadotorg/modules/schemadotorg_additional_mappings/src/SchemaDotOrgAdditionalMappingsJsonLdManager.php).
schemadotorg_additional_mappings_schemadotorg_jsonld_schema_property_alter() (Line: 552)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 274)
Drupal\schemadotorg_jsonld\SchemaDotOrgJsonLdBuilder->getSchemaPropertyFieldItems() (Line: 207)
Drupal\schemadotorg_jsonld\SchemaDotOrgJsonLdBuilder->buildMappedEntity() (Line: 133)
Drupal\schemadotorg_jsonld\SchemaDotOrgJsonLdBuilder->buildEntity() (Line: 88)
Drupal\schemadotorg_jsonld\SchemaDotOrgJsonLdBuilder->build() (Line: 76)
schemadotorg_jsonld_page_attachments_alter() (Line: 552)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 319)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks() (Line: 285)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 284)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 53)
Asm89\Stack\Cors->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 38)
Drupal\mercury_editor\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
Some additional context is that we are using mercury editor β to build our pages which in turn relies on layout paragraphs β .
The issue still lies within the schemadotorg submodule, schemadotorg_additional_mappings.
But additional context is always useful
Implement the patch included in this issue to fix the problem.
Active
1.0
Code
Issue #3491107: getAdditionalMappings() Error when using paragraph...
Automatically closed - issue fixed for 2 weeks with no activity.