Bug #102609
openWrong processing order while installing extensions
0%
Description
Hello,
yesterday I tried to install my mysqlreport extension on a TYPO3 11 LIVE system configured as standalone. Instantly the website crashes with error 500. In logs I found that file XY of my mysqlreport extension could not be found. I logged into InstallTool, click button for AutoLoader and website is running again.
Today I have removed the dev-main version of our extension bynder2 from a composer based TYPO3 11 and directly installed bynder2 in version 2.0.3 afterwards. TYPO3 crashes because of too less arguments for bynder2 Configuration/ExtConf constructor. I have searched the cached DI file in var/cache/code/DI, but there are no "Bynder" entries available. I have visited the InstallTool, click Flush Cache (which also rebuilds this cache file), and the error was gone.
It seems that TYPO3 has a wrong extension installation process order
Stefan
Updated by Stefan Froemken 12 months ago
Here is a "screenshot" of my shell
➜ ext git:(master) ✗ ddev composer remove jweiland/bynder2 The TYPO3 extension package "apache-solr-for-typo3/solrfal", does not define an extension key in its composer.json. Please report this to the author of this package. Specifying the extension key will be mandatory in future versions of TYPO3 (see: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/ComposerJson.html#extra) ./composer.json has been updated Running composer update jweiland/bynder2 Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 0 updates, 4 removals - Removing bynder/bynder-php-sdk (2.1.5) - Removing jweiland/bynder2 (dev-main 578b731) - Removing league/oauth2-client (2.6.1) - Removing paragonie/random_compat (v9.99.100) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 0 updates, 4 removals - Removing paragonie/random_compat (v9.99.100) - Removing league/oauth2-client (2.6.1) - Removing jweiland/bynder2 (dev-main 578b731) - Removing bynder/bynder-php-sdk (2.1.5) Package php-cs-fixer/diff is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files Generating class alias map file > typo3cms install:fixfolderstructure No action performed! 80 packages you are using are looking for funding. Use the `composer fund` command to find out more! No security vulnerability advisories found. ➜ ext git:(master) ✗ ddev composer req jweiland/bynder2 ^2.0 The TYPO3 extension package "apache-solr-for-typo3/solrfal", does not define an extension key in its composer.json. Please report this to the author of this package. Specifying the extension key will be mandatory in future versions of TYPO3 (see: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/ComposerJson.html#extra) ./composer.json has been updated Running composer update jweiland/bynder2 Loading composer repositories with package information Updating dependencies Lock file operations: 4 installs, 0 updates, 0 removals - Locking bynder/bynder-php-sdk (2.1.5) - Locking jweiland/bynder2 (2.0.3) - Locking league/oauth2-client (2.6.1) - Locking paragonie/random_compat (v9.99.100) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 4 installs, 0 updates, 0 removals - Downloading jweiland/bynder2 (2.0.3) - Installing paragonie/random_compat (v9.99.100): Extracting archive - Installing league/oauth2-client (2.6.1): Extracting archive - Installing bynder/bynder-php-sdk (2.1.5): Extracting archive - Installing jweiland/bynder2 (2.0.3): Extracting archive 1 package suggestions were added by new dependencies, use `composer suggest` to see details. Package php-cs-fixer/diff is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files Generating class alias map file > typo3cms install:fixfolderstructure No action performed! 80 packages you are using are looking for funding. Use the `composer fund` command to find out more! No security vulnerability advisories found. ➜ ext git:(master) ✗ cd bynder2 ➜ bynder2 git:(master) ✗ git diff public/typo3conf/PackageStates.php
diff --git a/public/typo3conf/PackageStates.php b/public/typo3conf/PackageStates.php index e04f883..7b35f5f 100644 --- a/public/typo3conf/PackageStates.php +++ b/public/typo3conf/PackageStates.php @@ -131,9 +131,6 @@ return [ 'avalex' => [ 'packagePath' => 'typo3conf/ext/avalex/', ], - 'bynder2' => [ - 'packagePath' => 'typo3conf/ext/bynder2/', - ], 'image_autoresize' => [ 'packagePath' => 'typo3conf/ext/image_autoresize/', ],
Although I have re-installed bynder2, the PackageStates.php was not updated.