Jump to content

[Upload product image] An error occurred while copying image, the file does not exist


Recommended Posts

As the title says, each time I try to upload a product image I get the following error:
 

Filename.jpg : An error occurred while copying image, the file does not exist anymore.

 

 

- I made sure to have set the permission to 777 for the img-folder and all subfolders

- I tried uploading as jpg and png-files

- I changed the Uploader.php fiile as written as a solution a few times on this forum

- I tried with/without non-Prestashop modules enabled

- I made sure the maximum filesize of images is set to 8388608 and images I try to upload or not bigger then 500x500 pixels (even tried with 100x100 pixels, no difference in the outcome
- I did NOT update/downgrade the Prestashop version, it comes from fresh install

- I CAN change for example the logo and add attachments.|
 

Google Chrome console log report:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
 
http://15th.labelrr.com/img/p/en-default-cart_default.jpg Failed to load resource: the server responded with a status of 404 (Not Found)

 

 
 
I now get the following error when I try to right click the image, check properties for the link and visit the link:
 
Forbidden

You don't have permission to access /img/p/6/9/69.jpg on this server.

 

 

 

I double-checked the permissions, they ARE set to 777 for the whole img-folder and subfolders.
When I manually upload a file to that directory, I can access it just fine.

So somewhere in between clicking the upload and creating the image on the server something goes wrong.

 

 

 

I hope someone can help me with this issue, since I am getting square eyes checking for solutions :(

Edited by Sovrano (see edit history)
Link to comment
Share on other sites

Same problem witht the banner kinda, Chrome-report:
 

Resource interpreted as Image but transferred with MIME type application/javascript: "http://15th.labelrr.com/Backoffice/themes/default/js/vendor/enquire.min.js".i @ modernizr.min.js:4j @ modernizr.min.js:4g @ modernizr.min.js:4B @ modernizr.min.js:4Modernizr.load @ modernizr.min.js:4(anonymous function) @ modernizr-loads.js:1
modernizr.min.js:4 Resource interpreted as Image but transferred with MIME type application/javascript: "http://15th.labelrr.com/Backoffice/themes/default/js/admin-theme.js".
Link to comment
Share on other sites

I sort of have the same problem, and it looks like it came out nowhere.

I could upload images for product without any problems and suddenly it stopped working ( I wasn't messing around in the code )

 

First I got the message "Server file size is different from local size"

 

What I did:

- checked the permission settings (they didn't seem wrong) but to make sure I have acces I set the img-folder and all subfolders to 777
- changed the uploader class so i wouldn't get the error message

if ($file_size === $file['size'])
            {
                $file['save_path'] = $file_path;
            }
            else
            {
                $file['save_path'] = $file_path;
            }

It didn't help, now I get the message "An error occurred while copying image, the file does not exist anymore."

 

Kind of stuck now :(

Link to comment
Share on other sites

Yeah, I try something people marked as the solution, but then I get another error in return, either permission (when all is 777), or file-size, or cannot copy.

Shame adding pictures to the products is kinda essential for a webshop.  :(

Link to comment
Share on other sites

×
×
  • Create New...