Jump to content

Cannot access customer uploaded image with order


Recommended Posts

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

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

  • 4 weeks later...
  • 1 month later...

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 by tonycajjo (see edit history)
  • Like 2
Link to comment
Share on other sites

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 tippost-476498-0-04006600-1363553609_thumb.gif

Link to comment
Share on other sites

×
×
  • Create New...