Hello. Thank you for a nice module. I tried adding Cheeseburger Menu block through Panelizer Module → but I am getting these errors:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function getEntity() on null in Drupal\cheeseburger_menu\Plugin\Block\CheeseburgerMenu->blockSubmit() (line 453 of modules/contrib/cheeseburger_menu/src/Plugin/Block/CheeseburgerMenu.php).
Drupal\cheeseburger_menu\Plugin\Block\CheeseburgerMenu->blockSubmit(Array, Object) (Line: 229)
Drupal\Core\Block\BlockBase->submitConfigurationForm(Array, Object) (Line: 172)
Drupal\panels\Form\PanelsBlockConfigureFormBase->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: 590)
Drupal\Core\Form\FormBuilder->processForm('panels_add_block_form', Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
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}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Also there is a typo in file CheeseburgerMenu.php at block info annotation. Block is named cheesebuger_menu_block instead of cheeseburger_menu_block:
/**
* Block info.
*
* @Block(
* id = "cheeseburger_menu_block",
* admin_label = @Translation("Cheeseburger Menu"),
* category = @Translation("Block"),
* description = @Translation("Provide cheeseburgermenu block")
* )
*/
After I try to add block through panelizer and get back to Drupal core block layout I am getting this notice:
Notice: Undefined index: callback_object in Drupal\Core\Form\FormState->getFormObject() (line 1166 of core/lib/Drupal/Core/Form/FormState.php).
Drupal\Core\Form\FormState->getFormObject() (Line: 453)
Drupal\cheeseburger_menu\Plugin\Block\CheeseburgerMenu->blockSubmit(Array, Object) (Line: 229)
Drupal\Core\Block\BlockBase->submitConfigurationForm(Array, Object) (Line: 172)
Drupal\panels\Form\PanelsBlockConfigureFormBase->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: 590)
Drupal\Core\Form\FormBuilder->processForm('panels_add_block_form', Array, Object) (Line: 319)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
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}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Panelizer works well with other blocks both core, contrib and custom.
Closed: won't fix
4.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.