APP_URL Änderung bringt Error Code 500

Hallo,
ich experimentiere gerade mit mittlerweile Shopware 6.5.
Bei jedem login im Admin kam der Hinweis, daß die APP_URL nicht korrekt sei.
In der .env stand aber die korrekte URL drin. War mir erstmal egal. Funktionierte ja auch trotzdem.
Nun wollte ich aber eine Erweiterung installieren. Da dieser Hinweis wieder kam, dachte ich ich schau hier mal weiter.
Aha. Es gibt ja noch die .env.local. Und dort stand dann auch was mit /public.
Dort habe ich die korrekte URL eingetragen und den Shop neu geladen.
Mit dem Ergebnis, daß sowohl frontend als auch backend Error Code 500 zeigen.
Das CLI mit zum Beispiel bin/console plugin:list wirft Fehlermeldungen aus.
Zum Beispiel:

PHP Warning:  require(/var/customers/webs/xxxXXX/yyyYYY.de/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): Failed to open stream: No such file or directory in /var/customers/webs/xxxXXX/yyyYYY.de/vendor/composer/autoload_real.php on line 41

Der Aufruf der Subdomain ist im Webserver korrekt auf den Inhalt des public Ordners geroutet.
Ich weiss leider nicht mehr genau was in der .env.local genau stand und kann es nicht mehr rückgängig machen.

Ich stehe gerade auf dem Schlauch und weiß nicht genau, wie ich hier jetzt vorgehe um die Seite wieder zum Laufen zu bekommen und ich hoffe auf hilfreichen Input von euch.

Hat das was mit composer cache zu tun? Vielleicht cache auf ftp Ebene löschen?
var/cache?

Danke und grüße
Richard

Guten Morgen,
keiner eine Idee?

Die Fehler aind durch die Erweiterung FroshDevelopmentHelper entstanden.
Es wurden Ordner angelegt, aber nicht befüllt.
Bildschirmfoto 2024-03-15 um 09.56.16

Die Log Datei unter /var/log zeigt den Installationsvorgang:

[2024-03-14T15:32:06.895004+00:00] request.ERROR: Uncaught PHP Exception Shopware\Core\Framework\Plugin\Exception\PluginComposerRequireException: "Could not execute "composer require" for plugin "FroshDevelopmentHelper (frosh/development-helper:1.0.3). Output: ./composer.json has been updated Running composer update frosh/development-helper --with-dependencies Loading composer repositories with package information <warning>Dependency shopware/core is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.</warning> Updating dependencies Lock file operations: 5 installs, 20 updates, 0 removals   - Upgrading composer/pcre (3.1.0 => 3.1.2)   - Upgrading composer/semver (3.3.2 => 3.4.0)   - Upgrading doctrine/deprecations (v1.0.0 => 1.1.3)   - Upgrading doctrine/lexer (2.1.0 => 2.1.1)   - Locking friendsofphp/php-cs-fixer (v3.51.0)   - Locking frosh/development-helper (1.0.3)   - Locking nikic/php-parser (v5.0.2)   - Locking psy/psysh (v0.12.0)   - Locking sebastian/diff (5.1.1)   - Upgrading symfony/console (v6.2.10 => v6.2.13)   - Upgrading symfony/event-dispatcher (v6.2.8 => v6.2.13)   - Upgrading symfony/filesystem (v6.2.10 => v6.2.12)   - Upgrading symfony/finder (v6.2.7 => v6.2.14)   - Upgrading symfony/http-client-contracts (v3.2.1 => v3.4.0)   - Upgrading symfony/polyfill-ctype (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-intl-grapheme (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-intl-normalizer (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-mbstring (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-php72 (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-php73 (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-php80 (v1.27.0 => v1.29.0)   - Upgrading symfony/polyfill-php81 (v1.27.0 => v1.29.0)   - Upgrading symfony/process (v6.2.10 => v6.2.13)   - Upgrading symfony/string (v6.2.8 => v6.4.4)   - Upgrading symfony/var-dumper (v6.2.10 => v6.4.4) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 5 installs, 20 updates, 0 removals   - Downloading symfony/http-client-contracts (v3.4.0)   - Downloading symfony/process (v6.2.13)   - Downloading symfony/polyfill-php81 (v1.29.0)   - Downloading symfony/polyfill-php80 (v1.29.0)   - Downloading symfony/polyfill-php73 (v1.29.0)   - Downloading symfony/finder (v6.2.14)   - Downloading symfony/polyfill-mbstring (v1.29.0)   - Downloading symfony/polyfill-ctype (v1.29.0)   - Downloading symfony/filesystem (v6.2.12)   - Downloading symfony/polyfill-intl-normalizer (v1.29.0)   - Downloading symfony/polyfill-intl-grapheme (v1.29.0)   - Downloading symfony/string (v6.4.4)   - Downloading symfony/console (v6.2.13)   - Downloading composer/pcre (3.1.2)   - Downloading composer/semver (3.4.0)   - Downloading doctrine/deprecations (1.1.3)   - Downloading doctrine/lexer (2.1.1)   - Downloading symfony/event-dispatcher (v6.2.13)   - Downloading symfony/var-dumper (v6.4.4)   - Downloading symfony/polyfill-php72 (v1.29.0)   - Downloading nikic/php-parser (v5.0.2)   - Downloading psy/psysh (v0.12.0)   - Downloading sebastian/diff (5.1.1)   - Downloading friendsofphp/php-cs-fixer (v3.51.0)   0/24 [>---------------------------]   0%   9/24 [==========>-----------------]  37%  18/24 [=====================>------]  75%  21/24 [========================>---]  87%  23/24 [==========================>-]  95%  24/24 [============================] 100%   - Upgrading symfony/http-client-contracts (v3.2.1 => v3.4.0): Extracting archive   - Upgrading symfony/process (v6.2.10 => v6.2.13): Extracting archive   - Upgrading symfony/polyfill-php81 (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/polyfill-php80 (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/polyfill-php73 (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/finder (v6.2.7 => v6.2.14): Extracting archive   - Upgrading symfony/polyfill-mbstring (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/polyfill-ctype (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/filesystem (v6.2.10 => v6.2.12): Extracting archive   - Upgrading symfony/polyfill-intl-normalizer (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/polyfill-intl-grapheme (v1.27.0 => v1.29.0): Extracting archive   - Upgrading symfony/string (v6.2.8 => v6.4.4): Extracting archive   - Upgrading symfony/console (v6.2.10 => v6.2.13): Extracting archive   - Upgrading composer/pcre (3.1.0 => 3.1.2): Extracting archive   - Upgrading composer/semver (3.3.2 => 3.4.0): Extracting archive   - Upgrading doctrine/deprecations (v1.0.0 => 1.1.3): Extracting archive   - Upgrading doctrine/lexer (2.1.0 => 2.1.1): Extracting archive   - Upgrading symfony/event-dispatcher (v6.2.8 => v6.2.13): Extracting archive     Update of symfony/var-dumper failed   - Upgrading symfony/polyfill-php72 (v1.27.0 => v1.29.0): Extracting archive   - Installing nikic/php-parser (v5.0.2): Extracting archive     Install of nikic/php-parser failed   - Installing psy/psysh (v0.12.0): Extracting archive     Install of psy/psysh failed   - Installing sebastian/diff (5.1.1): Extracting archive     Install of sebastian/diff failed   - Installing friendsofphp/php-cs-fixer (v3.51.0): Extracting archive     Install of friendsofphp/php-cs-fixer failed   - Installing frosh/development-helper (1.0.3): Symlinking from custom/plugins/FroshDevelopmentHelper     Install of frosh/development-helper failed     Update of symfony/http-client-contracts failed     Update of symfony/process failed     Update of symfony/polyfill-php81 failed     Update of symfony/polyfill-php80 failed     Update of symfony/polyfill-php73 failed     Update of symfony/finder failed     Update of symfony/polyfill-mbstring failed     Update of symfony/polyfill-ctype failed     Update of symfony/filesystem failed     Update of symfony/polyfill-intl-normalizer failed  0/9 [>---------------------------]   0%    Update of symfony/polyfill-intl-grapheme failed     Update of symfony/string failed     Update of symfony/console failed     Update of composer/pcre failed     Update of composer/semver failed     Update of doctrine/deprecations failed     Update of doctrine/lexer failed     Update of symfony/event-dispatcher failed     Update of symfony/polyfill-php72 failed   9/9 [============================] 100% In ClassLoader.php line 582:                                                                                   include(/var/customers/webs/PROJEKT/vendor/composer/.     ./symfony/finder/Comparator/NumberComparator.php): Failed to open stream: N     o such file or directory                                                                                                                                       require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]  " at /var/customers/webs/PROJEKT/vendor/shopware/core/Framework/Plugin/Composer/CommandExecutor.php line 46 {"exception":"[object] (Shopware\\Core\\Framework\\Plugin\\Exception\\PluginComposerRequireException(code: 0): Could not execute \"composer require\" for plugin \"FroshDevelopmentHelper (frosh/development-helper:1.0.3). Output:\n./composer.json has been updated\nRunning composer update frosh/development-helper --with-dependencies\nLoading composer repositories with package information\n<warning>Dependency shopware/core is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.</warning>\nUpdating dependencies\nLock file operations: 5 installs, 20 updates, 0 removals\n  - Upgrading composer/pcre (3.1.0 => 3.1.2)\n  - Upgrading composer/semver (3.3.2 => 3.4.0)\n  - Upgrading doctrine/deprecations (v1.0.0 => 1.1.3)\n  - Upgrading doctrine/lexer (2.1.0 => 2.1.1)\n  - Locking friendsofphp/php-cs-fixer (v3.51.0)\n  - Locking frosh/development-helper (1.0.3)\n  - Locking nikic/php-parser (v5.0.2)\n  - Locking psy/psysh (v0.12.0)\n  - Locking sebastian/diff (5.1.1)\n  - Upgrading symfony/console (v6.2.10 => v6.2.13)\n  - Upgrading symfony/event-dispatcher (v6.2.8 => v6.2.13)\n  - Upgrading symfony/filesystem (v6.2.10 => v6.2.12)\n  - Upgrading symfony/finder (v6.2.7 => v6.2.14)\n  - Upgrading symfony/http-client-contracts (v3.2.1 => v3.4.0)\n  - Upgrading symfony/polyfill-ctype (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-intl-grapheme (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-intl-normalizer (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-mbstring (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-php72 (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-php73 (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-php80 (v1.27.0 => v1.29.0)\n  - Upgrading symfony/polyfill-php81 (v1.27.0 => v1.29.0)\n  - Upgrading symfony/process (v6.2.10 => v6.2.13)\n  - Upgrading symfony/string (v6.2.8 => v6.4.4)\n  - Upgrading symfony/var-dumper (v6.2.10 => v6.4.4)\nWriting lock file\nInstalling dependencies from lock file (including require-dev)\nPackage operations: 5 installs, 20 updates, 0 removals\n  - Downloading symfony/http-client-contracts (v3.4.0)\n  - Downloading symfony/process (v6.2.13)\n  - Downloading symfony/polyfill-php81 (v1.29.0)\n  - Downloading symfony/polyfill-php80 (v1.29.0)\n  - Downloading symfony/polyfill-php73 (v1.29.0)\n  - Downloading symfony/finder (v6.2.14)\n  - Downloading symfony/polyfill-mbstring (v1.29.0)\n  - Downloading symfony/polyfill-ctype (v1.29.0)\n  - Downloading symfony/filesystem (v6.2.12)\n  - Downloading symfony/polyfill-intl-normalizer (v1.29.0)\n  - Downloading symfony/polyfill-intl-grapheme (v1.29.0)\n  - Downloading symfony/string (v6.4.4)\n  - Downloading symfony/console (v6.2.13)\n  - Downloading composer/pcre (3.1.2)\n  - Downloading composer/semver (3.4.0)\n  - Downloading doctrine/deprecations (1.1.3)\n  - Downloading doctrine/lexer (2.1.1)\n  - Downloading symfony/event-dispatcher (v6.2.13)\n  - Downloading symfony/var-dumper (v6.4.4)\n  - Downloading symfony/polyfill-php72 (v1.29.0)\n  - Downloading nikic/php-parser (v5.0.2)\n  - Downloading psy/psysh (v0.12.0)\n  - Downloading sebastian/diff (5.1.1)\n  - Downloading friendsofphp/php-cs-fixer (v3.51.0)\n  0/24 [>---------------------------]   0%\n  9/24 [==========>-----------------]  37%\n 18/24 [=====================>------]  75%\n 21/24 [========================>---]  87%\n 23/24 [==========================>-]  95%\n 24/24 [============================] 100%\n  - Upgrading symfony/http-client-contracts (v3.2.1 => v3.4.0): Extracting archive\n  - Upgrading symfony/process (v6.2.10 => v6.2.13): Extracting archive\n  - Upgrading symfony/polyfill-php81 (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/polyfill-php80 (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/polyfill-php73 (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/finder (v6.2.7 => v6.2.14): Extracting archive\n  - Upgrading symfony/polyfill-mbstring (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/polyfill-ctype (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/filesystem (v6.2.10 => v6.2.12): Extracting archive\n  - Upgrading symfony/polyfill-intl-normalizer (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/polyfill-intl-grapheme (v1.27.0 => v1.29.0): Extracting archive\n  - Upgrading symfony/string (v6.2.8 => v6.4.4): Extracting archive\n  - Upgrading symfony/console (v6.2.10 => v6.2.13): Extracting archive\n  - Upgrading composer/pcre (3.1.0 => 3.1.2): Extracting archive\n  - Upgrading composer/semver (3.3.2 => 3.4.0): Extracting archive\n  - Upgrading doctrine/deprecations (v1.0.0 => 1.1.3): Extracting archive\n  - Upgrading doctrine/lexer (2.1.0 => 2.1.1): Extracting archive\n  - Upgrading symfony/event-dispatcher (v6.2.8 => v6.2.13): Extracting archive\n    Update of symfony/var-dumper failed\n  - Upgrading symfony/polyfill-php72 (v1.27.0 => v1.29.0): Extracting archive\n  - Installing nikic/php-parser (v5.0.2): Extracting archive\n    Install of nikic/php-parser failed\n  - Installing psy/psysh (v0.12.0): Extracting archive\n    Install of psy/psysh failed\n  - Installing sebastian/diff (5.1.1): Extracting archive\n    Install of sebastian/diff failed\n  - Installing friendsofphp/php-cs-fixer (v3.51.0): Extracting archive\n    Install of friendsofphp/php-cs-fixer failed\n  - Installing frosh/development-helper (1.0.3): Symlinking from custom/plugins/FroshDevelopmentHelper\n    Install of frosh/development-helper failed\n    Update of symfony/http-client-contracts failed\n    Update of symfony/process failed\n    Update of symfony/polyfill-php81 failed\n    Update of symfony/polyfill-php80 failed\n    Update of symfony/polyfill-php73 failed\n    Update of symfony/finder failed\n    Update of symfony/polyfill-mbstring failed\n    Update of symfony/polyfill-ctype failed\n    Update of symfony/filesystem failed\n    Update of symfony/polyfill-intl-normalizer failed\n 0/9 [>---------------------------]   0%    Update of symfony/polyfill-intl-grapheme failed\n    Update of symfony/string failed\n    Update of symfony/console failed\n    Update of composer/pcre failed\n    Update of composer/semver failed\n    Update of doctrine/deprecations failed\n    Update of doctrine/lexer failed\n    Update of symfony/event-dispatcher failed\n    Update of symfony/polyfill-php72 failed\n\n 9/9 [============================] 100%\nIn ClassLoader.php line 582:\n                                                                               \n  include(/var/customers/webs/PROJEKT/vendor/composer/.  \n  ./symfony/finder/Comparator/NumberComparator.php): Failed to open stream: N  \n  o such file or directory                                                     \n                                                                               \n\nrequire [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]\n\n at /var/customers/webs/PROJEKT/vendor/shopware/core/Framework/Plugin/Composer/CommandExecutor.php:46)"} []

Irgendwie wurde composer geändert? Kann ich die Änderungen rückgängig machen?

Was ich gerne nachvollziehen möchte:
Wo wurde der Pfad von zum Beispiel bin/console geändert? Warum sucht bin/console die Datei polyfill-mbstring/bootstrap.php

PHP Warning:  require(/var/customers/webs/projekt.de/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): Failed to open stream: No such file or directory in /var/customers/webs/projekt.de/vendor/composer/autoload_real.php on line 41

Wie kann ich die Erweiterung löschen und Änderungen rückgängig machen?

Ich hoffe ihr könnt mir weiterhelfen.

ich habe nun Shopware parallel neu installiert und einfach mal die Ordnerstruktur verglichen.
Die leeren Ordner wurde nicht von der Erweiterung angelegt, aber anscheinend geleert.

Ich habe auf doof einfach mal alle fehlenden Dateien aus der Neuinstallation kopiert.

bin/console fragt nun nicht mehr nach fehlenden Dateien, aber ich bekomme nun folgenden Fehler:

PHP Fatal error:  Uncaught Error: Cannot use object of type Doctrine\Common\Lexer\Token as array in /var/customers/webs/projekt.de/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:691
Stack trace:
#0 /var/customers/webs/projekt.de/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(377): Doctrine\Common\Annotations\DocParser->Annotations()
#1 /var/customers/webs/projekt.de/vendor/shopware/core/Framework/DependencyInjection/CompilerPass/ActionEventCompilerPass.php(46): Doctrine\Common\Annotations\DocParser->parse()
#2 /var/customers/webs/projekt.de/vendor/shopware/core/Framework/DependencyInjection/CompilerPass/ActionEventCompilerPass.php(22): Shopware\Core\Framework\DependencyInjection\CompilerPass\ActionEventCompilerPass->getEventClasses()
#3 /var/customers/webs/projekt.de/vendor/symfony/dependency-injection/Compiler/Compiler.php(73): Shopware\Core\Framework\DependencyInjection\CompilerPass\ActionEventCompilerPass->process()
#4 /var/customers/webs/projekt.de/vendor/symfony/dependency-injection/ContainerBuilder.php(721): Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
#5 /var/customers/webs/projekt.de/vendor/symfony/http-kernel/Kernel.php(487): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#6 /var/customers/webs/projekt.de/vendor/shopware/core/Kernel.php(166): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#7 /var/customers/webs/projekt.de/bin/console(51): Shopware\Core\Kernel->boot()
#8 /var/customers/webs/projekt.de/vendor/autoload_runtime.php(24): {closure}()
#9 /var/customers/webs/projekt.de/bin/console(15): require_once('...')
#10 {main}
  thrown in /var/customers/webs/projekt.de/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php on line 691

Kann da einer was mit anfangen?