Problem/Motivation
( ! ) Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/web/modules/contrib/pathauto/src/PathautoGenerator.php on line 325
This seems to happen because when creating a new node $entity->id() is NULL when caching the pattern.
Not sure if it's worth caching in this case so I adjusted it to return the pattern directly.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | pathauto-php85-3576435.patch | 589 bytes | jamesoakley |
Issue fork pathauto-3576435
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
Comment #3
hydra commentedComment #4
jamesoakleyI've tested a site with the same error, and applying your MR solved the problem.
Comment #5
mably commentedComment #6
jamesoakleyHere's a patch, not to apply to the current HEAD, because it won't apply and the merge request works (hence this is RTBC).
This will patch released 8.x-1.14 to resolve the problem with PHP 8.5, so that site builders don't have to move over to -dev (which has quite a few other commits since 8.x-1.14) just to get this one fix. It's a patch to fix this until we have a stable release of pathauto that includes the full solution
Comment #7
mably commentedWe’re hoping to have a new release out soon 🤞
Comment #8
berdirFine to return early here.
Comment #10
mably commented