After upgrade to 2024.10.4 - getRefItems doesn't return data

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!
jafo66
Posts: 72
Joined: 06 Mar 2024, 04:42

After upgrade to 2024.10.4 - getRefItems doesn't return data

Post by jafo66 » 19 May 2025, 21:21

Upgraded to 2024.10.4

We have been using the following code successfully for over a year. After upgrading this has stopped working.

Code: Select all

$dbProduct = $productManager->get($productId, ['text', 'media', 'price', 'attribute']);

$long_description = $dbProduct->getRefItems('text', 'long', null)->first();
        if (isset($long_description)) {
            //Log::debug('description: ' . $description->get('text.content'));
            $product['text_long'] = $long_description->get('text.content');
        } else
            $product['text_long'] = "Description not provided";
Also, this variation has stopped working... any thoughts as to why?

Code: Select all

$gameAttributeTypes = $dbProduct->getRefItems('attribute', 'default', 'default');
OR

Code: Select all

$gameAttributeTypes = $dbProduct->getRefItems('attribute', null, null);

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

Re: After upgrade to 2024.10.4 - getRefItems doesn't return data

Post by aimeos » 20 May 2025, 07:01

Fetching list items has been moved to a decorator:
https://github.com/aimeos/aimeos-core/b ... ct.php#L13

If you replace the list of decorators with an own configuration and didn't add the new decorator names, the list items won't be fetched any more.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

jafo66
Posts: 72
Joined: 06 Mar 2024, 04:42

Re: After upgrade to 2024.10.4 - getRefItems doesn't return data

Post by jafo66 » 20 May 2025, 13:46

Thanks... sorry for the newbie question, but should those settings go into the config/shop.php file or somewhere else?

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

Re: After upgrade to 2024.10.4 - getRefItems doesn't return data

Post by aimeos » 20 May 2025, 15:00

Only if you want to remove entries or overwrite settings with arrays completely. Otherwise, add them to the config files in your package because then, only the listed parts are added or overwritten.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply