Upgrade from 18.10.11 to 22.7.1

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!
User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Upgrade from 18.10.11 to 22.7.1

Post by aimeos » 24 Oct 2022, 17:23

Seems like the still existing typeid constraint makes problems.
Does it work if you remove it?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

boettner
Advanced
Posts: 136
Joined: 09 Feb 2015, 17:49

Re: Upgrade from 18.10.11 to 22.7.1

Post by boettner » 26 Oct 2022, 05:57

Hi everybody,

I am in the same process of upgrading a TYPO3 11.5.17 Aimeos instance currently from 20.10.11 to 22.10.1-pre2.

I extended the product model and manager following the docs https://aimeos.org/docs/latest/models/e ... custom-way

I added two new fields to the product item which worked from 18 to 20:

Code: Select all

private array $searchConfig = [
		'product.foreigncode' => [
			'code'         => 'product.foreigncode',
			'internalcode' => 'mpro."foreigncode"',
			'label'        => 'Fremd ID',
			'type'         => 'string',
			'internaltype' => \Aimeos\Base\DB\Statement\Base::PARAM_STR,
		],
		'product.configno' => [
			'code'         => 'product.configno',
			'internalcode' => 'mpro."configno"',
			'label'        => 'Konfigurations-Nr.',
			'type'         => 'string',
			'internaltype' => \Aimeos\Base\DB\Statement\Base::PARAM_STR,
		]
	];
When executing the setup script via CLI under 22.10.1-pre2 the script breaks at

Code: Select all

Checking "product/type" type data
with

Code: Select all

[Aimeos\MShop\Exception]
Class "\Aimeos\MShop\Product\Manager\Type\Leproduct" not available
Leproduct is the name of my new product model. Do I miss something regarding types not mentioned in the docs?

Best
Robert.

Code: Select all

Exception trace:
  at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop/Common/Manager/Sub/Traits.php:178
 Aimeos\MShop\Common\Manager\Base->getSubManagerBase() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop/Product/Manager/Standard.php:579
 Aimeos\MShop\Product\Manager\Standard->getSubManager() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop/Common/Manager/Decorator/Base.php:199
 Aimeos\MShop\Common\Manager\Decorator\Base->getSubManager() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop/Common/Manager/Decorator/Base.php:199
 Aimeos\MShop\Common\Manager\Decorator\Base->getSubManager() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop/Common/Manager/Decorator/Base.php:199
 Aimeos\MShop\Common\Manager\Decorator\Base->getSubManager() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop.php:295
 Aimeos\MShop::instantiate() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/src/MShop.php:84
 Aimeos\MShop::create() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/setup/MShopAddTypeData.php:84
 Aimeos\Upscheme\Task\MShopAddTypeData->manager() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/setup/MShopAddTypeData.php:94
 Aimeos\Upscheme\Task\MShopAddTypeData->update() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/setup/MShopAddTypeData.php:53
 Aimeos\Upscheme\Task\MShopAddTypeData->add() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/setup/default/MShopAddTypeDataDefault.php:30
 Aimeos\Upscheme\Task\MShopAddTypeDataDefault->up() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/upscheme/src/Up.php:324
 Aimeos\Upscheme\Up->runTasks() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/upscheme/src/Up.php:311
 Aimeos\Upscheme\Up->runTasks() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/upscheme/src/Up.php:170
 Aimeos\Upscheme\Up->up() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/Setup.php:84
 Aimeos\Setup->up() at /var/www/clients/client18/web98/web/typo3conf/ext/aimeos/Classes/Command/SetupCommand.php:65
 Aimeos\Aimeos\Command\SetupCommand->execute() at /var/lib/typo3/typo3_src-11.5.17/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at /var/lib/typo3/typo3_src-11.5.17/vendor/symfony/console/Application.php:1033
 Symfony\Component\Console\Application->doRunCommand() at /var/lib/typo3/typo3_src-11.5.17/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at /var/lib/typo3/typo3_src-11.5.17/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at /var/lib/typo3/typo3_src-11.5.17/typo3/sysext/core/Classes/Console/CommandApplication.php:119
 TYPO3\CMS\Core\Console\CommandApplication->run() at /var/lib/typo3/typo3_src-11.5.17/typo3/sysext/core/bin/typo3:23
 {closure}() at /var/lib/typo3/typo3_src-11.5.17/typo3/sysext/core/bin/typo3:24

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: Upgrade from 18.10.11 to 22.7.1

Post by Moritz » 27 Oct 2022, 11:08

Seems like the still existing typeid constraint makes problems.
Does it work if you remove it?
Then it works.
Will it become part of the upgrade wizard?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: Upgrade from 18.10.11 to 22.7.1

Post by aimeos » 27 Oct 2022, 11:40

boettner wrote: 26 Oct 2022, 05:57 I extended the product model and manager following the docs https://aimeos.org/docs/latest/models/e ... custom-way
The problem is related to the central factory featured in 2022.07 which assumes that you've also overwritten the sub-managers, which isn't true in your case. You can circumvent the error by adding a configuration for the sub-manager names:

Code: Select all

	'product' => [
		'manager' => [
			'name' => 'Leproduct',
			'lists' => [
				'name' => 'Standard',
				'type' => [
					'name' => 'Standard'
				]
			],
			'property' => [
				'name' => 'Standard',
				'type' => [
					'name' => 'Standard'
				]
			],
			'type' => [
				'name' => 'Standard'
			]
		]
	]
We are currently investigating if we can safely assume that the sub-managers are not overwritten by default.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Upgrade from 18.10.11 to 22.7.1

Post by aimeos » 28 Oct 2022, 14:56

Moritz wrote: 27 Oct 2022, 11:08 Will it become part of the upgrade wizard?
Is now added and a new version of aimeos/ai-typo3 extension has been released.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

boettner
Advanced
Posts: 136
Joined: 09 Feb 2015, 17:49

Re: Upgrade from 18.10.11 to 22.7.1

Post by boettner » 02 Nov 2022, 07:07

aimeos wrote: 27 Oct 2022, 11:40 The problem is related to the central factory featured in 2022.07 which assumes that you've also overwritten the sub-managers, which isn't true in your case. You can circumvent the error by adding a configuration for the sub-manager names:
That did it, many thanks!

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: Upgrade from 18.10.11 to 22.7.1

Post by Moritz » 08 Nov 2022, 09:05

Is now added and a new version of aimeos/ai-typo3 extension has been released.
Can I replace the ai-typo3 folder in aimeos with this one?
If not, can you please create a prerelease?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: Upgrade from 18.10.11 to 22.7.1

Post by aimeos » 08 Nov 2022, 18:54

Moritz wrote: 08 Nov 2022, 09:05 Can I replace the ai-typo3 folder in aimeos with this one?
Yes, until a new TYPO3 extension is uploaded to TER.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: Upgrade from 18.10.11 to 22.7.1

Post by Moritz » 11 Nov 2022, 11:54

When I go to Admin Tools -> Upgrade -> Check TCA I get the following exception.

exception.png
exception.png (117.89 KiB) Viewed 4500 times
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: Upgrade from 18.10.11 to 22.7.1

Post by Moritz » 11 Nov 2022, 12:18

I upgrade on the clients test machine and get another error in the upgrade wizard.

sql_error.png
sql_error.png (12.52 KiB) Viewed 4499 times
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

Post Reply