The photos in the product descriptions in the Terrae template display as a “?” instead of loading. I see the same issue on your demo website.
I expect the product-description photos to display normally. How can I fix this?
The photos in the product descriptions in the Terrae template display as a “?” instead of loading. I see the same issue on your demo website.
I expect the product-description photos to display normally. How can I fix this?
Hi,
We're sorry for the trouble with the broken images in your product descriptions, and thank you for your patience.
We found the cause. When Joomla is installed in a subdirectory, EasyStore leaves the subdirectory name out of the image path, so the images can't load. Your images and product content are safe, and you don't need to add anything again.
We have reported this to our development team along with the fix. In the meantime, you can solve it with this small change:
Step 1. Open your site files using your hosting File Manager or FTP, and go to the folder where Joomla is installed.
Step 2. Open this file, and download a copy first as a backup:
JRoot/components/com_easystore/src/Helper/EasyStoreHelper.php
Step 3. Search for this line (around line 1884):
$img->setAttribute('src', '/' . $trimmedSrc);
Step 4. Replace it with:
$img->setAttribute('src', Uri::root(true) . '/' . $trimmedSrc);
Step 5. Save the file. If you edited it on your computer, upload it back to the same folder and replace the existing file.
Step 6. In the Joomla administrator, go to System > Clear Cache, select all items and delete them. Then refresh your product page with Ctrl + F5 (Cmd + Shift + R on Mac).
Your description images should now appear correctly.
Please note: this is a temporary solution. Updating EasyStore will replace this file, so if the images break again after an update that doesn't include the fix, please repeat these steps.
If you would prefer us to make the change, or if the images still don't appear, just let us know and we'll be happy to help.
Once again, we apologize for the inconvenience.
Best regards