Getting the following error when navigating layout library using claro as an admin theme

Notice: Trying to access array offset on value of type null in Drupal\varbase_layout_builder\Theme\VarbaseLayoutBuilderThemeNegotiator->determineActiveTheme() (line 109 of modules/contrib/varbase_layout_builder/src/Theme/VarbaseLayoutBuilderThemeNegotiator.php).

This is caused by line 108 when trying to access the ['target'] index on null because 'dialogOptions' is not included in the request.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mhawwari created an issue. See original summary.

mhawwari’s picture

Assigned: mhawwari » Unassigned
Status: Active » Needs work

Sorry about the messy merge requests. This the first time I try the new issue fork feature.

rajab natshah’s picture

Thank you Hawwari for reporting and having a fix merge request.
Me too I will try the new merge way for the first time. same as you.
Thanks :)

mhawwari’s picture

Status: Needs work » Needs review

I'm liking it so far :).
Changing to needs review because the MR should fix the issue.

rajab natshah’s picture

Title: Fix error when navigating Layout library Trying to access array offset on value of type null in Drupal\varbase_layout_builder\Theme\VarbaseLayoutBuilderThemeNegotiator->determineActiveTheme() » Fix error when navigating Layout library Trying to access array offset on value of type null in VarbaseLayoutBuilderThemeNegotiator->determineActiveTheme()

  • RajabNatshah committed 9dd6721 on 8.x-1.x authored by mhawwari
    Issue #3190218 by mhawwari: Fix error when navigating Layout library...
rajab natshah’s picture

Tested comments in the MR
They will show up in the issue too.

rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Issue tags: +varbase-8.8.9, +varbase-9.0.0-rc2, +varbase-9.0.0
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Status: Fixed » Closed (fixed)