Housy Posted July 14, 2011 Share Posted July 14, 2011 Hellomy host is using a system with some security rules, which doesn't allow me to store images into TEMP or TMP folder, so I have to rename this folder.Ofcourse I know, how to rename a folder but i don't know, which PHP file should I modify to set the new path, so instead of TMP name would be TEMPIMAGES.Can someone please help me?Thanks,Housy Link to comment Share on other sites More sharing options...
otakarw Posted July 14, 2011 Share Posted July 14, 2011 try to check files in classes folder Link to comment Share on other sites More sharing options...
otakarw Posted July 14, 2011 Share Posted July 14, 2011 I checked image.php and it is defined as _PS_TMP_IMG_DIR_ constant so just look for it Link to comment Share on other sites More sharing options...
otakarw Posted July 14, 2011 Share Posted July 14, 2011 I did job for you. It is defined in /config/defines.php Link to comment Share on other sites More sharing options...
Housy Posted July 14, 2011 Author Share Posted July 14, 2011 otakarw, you really helped me man :-)I changed the path, renamed the folder, but it's not working properly. Link to comment Share on other sites More sharing options...
Housy Posted July 14, 2011 Author Share Posted July 14, 2011 Something isn't working properly otakarw =/I see images in FRONTOFFICE but there is a little problem in the BACKOFFICE (admin area), because some images cannot be seen, i see the question mark image (?).Why is that? Link to comment Share on other sites More sharing options...
Housy Posted July 14, 2011 Author Share Posted July 14, 2011 I really don't know, why this is happening. You can see the question mark in the attached image.Should i modify any other file? Link to comment Share on other sites More sharing options...
otakarw Posted July 17, 2011 Share Posted July 17, 2011 I really don't know. I shlould not be related each other. Weird behaviour. And if you upload new image? Is it working at least this way? I mean Can you upload new image? Maybe thumbnails of this size are not generated hard to say. I am sorry Link to comment Share on other sites More sharing options...
otakarw Posted July 17, 2011 Share Posted July 17, 2011 So I have found out that if you open asministration these img files are loaded from tmp folder. Right click o pic and adress is eg:http://domain.tld/img/tmp/product_mini_12.jpg Link to comment Share on other sites More sharing options...
Housy Posted July 18, 2011 Author Share Posted July 18, 2011 So I have found out that if you open asministration these img files are loaded from tmp folder. Right click o pic and adress is eg:http://domain.tld/img/tmp/product_mini_12.jpg That is really weird, I mean i changed the path for _PS_TMP_IMG_DIR_ constant, so I don't really understand, why this is happening :down: There must be some other file, I have to modify, I guess.Thanks,Housy Link to comment Share on other sites More sharing options...
Housy Posted July 18, 2011 Author Share Posted July 18, 2011 Yesss, I found a solution :-) Just open images.inc.php file, then go to line 89 and change the image path =)That is the line, that has to be modified: return ''; Thats it :-P Many thanks otakarw, you really helped me a lot.Cheers, Housy 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