Hello, there is an error when a new bootstrap layout builder layout option is created:

to reproduce:
/admin/config/bootstrap-layout-builder/layouts/blb_col_3/options/add

Error:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getNumberOfColumns() on null in Drupal\bootstrap_layout_builder\Form\LayoutOptionForm->validateForm() (line 146 of modules/contrib/bootstrap_layout_builder/src/Form/LayoutOptionForm.php).
Drupal\bootstrap_layout_builder\Form\LayoutOptionForm->validateForm(Array, Object)
call_user_func_array(Array, Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 273)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'blb_layout_option_add_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('blb_layout_option_add_form', Array, Object) (Line: 589)
Drupal\Core\Form\FormBuilder->processForm('blb_layout_option_add_form', Array, Object) (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Image with parameters has been attached

Regards
Freddy

CommentFileSizeAuthor
blb.jpg45 KBfreddy rodriguez

Comments

Freddy Rodriguez created an issue. See original summary.

  • mahmoud-zayed committed 9aa88c5 on 1.x
    Issue #3157526 by mahmoud-zayed: bootstrap layout builder layout option.
    
mahmoud-zayed’s picture

Status: Needs work » Fixed

Thanks, Freddy for catching this, I pushed the fix to 1.x and I am going to release "1.3" tomorrow.

mahmoud-zayed’s picture

Status: Fixed » Closed (fixed)

Added to 1.3 Release.