Error after update Adding product with ID is not allowed

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
DevTarget
Posts: 6
Joined: 21 Aug 2020, 11:47

Error after update Adding product with ID is not allowed

Post by DevTarget » 25 Apr 2022, 11:29

Hello

i have
OS: window 10
"php": "^7.2",
"aimeos/ai-payments": "^2021.01",
"aimeos/aimeos-laravel": "~2021.01",
"laravel/framework": "^6.2",

i do a update for aimeos
"aimeos/aimeos-laravel": "~2020.04" to "~2021.01",

everything works except basket, i have this error "Adding product with ID 19 is not allowed" ?
can someone help me please?

Thanks for your answer.

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

Re: Error after update Adding product with ID is not allowed

Post by aimeos » 26 Apr 2022, 07:56

This error is usually the result if the product is not attached to any category:
https://github.com/aimeos/ai-controller ... ry.php#L53
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DevTarget
Posts: 6
Joined: 21 Aug 2020, 11:47

Re: Error after update Adding product with ID is not allowed

Post by DevTarget » 26 Apr 2022, 08:37

Hello,

but the product id datadase is affected to a category in table mshop_index_catalog.

Thanx

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

Re: Error after update Adding product with ID is not allowed

Post by aimeos » 26 Apr 2022, 08:41

Is this also the case after you execute:

Code: Select all

php artisan aimeos:jobs index/rebuild
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
DevTarget
Posts: 6
Joined: 21 Aug 2020, 11:47

Re: Error after update Adding product with ID is not allowed

Post by DevTarget » 26 Apr 2022, 08:51

Hello

the command deletes the list in the table mshop_index_catalog but does not solve the problem.

Thanks

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

Re: Error after update Adding product with ID is not allowed

Post by aimeos » 28 Apr 2022, 05:31

If the record from mshop_index_catalog is deleted, then there's no catalog relation in the mshop_product_list table. Note that one of the biggest changes between 2021 and 2022 versions is that the category<->product relations moved from mshop_catalog_list to mshop_product_list table. The setup tasks should migrate them automatically.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply