Product images not showing after server migration prestashop
Solution 1
Did you regenerated your .htaccess
? To do so, go to preferences>SEO and URLs and click save. This will automatically refresh a line in that file depending on your new server configuration.
If not, try to regenerate the thumbnails (Preferences>images>regenerate thumbs). Since you have a lot of images, Try to regenerate type by type because the process take a lot of time and it is better to know where it stops if it is interrupted.
Of course, all manips are better done in development environment.
good luck.
Solution 2
For others who may not yet get the answer
Go to Preference -> SEO and URLS.
There you will get a block for shop detail named as "Set Shop URL", There you have to change the details for Shop domain, SSL domain, Base URI as per your server details.
Solution 3
You could check these:
- default image paths
_PS_PROD_IMG_DIR_
and_PS_IMG_DIR_
are changed indefines.inc.php
and rest of path is as expected - value for
PS_IMAGE_QUALITY
was changed manually tojpg
instead ofpng
inps_configuration
table
Solution 4
Have you checked the suffix of the images? Sometimes it change from _home to _homedefault.
Solution 5
Update domain in:
- your [www root]/.htaccess
- ps_shop_url db table
Related videos on Youtube
Hasan Nawaz
8+ years of experience in building E-commerce, custom digital solutions, IT management and development with strong technical, business and product skills. Deep experience with Open Source software, working with international, remote teams, corporate C-suite executives and stakeholders. Agile management for multiple projects (currently responsible for 40+ live projects), experimented with knowledge of Kanban and Scrum methodologies. Strong experience in Architecture and setup of Fault-tolerant and High availability applications from ideation to execution and later maintenance support-setup with continuous integration and delivery pipelines.
Updated on June 15, 2022Comments
-
Hasan Nawaz almost 2 years
I have migrated my prestashop 1.5.6 e-commerce site to a new server,
Process i did was just upload the files to new server and import the db.
I cleaned the Cache/smarty/compile and Cache/smarty/cache folders and left the index.php file.
I tried regenerating thumbnails from Preferences/images page but didn't work and gave "Internal server error".
I changed the process configuration to FcgidBusyTimeout 3600 in /etc/httpd/conf.d/fcgid.conf
I tried again to regenerate and this time, it is gave that : Original images not found in /img/p/1/2/xxx, But in reality all my images are in /img/p/xxxx.png
I tried using the Move Images to New image structure function in Preferences/images page and it created the structure but 1400+ images are not found now !!
Anyhelp will be more then welcome !
Updated : 27 June 2014 I lost hope after 48 hrs of finding and trying different solutions, reverted version back to backup copy of store, and not managing the store anymore. lost client..
-
msoa about 5 yearsSaved me. Very Thanks! Changing
ph_shop_url.domain
in database is not a good solution. Your way is best. don't forget to clear cache also.