PHP Fatal error when installing the module

Created on 9 August 2024, 8 months ago
Updated 19 September 2024, 7 months ago

Problem/Motivation

When the module is installed an error is triggered:

PHP Fatal error:  Cannot declare class Drupal\languagewire_tmgmt_connector\Domain\ProjectManager, because the name is already in use in /var/www/html/web/modules/development/languagewire_translation_provider/src/Domain/ProjectManager.php on line 15

Tested on a Drupal 10.3.2.

After this, most drush command fails:

AssertionError: Instead of using replacing Drush's logger, use $this->add() on DrushLoggerManager to add a custom logger. See https://github.com/drush-ops/drush/pull/5022 in assert() (line 76 of /var/www/html/vendor/drush/drush/src/Commands/DrushCommands.php)

However, it is not clear if this is directly related to the module or a bug in drush.

Steps to reproduce

Download and install the module using drush or the web interface.

Proposed resolution

TBD.

Remaining tasks

TBD.

User interface changes

None.

API changes

TBD.

Data model changes

TBD.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇪🇸Spain tunic Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024