array_walk() expects array, gets null in LinkGenerator->generate()

Created on 30 June 2016, over 8 years ago
Updated 18 February 2023, almost 2 years ago

I started running into this:

Warning: array_walk() expects parameter 1 to be array, null given in Drupal\Core\Utility\LinkGenerator->generate() (line 114 of core/lib/Drupal/Core/Utility/LinkGenerator.php).

Will have a patch posted shortly.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada colan Toronto 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I encountered this problem after upgrading to php8. I am sure that the modification method of this patch package is correct, but when I use the patch package in composer.json, I am prompted that I cannot apply it. I use the composer install -vvv command to get an error : 1 out of 1 hunk FAILED -- saving rejects to file lib/Drupal/Core/Utility/LinkGenerator.php.rej ; I compared the files carefully and found that the content of the patch part is not completely consistent, there are spaces, and the number of lines is inconsistent The problem. Is there any better way to solve this problem? Due to project reasons, it cannot be modified manually.

  • Issue was unassigned.
Production build 0.71.5 2024