Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
3.2.2
-
None
-
Ibexa Cloud and local development environment
Description
I am unable to export content using the Recommendation Client bundle. When I run export I get the following error:
In ImageHelper.php line 60: Return value of EzSystems\EzRecommendationClient\Helper\ImageHelper::getImageUrl() must be of the type string, bool returned
On my local environment I did some quick debugging to find out an image URL is generated wrong (no host in the second dumped URL):
janit@kampela:Sites/ibexa_co ‹bs-231-enable-personalization*›$ ./bin/console ezrecommendation:export:run --contentTypeIdList=45 Exporting 1 content types Fetching 517 items of contentTypeId 45 (language: eng-GB) Fetching content from database for contentTypeId: 45, language: eng-GB, chunk: #1 Preparing content for contentTypeId: 45, language: eng-GB, amount: 500, chunk: #1 0/500 [>---------------------------] 0% ^ "http://localhost/var/site/storage/images/3/2/9/1/101923-1-eng-GB/Aplyca Partner of the Month.jpg" ^ "http:///var/site/storage/images/4/3/1/3/103134-12-eng-GB/Developer_Webinar_thumbnail 14.33.18.png" In ImageHelper.php line 57: Return value of EzSystems\EzRecommendationClient\Helper\ImageHelper::getImageUrl() must be of the type string, bool returned
Steps to reproduce:
- Install Maison demo
- Install and configure ezsystems/ezrecommendation-client
- Run an export, e.g. ./bin/console ezrecommendation:export:run --contentTypeIdList=45
I have an instance on Ibexa Cloud where this can be reproduced and can provide access to that.