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

flutterstack created an issue. See original summary.

berdir’s picture

Category: Bug report » Support request
Priority: Critical » Normal
Status: Active » Fixed

Pathauto 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.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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