Jump to content

[SOLVED] Move prestashop to another server: product images error


Recommended Posts

Hello!

I have a problem with moving prestashop to another server...

- Download all files from OLD page to harddrive
- Uplaod all files from harddrive to NEW server root folder
- Export and Import MySQL database
- Change settings in config folder
- Rewrite .htaccess file

So, everything is working just fine, but there is a problem with product images. Only 1/3 products has images, 2/3 doesn't have.. What is wrong? I copied all images..

Sorry for my bad English... I come from Slovenia..

Thanks!

Link to comment
Share on other sites

That makes me think that you've got images missing that weren't copied over. Does 3476-1920.jpg exist? If all the original size images exist, you can simply go to Preferences > Images > Regenerate thumbnails to recreate the thumbnail images.

Link to comment
Share on other sites

If the images are missing from img/p, then all your images couldn't have been copied over from your old server. You'll need to copy over img/p/3476-1920.jpg and any other missing images from your old server to the new server.

If the images are in img/p, but aren't displaying in the browser, then it is probably a .htaccess issue. You should go to Tools > Generators and regenerate your .htaccess file to fix that.

Link to comment
Share on other sites

That doesn't make sense. If the image didn't exist on the old server, then the image couldn't display. Perhaps there are so many images in the img/p directory on your old server that your FTP client can't display them all and so you weren't able to download them all and copy them to the new server?

Link to comment
Share on other sites

I'm not sure, but I can tell you how many files there should be in img/p. There should be the number of rows in the ps_image table in your database plus the number of languages multiplied by 6 (assuming you haven't added or deleted any image sizes) plus 1. Basically, (number of image rows + number of languages) * 6 + 1. If the number of files in img/p is less than that, then you are missing files.

Link to comment
Share on other sites

  • 6 months later...

There is a much faster and easier way to transfer your files from one server to another. Downloading and then re-uploading your files with FTP is inefficient, especially if you didn't ZIP or GZIP your files. Moreover there is a (big) chance of untransferred files like what just happened to Mario.

For a cPanel shared hosting users, there is a way to transfer all of your files without need to download and then re-upload your files.

From your cPanel choose menu Backups => Full Backup => Download or Generate a Full Website Backup => On the Backup Destination choose Remote FTP Server => Input your New Server FTP details => Press Generate Backup

You will get a notification email after the transfer finished. After file transfer finished, log into your new cpanel and with File Manager extract the transferred backup and move all files and folder in your backup public_html into your public_html.

This is only an alternative way of transferring your files without having to download and upload your files manually. Although this isn't a proper way, it's very helpful.

Link to comment
Share on other sites

  • 4 months later...

@darqor: There's no need of FTP client to transfer your files from server to server.
Probably, the best solution for you is to contact the Technical Support of your new hosting provider and ask them to migrate your website from your old hosting. They are most than just happy to do this for you. It's very easy for them since they can access the server via SSH. They can transfer and restore your website in minutes.

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

I used WebPix to download all images from webserver. I think it works if you have problem with many pictures on ftp, I had about 6000 images. I downloaded them to my computer then put them in my web folder.

 

/Jonny

Link to comment
Share on other sites

×
×
  • Create New...