Page 1 of 1

Wrong URL for product images

Posted: 26 Apr 2015, 13:32
by aksenovaa
In the latest version aimeos get the wrong URL for product images: uploads/tx_aimeos//preview/product/f/d/fd833962bffab1ee9032be2102789caf.jpg
There is a double slash between "settings.client.html.common.content.baseurl" and file names.
What could be the problem?
In the aimeos/Resources/Libraries/arcavias/arcavias-core/client/html/layouts/catalog/detail/image-body-default.html I can not find where the parameters $previewUrl are defined...

Re: Wrong URL for product images

Posted: 26 Apr 2015, 15:56
by aimeos
aksenovaa wrote:In the latest version aimeos get the wrong URL for product images: uploads/tx_aimeos//preview/product/f/d/fd833962bffab1ee9032be2102789caf.jpg
There is a double slash between "settings.client.html.common.content.baseurl" and file names.
We've implemented a common view helper for generating the URLs. I've modified the line adding a trailing slash at the end. Does it work now?

Re: Wrong URL for product images

Posted: 26 Apr 2015, 17:18
by aksenovaa
Yes thank you! It worked.

Re: Wrong URL for product images

Posted: 28 Sep 2016, 19:20
by Tony
Hi,
Sorry for jumping on this thread, I have the same issue.
When in Expert mode or easy mode I cannot get photos/images to upload correctly, they don't show on the front end.

When I use the image upload feature/link, the file appears to upload a ghosted image is displayed in the upload box, this is created:
Preview URL:
preview/9/e/9e30d8878bae6688183de3c3f115c63b.jpg
File URL:
files/9/e/9e30d8878bae6688183de3c3f115c63b.jpg
When viewing the products on the front end no images are shown.
When I check the HTML in the frontend this is shown:
uploads/tx_aimeos/files/9/e/9e30d8878bae6688183de3c3f115c63b.jpg
with this message: Image cannot be loaded. Make sure the path is correct and image exist.

Currently I am manually uploading image to a directory in fileadmin and manually adding a absolute URL to the image, a very poor solution.

What do I need to change or set to get this working?
I would like the upload tool to set a relative path to the image file some where in fileadmin or a directory that won't be over written by an update.

Many thanks in advance.
Regards,
Tony

Re: Wrong URL for product images

Posted: 29 Sep 2016, 04:43
by Tony
Hi,
My answer:
Short answer:
In the end I didn't make any changes, I only deactivated and them reactivated the realURL extension, then the images showed on the frontend.

For my situation it turned out that realURL was causing the problem.
At first I found when realURL was active the images I uploaded were not shown on the front end. When I deactivated realURL the images showed on the front end.
I found after I reactivated it the images were showing.

I use:
Typo3 7.6.11
Aimeos web shop 16.7.1
Aimeos web shop distribution 16.4.0
RealURL Speaking URLs for TYPO3 2.1.1

Maybe the above helps someone,
Tony