ChristopherH Posted December 16, 2012 Share Posted December 16, 2012 I am setting up a new store in Prestashop. I have downloaded and installed the latest version. I want the customer to be able to upload an image on the product page to be used on the product. I set up Customization when creating the Product to allow for this. When I tested it, the file was uploaded and I can see the thumbnail attached to the order in the back office but when I try to click on the thumbnail image to view it and save it I keep getting redirected to the Admin Login even though I am already logged in. If I re-login in it just takes me back to the beginning and I start the whole process over again. How can I access the full image that has been uploaded? Link to comment Share on other sites More sharing options...
ChristopherH Posted December 18, 2012 Author Share Posted December 18, 2012 Had a few problems over the last couple of days and tried reinstalling Prestashop a couple of times but I have still ended up with the same issue. I cannot open the customer uploaded image. It just asks me to login again and so the circle continues. Link to comment Share on other sites More sharing options...
ChristopherH Posted December 18, 2012 Author Share Posted December 18, 2012 When I hover on the thumbnail with the order it displays the link https://shop.domain.com/admin1212/displayImage.php?img=1e6eaaf2c324e2063f8b8d4aa1796aaf&name=2-file1 which takes me back to the login when clicked on. The image source for the thumbnail with the order is https://shop.domain.com/upload/1e6eaaf2c324e2063f8b8d4aa1796aaf_small'>https://shop.domain.com/upload/1e6eaaf2c324e2063f8b8d4aa1796aaf_small The full image url is actually https://shop.domain.com/upload/1e6eaaf2c324e2063f8b8d4aa1796aaf which I can only access by inspecting the thumbnail element to find the image source then removing the _small from the end of the url. This is not practical when I will be dealing with uploaded images regularly. What could be the issue? It is like it is not generating the correct link to the full image. Link to comment Share on other sites More sharing options...
ChristopherH Posted December 19, 2012 Author Share Posted December 19, 2012 I have now done a new install on another hosting service and I have the same problem with not being able to access the full size uploaded image. It seems to be a Prestashop issue. Link to comment Share on other sites More sharing options...
nstrydom Posted January 10, 2013 Share Posted January 10, 2013 Hi ChristopherH Have you managed to fix this issue yet? I have the same problem currently Link to comment Share on other sites More sharing options...
bluenosecases Posted January 14, 2013 Share Posted January 14, 2013 I'm having the exact same problem and I need an answer on it urgently as I'm getting orders from customers wanting to personalise the products Link to comment Share on other sites More sharing options...
tonycajjo Posted March 14, 2013 Share Posted March 14, 2013 you guys figure anything out? i too click the image to and it directs me back to the login page. i am superadmin. i've also searched to find an answer without success. Link to comment Share on other sites More sharing options...
tonycajjo Posted March 14, 2013 Share Posted March 14, 2013 (edited) i searched the other language forums and stumbled across a thread: http://www.prestasho...isplayimagephp/ that said to remove the line, or comment out, which says: require_once(dirname(__FILE__).'/init.php'); it's working now. the file is in your admin directory and called displayimage.php and it's line 28 edit: i guess mark the thread as [solved] by editing the original post, click full editor, make your change, then thank someone in the french forum! Edited March 14, 2013 by tonycajjo (see edit history) 2 Link to comment Share on other sites More sharing options...
nstrydom Posted March 14, 2013 Share Posted March 14, 2013 Hi tonycajjo Thanks, this fixed the issue for me! Link to comment Share on other sites More sharing options...
leofrog8 Posted March 17, 2013 Share Posted March 17, 2013 i searched the other language forums and stumbled across a thread: http://www.prestasho...isplayimagephp/ that said to remove the line, or comment out, which says: require_once(dirname(__FILE__).'/init.php'); it's working now. the file is in your admin directory and called displayimage.php and it's line 28 edit: i guess mark the thread as [solved] by editing the original post, click full editor, make your change, then thank someone in the french forum! tonycajjo - you are the complete hero - thank you very much for this tip Link to comment Share on other sites More sharing options...
Recommended Posts