Closed (fixed)
Project:
Pathauto
Version:
8.x-1.15
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 May 2026 at 16:17 UTC
Updated:
5 Jun 2026 at 21:05 UTC
Jump to comment: Most recent
I have enable pathauto 8.x-1.5 module in drupal 11 through composer. I am getting below error.
Fatal error: Cannot redeclare function pathauto_token_info() (previously declared in /var/www/html/modules/contrib/pathauto/pathauto.module:121) in /var/www/html/modules/contrib/pathauto/pathauto.tokens.inc on line 13
Comments
Comment #2
berdirPathauto 8.x-1.15 does not have a tokens.inc file. It does not sounds like you used composer but replaced the files over the existing ones. Delete the current pathauto files and cleanly install them.