Uncaught TypeError in composer post update scripts
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 22
- Joined: 26 Oct 2019, 12:38
Uncaught TypeError in composer post update scripts
Hi, for a little while since updating 19.10 on TYPO3 9.5 LTS after composer has finished and it calls the post update aimeos scripts, it errors out:
Anyone else hit this error?
Code: Select all
Writing lock file
Generating autoload files
Generating class alias map file
> Aimeos\Aimeos\Custom\Composer::install
Installing Aimeos public files from HTML client
Creating symlink to Aimeos extension directory
Fatal error: Uncaught TypeError: Argument 1 passed to Aimeos\Aimeos\Custom\Composer::join() must be an instance of Aimeos\Aimeos\Custom\Event, instance of Composer\Script\Event given, called in /home/<domain>/public_html/typo3conf/ext/aimeos/Classes/Custom/Composer.php on line 53 and defined in /home/<domain>/public_html/typo3conf/ext/aimeos/Classes/Custom/Composer.php:146
Stack trace:
#0 /home/<domain>/public_html/typo3conf/ext/aimeos/Classes/Custom/Composer.php(53): Aimeos\Aimeos\Custom\Composer::join(Object(Composer\Script\Event))
#1 phar:///home/<domain>/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(305): Aimeos\Aimeos\Custom\Composer::install(Object(Composer\Script\Event))
#2 phar:///home/<domain>/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(221): Composer\EventDispatcher\EventDispatcher->executeEventPhpScript('Aimeos\\Aimeos\\C...', 'install', Object(Composer\Script\Event))
#3 phar:///home/<domain>/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDi in /home/<domain>/public_html/typo3conf/ext/aimeos/Classes/Custom/Composer.php on line 146
Re: Uncaught TypeError in composer post update scripts
Thanks for the hint. Can you please try
Code: Select all
composer req aimeos/aimeos-typo3:19.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 22
- Joined: 26 Oct 2019, 12:38
Re: Uncaught TypeError in composer post update scripts
Thanks! Looks all good now.
Re: Uncaught TypeError in composer post update scripts
Same problem here and following your recommendation. unfortunately I get this error:
On packagist.org I cannot find a v19.10 release, only a v19.4.
What am I doing wrong?
Code: Select all
Could not find package aimeos/aimeos-typo3 in a version matching 19.10.x-dev
What am I doing wrong?
Re: Uncaught TypeError in composer post update scripts
Problem is that the branch is 2019.10.x-dev but TER only allows version numbers <999 so we had to use 19.10 instead of 2019.10 for the tags and uploaded packages. That leads to confusion regularly :-/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Uncaught TypeError in composer post update scripts
I just realized that I checked the "aimeos-typo3-distribution" package instead of "aimeos-typo3". My bad – sorry!