Closed (outdated)
Project:
Pathauto
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2020 at 21:31 UTC
Updated:
12 Feb 2026 at 21:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
drupalvikingSetup a fresh instance of Drupal 8.9.9. Then used
composer require 'drupal/pathauto:1.x-dev@dev'to fetch the module. Installed with drush and rebuilt the cache. The error did not occur. Where you using a fresh instance?Comment #4
drupalvikingI can concur that the changes of the module (removing the EntityTypeManager from the form) did not break the module, so the code patch work, generally.
Comment #5
berdirWhat PHP version? Those properties do not have a type declaration? That language feature only exists since PHP 8 and Drupal 8.9 isn't PHP 8 compatible nor would it use syntax that requires PHP 8.
Fine to remove it as that property exists at least since 8.8 in the base class, but don't see why such an error would happen unless you somehow changed core.
Comment #6
adriancid@berdir, is not a fresh install, I have other modules and maybe this is how I found the problem. I don't have any change in core.
I'm using PHP 7.4.3. The site is working well except for some pages where I found the error, after apply the patch where I delete the property all is working fine.
Comment #7
adriancidComment #9
mably commented