Needs review
Project:
Pathauto
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
17 Mar 2026 at 09:52 UTC
Updated:
17 Apr 2026 at 03:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
gashunk commentedComment #4
gashunk commentedComment #5
mably commentedCan you give us a full reproducible scenario on a fresh Drupal instance please (Drupal version, PHP version, etc.)?
I haven't been able to reproduce the problem locally.
Could you eventually share the full stack trace of the warning you get?
Comment #6
gashunk commentedHey I can reproduce this using:
Fresh DDEV setup
PHP Version 8.5
Drupal Version ~11.3.0
Only installed Pathauto module
Edit a content type with URL-Alias in the form BUT without a pattern.
Full stack trace:
Hopes that helps!
Comment #7
vinodhini.e commentedHi, Tested on Drupal 11.2.3 with PHP 8.3.21 using a fresh DDEV setup and installed Pathauto module.
Followed the steps:
Content → Media → Add a media item. The media uploaded successfully, and no deprecated warning appeared.
Could you clarify if any additional setup is needed to reproduce this issue? Thanks.
Comment #8
gashunk commentedI updated the description to further pin the issue.
Comment #9
gashunk commentedComment #10
phoang commentedPatch works on 1.x-dev but not applies to 8.1.14
+1 RTBC
Comment #11
ewout goosmannHi,
I had the same issue on php8.5 and pathauto 8.1.14, so I created a patch.
Comment #12
joegraduateIs this issue possibly a duplicate of #3576435: PHP 8.5 deprecation?
Comment #13
joegraduateComment #14
pasan.gamage commentedUpdated patch to work with release 8.x-1.14 PHP 8.5
Comment #15
pasan.gamage commented@joegraduate
Since #3576435 is already closed we may need to fix this here.