Hello Support,

When I upgraded the ui_patterns and ui_patterns_library modules from 1.10.0 to 1.11.0, I noticed all of my drupal 9 sites hosted in Pantheon are crashed and down with errors "The website encountered an unexpected error. Please try again later.". I ran the terminus drush watchdog command and found this error in the log "611 16/Jun 09:21 php Error TypeError: array_unshift(): Argument
#1 ($array) must be of type array,
null given in array_unshift() (line
111 of
/code/web/modules/contrib/ui_patterns
/modules/ui_patterns_layouts/src/Plu

Will you please help to find out how to fix these problems?

Thank you so much for all of your help.

William

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

wmac01 created an issue. See original summary.

wmac01’s picture

Issue summary: View changes
wmac01’s picture

Component: Documentation » Code

jatingupta40 made their first commit to this issue’s fork.

jatingupta40’s picture

Status: Active » Needs review

Hello @wmac01

I have opened an MR. This might help you resolving the issue you are facing.

Thanks.

pdureau’s picture

Assigned: Unassigned » duaelfr

duaelfr made their first commit to this issue’s fork.

  • duaelfr committed 84f6559a on 8.x-1.x authored by jatingupta40
    Issue #3530397: PHP Error after the ui_patterns and ui_patterns_library...
duaelfr’s picture

Assigned: duaelfr » Unassigned
Status: Needs review » Fixed
Issue tags: -TypeError: array_unshift(): Argument #1 ($array) must be of type array, -null given in array_unshift() (line 111 of /code/web/modules/contrib/ui_patterns/modules/ui_patterns_layouts/src/Plu

Good point. Thanks!

Status: Fixed » Closed (fixed)

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