Images Not Showing on Product Pages After Migration (OpenCart 3.0.3.8)
Posted: Mon May 26, 2025 7:29 pm
Hi everyone,
I'm encountering an issue after migrating my OpenCart 3.0.3.8 store to a new server. All product details, categories, and customers appear to have transferred correctly, but the product images are not displaying on the frontend product pages or in the administration panel. Instead, I'm just seeing broken image icons.
Here's what I've checked so far:
Image paths: I've verified that the image paths in the database (oc_product_image and oc_product) are correct and point to the right locations relative to the image/catalog/ directory.
File permissions: I've set the permissions for the image/ directory and all its subdirectories to 0755 (and even tried 0777 temporarily for testing, but reverted).
config.php and admin/config.php: I've double-checked that both config.php files have the correct HTTP_SERVER, HTTPS_SERVER, DIR_APPLICATION, DIR_SYSTEM, DIR_IMAGE, etc., paths for the new server.
Error logs: The OpenCart error logs (system/storage/logs/error.log) are not showing any specific errors related to image loading. The server's Apache/Nginx error logs also don't indicate any issues.
Image manager: When I try to browse images through the "Image Manager" in the admin panel, the thumbnails also appear broken.
I've cleared all caches (theme cache, Twig cache, SASS cache) multiple times from the admin dashboard and also manually deleted files from system/storage/cache.
Has anyone experienced a similar issue after migrating OpenCart 3.x, and if so, what was the solution? Any insights or suggestions on what else I should investigate would be greatly appreciated!
Thanks in advance for your help.
I'm encountering an issue after migrating my OpenCart 3.0.3.8 store to a new server. All product details, categories, and customers appear to have transferred correctly, but the product images are not displaying on the frontend product pages or in the administration panel. Instead, I'm just seeing broken image icons.
Here's what I've checked so far:
Image paths: I've verified that the image paths in the database (oc_product_image and oc_product) are correct and point to the right locations relative to the image/catalog/ directory.
File permissions: I've set the permissions for the image/ directory and all its subdirectories to 0755 (and even tried 0777 temporarily for testing, but reverted).
config.php and admin/config.php: I've double-checked that both config.php files have the correct HTTP_SERVER, HTTPS_SERVER, DIR_APPLICATION, DIR_SYSTEM, DIR_IMAGE, etc., paths for the new server.
Error logs: The OpenCart error logs (system/storage/logs/error.log) are not showing any specific errors related to image loading. The server's Apache/Nginx error logs also don't indicate any issues.
Image manager: When I try to browse images through the "Image Manager" in the admin panel, the thumbnails also appear broken.
I've cleared all caches (theme cache, Twig cache, SASS cache) multiple times from the admin dashboard and also manually deleted files from system/storage/cache.
Has anyone experienced a similar issue after migrating OpenCart 3.x, and if so, what was the solution? Any insights or suggestions on what else I should investigate would be greatly appreciated!
Thanks in advance for your help.