Uncaught TypeError in composer post update scripts

Questions around the TYPO3 integration and plugins
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!
pixelplumber
Posts: 22
Joined: 26 Oct 2019, 12:38

Uncaught TypeError in composer post update scripts

Post by pixelplumber » 19 May 2020, 03:16

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:

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
Anyone else hit this error?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Uncaught TypeError in composer post update scripts

Post by aimeos » 19 May 2020, 07:29

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, Image give us a star

pixelplumber
Posts: 22
Joined: 26 Oct 2019, 12:38

Re: Uncaught TypeError in composer post update scripts

Post by pixelplumber » 20 May 2020, 04:46

Thanks! Looks all good now.

rowild

Re: Uncaught TypeError in composer post update scripts

Post by rowild » 08 Jun 2020, 06:51

Same problem here and following your recommendation. unfortunately I get this error:

Code: Select all

Could not find package aimeos/aimeos-typo3 in a version matching 19.10.x-dev
On packagist.org I cannot find a v19.10 release, only a v19.4.

What am I doing wrong?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Uncaught TypeError in composer post update scripts

Post by aimeos » 08 Jun 2020, 07:24

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, Image give us a star

rowild

Re: Uncaught TypeError in composer post update scripts

Post by rowild » 08 Jun 2020, 11:21

I just realized that I checked the "aimeos-typo3-distribution" package instead of "aimeos-typo3". My bad – sorry!

Post Reply