noesac Posted August 9, 2010 Share Posted August 9, 2010 When I restore my site to another server (to use as a Test site) the images never work. They seem to show for old products, but anything created recently will just display as a big question mark. Any ideas?http://tiny.cc/5l3r6 Link to comment Share on other sites More sharing options...
tomerg3 Posted August 9, 2010 Share Posted August 9, 2010 Try to regenerate the images in Preferences->Image Link to comment Share on other sites More sharing options...
noesac Posted August 25, 2010 Author Share Posted August 25, 2010 Yeah I've tried this a number of times but it never works Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 Can right click mouse @ image to check property? Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 /img/p/180-1192-home.jpg Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 With the same info, can you physically check that the image file actually reside in the named directory. Your problem seems that the image wasn't there in the folderAnd also make sure the image folder is writable Try to regenerate the images in Preferences->Image as per Rocky earlier solution Link to comment Share on other sites More sharing options...
rocky Posted August 26, 2010 Share Posted August 26, 2010 Also, be aware that if you have too many images, your FTP client won't list them all, which could explain why your backup only contains older images and not newer ones. Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 This particular folder is set to 755, is this correct?Also are there any recommendations on an FTP client that will let me see all files, or what settings need to be modified (I use a combination of Dreamweaver, Filezilla and Transmit) Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 Yes permission should be okBTW can you confirm this With the same info, can you physically check that the image file actually reside in the named directory ? Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 I just checked. It's not there...but this is crazy, I checked my live site...and it's not there either!!! (but everything is ok on my live site)Any ideas on what's causing this? Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 It seems all those images is not in the right directory in your livesite but somehow reside in another directory. Not sure if you have did any modification to your livesite, or maybe your livesite settings.inc.php you have changed the img directory definition.Check your livesite config/settings.inc.php to see what you have define '_PS_IMG_' If it is elsewhere, then go to that location (livesite) and copy that folder's content into your newtestsite /img folderI notice you mentioned in your 1st post that you "restore your site" ; then you would have to change the config/settings.inc.php files in your newtestsite. did you match the setting correctlyGoodluck! Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 Hi Mike, that setting isn't even there! <?php define('_DB_SERVER_', 'localhost'); define('_DB_TYPE_', 'MySQL'); define('_DB_NAME_', '******'); define('_DB_USER_', '******'); define('_DB_PASSWD_', '******'); define('_DB_PREFIX_', 'ps_'); define('__PS_BASE_URI__', '/'); define('_THEME_NAME_', 'prestashop'); define('_COOKIE_KEY_', 'qMCLzSOx2vcfr8EfYXu9uB4ZNjtqUNStuBmAhmGQeWXHUE2huoS16Uw5'); define('_COOKIE_IV_', 'uqfnMSvi'); define('_PS_CREATION_DATE_', '2010-08-25'); define('_PS_VERSION_', '1.3.1.1'); ?> Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 Sorry my mistake here...never check on e version you are using. Those setting only appears in the svn version. Your setting looks ok.Try to look at your livesite to see where those images reside by doing Can right click mouse @ image to check property?. This will probably show you where the images location in order to proceed further troubleshooting the problem. Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 Thanks that helped...they seem to be in two completely different places. Any ideas how I could have gotten myself in this situation? And what's the best, low-risk way to fix this?LIVE SITE: ../200-1348-home/protec-floral-etch-hard-case-for-iphone-4-.jpgTEST SITE: ../img/p/200-1348-home.jpg Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 Not too sure how you got to this situation.... You may also want to check your config/config.inc.php on your live site against your testsite under /*Base and themes */ the images location definition.The images needs to resite in its respective directory inorder for it to be displayed. If /200-1348/ correspond to /img/ and all the subdirectory are the same after, then you may safetly copy those images into your testsite directory.Would advice you do not do anything to your livesite incase anything goes wrong. BTW hope up do regular backup on your livesite!!Maybe it has to do with your non default theme..! Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 I see what's happened! I turned off friendly URL's in my test site. When I turned it back on, I found this: TEST SITE: ../test_directory/200-1348-home/protec-floral-etch-hard-case-for-iphone-4-.jpgLIVE SITE: ../200-1348-home/protec-floral-etch-hard-case-for-iphone-4-.jpgSo I have two questions: 1) How can I change the image path to point to a sub-directory?2) There's no such folder in my parent directory called "200-1348-home", how is this possible? Link to comment Share on other sites More sharing options...
rocky Posted August 26, 2010 Share Posted August 26, 2010 It seems you have friendly URLs turned on for your live site, but not for your test site. In both cases, the image should be in the same place though: /img/p/200-1348-home.jpg Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 It seems you have friendly URLs turned on for your live site, but not for your test site. In both cases, the image should be in the same place though: /img/p/200-1348-home.jpg Ok I see that makes sense, so when you turn on Friendly URL's the images stay in the same place, just the link looks different. however...I just did a search for the name of the file "200-1348" and it doesn't seem to exist anywhere on my full site backup. This must be what you were saying before how not all images are downloaded. Do you know what setting in my ftp client needs to be configured so I can see and download them? Link to comment Share on other sites More sharing options...
MikeChoy Posted August 26, 2010 Share Posted August 26, 2010 did you regenerate your .htaccess in your testsite? if not you have to do so...then test again! Link to comment Share on other sites More sharing options...
rocky Posted August 26, 2010 Share Posted August 26, 2010 What FTP client are you using? You may be able to access all the files using the File Manager in your cPanel. Is there a Backup option in your cPanel? Link to comment Share on other sites More sharing options...
noesac Posted August 26, 2010 Author Share Posted August 26, 2010 I'm using Transmit primarily, but sometimes I use Filezilla. I also have the built in Dreamweaver one, but I rarely use that. That being said I've backed up my site using all three before, so it looks like all three aren't able to pick up on all the files!Anyway...as suggested I looked in there using the web browser (file manager) and they were all there!!!I have two questions though: 1) Are there any other prestashop files that this can happen to (just so that I am extra careful when backing up)2) How can I configure my ftp client to see them...I can't seem to find any way to do a mass download via file manager Link to comment Share on other sites More sharing options...
rocky Posted August 26, 2010 Share Posted August 26, 2010 Usually, it is only the img subdirectories that suffer this problem, since you can easily end up with thousands of images in there. I suppose it could also happen to the download directory if you have thousands of downloadable products and attachments, or to the upload directory if thousands of customers upload customized images to products. Perhaps if you create thousands of backup on the Tools > DB Backup tab or upload thousands of CSV files, it could happen to the admin/tabs/backup or admin/tabs/import directories.To be honest, I don't know how to configure FTP clients to avoid the problem of too many files in a directory. I suggest searching Google for more information. Link to comment Share on other sites More sharing options...
noesac Posted August 28, 2010 Author Share Posted August 28, 2010 Hi Rocky, just letting you know that I worked this out. I tried almost every big name FTP client but none of them worked, even when I set them to see hidden files. File Manager in CPanel wasn't much help either because it only allows you to download one file at a time. But I found the backup tool in CPanel worked perfectly - it allowed me to backup and download the full site, which finally contained all the photos, and then I simply extracted them. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now