Wenn du bei der Installation einer Erweiterung die Fehlermeldung Cannot redeclare
Franzose
erhältst, kann dies daran liegen, dass du gerade versuchst, eine Erweiterung über die Shop Admin zu installieren, obwohl du zuvor bereits Erweiterungen per Composer installiert hast.
Fatal error: Cannot redeclare Franzose\DoctrineBulkInsert\sql() (previously declared in /var/www/html/vendor/franzose/doctrine-bulk-insert/src/functions.php:9) in /var/www/html/custom/plugins/PickwarePos/vendor/franzose/doctrine-bulk-insert/src/functions.php on line 20
Symfony\Component\ErrorHandler\Error\FatalError^ {#63
#message: "Compile Error: Cannot redeclare Franzose\DoctrineBulkInsert\sql() (previously declared in /var/www/html/vendor/franzose/doctrine-bulk-insert/src/functions.php:9)"
#code: 0
#file: "/var/www/html/custom/plugins/PickwarePos/vendor/franzose/doctrine-bulk-insert/src/functions.php"
#line: 20
-error: array:4 [
"type" => 64
"message" => "Cannot redeclare Franzose\DoctrineBulkInsert\sql() (previously declared in /var/www/html/vendor/franzose/doctrine-bulk-insert/src/functions.php:9)"
"file" => "/var/www/html/custom/plugins/PickwarePos/vendor/franzose/doctrine-bulk-insert/src/functions.php"
"line" => 20
]
}
Grundsätzlich musst du dich bei der Installation deiner Erweiterungen gesamt gesehen für eine Variante entscheiden: Installation per Composer oder Installation per Admin. Um das vorliegende Problem zu lösen, muss die betreffende Erweiterung demnach ebenfalls per Composer installiert werden.
Mehr Informationen zu den verschiedenen Möglichkeiten der Installation findest du hier: