hello ... hi, I have this issue when I try to update.php what this means?
PHP Fatal error: Cannot redeclare commerce_cattributes_alter_element() (previously declared in /var/www/html/pcrepair/web/modules/contrib/commerce_xattributes/modules/commerce_cattributes/commerce_cattributes.module:45) in /var/www/html/pcrepair/web/modules/contrib/commerce_xattributes/modules/commerce_cattributes/commerce_cattributes.module on line 45

Comments

nor sairi created an issue. See original summary.

drugan’s picture

Thank you for the report.

I'll look into it in the next few days but for now, as a quick fix, you can go to /var/www/html/pcrepair/web/modules/contrib/commerce_xattributes/modules/commerce_cattributes/commerce_cattributes.module and just comment out the entire function commerce_cattributes_element_info_alter(array &$info) {} block. Then, run the update.php as usual and uncomment the function back again.

ahsanalishahid’s picture

I am also experiencing the same problem.

  • drugan committed 37b6d51 on 8.x-1.x
    Issue #3059450 by drugan:  PHP Fatal error:  Cannot redeclare...
drugan’s picture

Status: Active » Fixed
Issue tags: -

Seems the error was related to the new type of the core version in a .info.yml files.

I've tried to run update.php against Drupal 9.0 / Drupal Commerce 2.21 and seems there is no errors.

Feel free to reopen the issue if the error persist.

Status: Fixed » Closed (fixed)

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