Return value of Aimeos\MShop\Order\Item\Standard::getRelatedId() must be of the type string, null returned

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rvhelp
Posts: 24
Joined: 06 Sep 2022, 08:43

Return value of Aimeos\MShop\Order\Item\Standard::getRelatedId() must be of the type string, null returned

Post by rvhelp » 21 Oct 2022, 08:38

After updating to Aimeos 22, the following error occurs on the Aimeos backend page for orders:

Image

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

Re: Return value of Aimeos\MShop\Order\Item\Standard::getRelatedId() must be of the type string, null returned

Post by aimeos » 21 Oct 2022, 08:48

To which version did you update? 22.10.1?
Did you run the migrations? The relatedid column in the mshop_order table seems to be still "DEFAULT NULL" instead of "DEFAULT ''" and the column contains NULL values.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rvhelp
Posts: 24
Joined: 06 Sep 2022, 08:43

Re: Return value of Aimeos\MShop\Order\Item\Standard::getRelatedId() must be of the type string, null returned

Post by rvhelp » 21 Oct 2022, 09:49

The table Structure was ok, i replaced NULL values with "" and its working now. I have aimeos 22.7 atm.

Thank you for the Help!

Post Reply