The following error occurs :

Trying to access array offset on value of type null in Drupal\block_class\Service\BlockClassHelperService->validateDynamicClasses() (line 934 of docroot/modules/contrib/block_class/src/Service/BlockClassHelperService.php)

CommentFileSizeAuthor
#5 block_class-3312035.patch731 byteskishor_kolekar

Comments

kishor_kolekar created an issue. See original summary.

kishor_kolekar’s picture

Issue summary: View changes
kishor_kolekar’s picture

Issue summary: View changes
kishor_kolekar’s picture

Issue summary: View changes
kishor_kolekar’s picture

StatusFileSize
new731 bytes
kishor_kolekar’s picture

Assigned: kishor_kolekar » Unassigned
Status: Active » Needs review
renatog’s picture

Status: Needs review » Reviewed & tested by the community

Makes sense this verification

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Moved to the dev branch

Thanks a lot for your contribution

  • ae908d9 committed on 2.0.x
    Issue #3312035 by kishor_kolekar, RenatoG: Warning: Trying to access...
renatog’s picture

trickfun’s picture

Different error in 2.0.5

The website encountered an unexpected error. Please try again later.
Error: Cannot unset offset in a non-array variable in Drupal\block_class\Service\BlockClassHelperService->validateDynamicClasses() (line 961 of modules/contrib/block_class/src/Service/BlockClassHelperService.php).
Drupal\block_class\Service\BlockClassHelperService->validateDynamicClasses(Array, Object, Object) (Line: 903)
Drupal\block_class\Service\BlockClassHelperService->blockClassFormValidate(Array, Object) (Line: 145)
block_class_form_block_form_validate(Array, Object)
call_user_func_array('block_class_form_block_form_validate', Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 275)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'block_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('block_form', Array, Object) (Line: 588)
Drupal\Core\Form\FormBuilder->processForm('block_form', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 27)
Drupal\block\Controller\BlockAddController->blockAddConfigureForm('block_content:77f99b35-8f98-427e-bba8-e8bc3dddb793', 'landing2_frontend')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
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: 159)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
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: 130)
Drupal\cdn\StackMiddleware\DuplicateContentPreventionMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
ericdsd’s picture

I have the same issue as trickfun, shouldn't we open a new issue?

  • 066fd97 committed on 2.0.x
    Issue #3312035 by kishor_kolekar, RenatoG, trickfun, ericdsd: Warning:...
renatog’s picture

Moved the fix to the 2.0.x-dev dev branch

@trickfun and @ericdsd could you see if it was solved now, please?

trickfun’s picture

Fixed.
Thank you

renatog’s picture

Awesome. Thanks

Launched the new release with the fix: 2.0.6

ericdsd’s picture

Thanks a lot, it's fixed for me too.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.