Jump to content

Error on image uploading


Recommended Posts

  • 2 weeks later...
  • 2 weeks later...

I have also just upgraded from 1.4 to 1.5.6 for one of my stores.

 

We used the 1-Click Upgrade, though now I can add any images to new or existing products.

 

Just keeps coming up with UNDEFINED down the bottom.

 

I've tried different browsers on different machines, though the problem is still there.

 

Any ideas?

Link to comment
Share on other sites

  • 4 weeks later...

I can't upload image products, when I do it with a single or several images is always the same "undefined" error in a red tab in the footer of page. Tried changing the permissions on "img" folder but nothing happens. I'm really desperated. It happened with the previous prestshop version, and changed for the new one, but the same error appearts. Thanks in advance for any kind of help.

I check console i got this error

Plz Help me...

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /admin4477/ajax-tab.php
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache Server at nsjain.dinpl.com Port 80</address>
</body></html>

 

& How to add new left column that means add new sidebar Clients,Awards & right column Our brands,Evevnt & news ect...

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

I has been change permission but new error occured this errror is "An error occured during the image upload process"

& How to add new left column that means add new sidebar Clients,Awards & right column Our brands,Evevnt & news ect...

Please suggest me

 

thanks for reply me.

Link to comment
Share on other sites

I also had this problem with Prestashop 1.5.6.1 on local server. I spent several days to find the reason of the problem.

The reason of error was simple. By default new image legend is already entered in the field and is the same as products's name. If it exceed 128 symbols, you'll get error "undefined" while uploading an image!

 

DON'T FORGET CHECK LEGEND'S LENGTH ON ALL LANGUAGES!

Developers should definetly make correct error report for this error. Not unclear "undefined" disappearing within a several seconds, but something like "Length of image's legend is too long"!

I remember that I meet that problem several months ago and also cannot resolve it.  Each time I couldn't understood, what mean the 'undefined" error. And solution and reason was the same - too long legend name. But now I couldn't remember this once again due stupid formulation - "undefined" instead clear "Length of image's legend is too long".


There is other bad things of trying upload images with too long image legend:

1. First of all when finally by case you success with uploading (for example, by shortening legend's length) the image's position in image's list will be wrong.

For example, I tried upload the first image of a product seven times. Finally, when I shorten legend to 128 symbols I can successfully upload the image. It is so far the only image of product, but is position in lis is 8.

2. I checked the ps_image table to manually correct this problem. I have found there seven leftovers of my unsuccessful attempts to upload images - seven unneeded id_image of non-existing images. I removed them all and manually changed position in the table.

Please correct such behaviour of Prestashop when uploading an image is unsuccessful FOR ANY REASON. Prestashop should write results in the table only after successful uploading.
 

Link to comment
Share on other sites

How to add new left column that means add new sidebar Clients,Awards,Luminaries & right column Our brands,Evevnt & news ect...

Please suggest me

 

thanks for reply me.

 

and to the second part of your post, please create new topic, these questions aren't related to this topic.

thanks in advance

 

forum rules:

 

 

1 Topic = 1 Subject or 1 Question

- If you have more than one question, open more than one new topic!

- Do not ask your question on a thread that doesn’t deal with the exact same matter. Open a new thread, it’s alright to do so.

Link to comment
Share on other sites

  • 3 weeks later...

and what you've got in browser console (ctrl+shift+j in chrome) ?

hello vekia

i don't upload image product  in V 1.5.6.1

thl8.png
 

 

when i'm  got in browser console (ctrl+shift+j in chrome) 

Failed to load resource: the server responded with a status of 406 (Not Acceptable)

 

thank u very much . 

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

I got the solution for myself, hope it ll help others ;)

 

Upload smaller in pixels size pictures (less then 1000 x 1000 px) and you ll have peace

 

Good luck to all

 

 

i have tried ur way but it is success

 

i got the solution for my self , 

 

open file js/fileuploader.js 

search line xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");

 

replace by xhr.setRequestHeader("Content-Type", "application/octet-stream");

    xhr.setRequestHeader("processData", false);

 

now, i can uploader files zise pictures (1920 x 1080).

 

hope it ll help orthers

Edited by trandinhhong (see edit history)
  • Like 2
Link to comment
Share on other sites

i have tried ur way but it is success

 

i got the solution for my self , 

 

open file js/fileuploader.js 

search line xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");

 

replace by xhr.setRequestHeader("Content-Type", "application/octet-stream");

    xhr.setRequestHeader("processData", false);

 

now, i can uploader files zise pictures (1920 x 1080).

 

hope it ll help orthers

Thank you!!! I was just screaming "YAY!" at my screen - after spending several futile hours trying to find a fix

 

 

I had the exact same product image upload error and I tried just about everything else in the other threads - and only ended up with more trouble in other areas. How aggravating - an eCommerce site is useless without product images.

 

This edit seems to have fixed the "undefined" upload errors that showed up in the error console as 404 & 500 internal server errors  - as well as other error messages. I know by the forum threads that I've read that this isn't an isolated problem, so I hope that a more universal fix will be addressed in the next update.

Link to comment
Share on other sites

Thank you!!! I was just screaming "YAY!" at my screen - after spending several futile hours trying to find a fix

 

 

I had the exact same product image upload error and I tried just about everything else in the other threads - and only ended up with more trouble in other areas. How aggravating - an eCommerce site is useless without product images.

 

This edit seems to have fixed the "undefined" upload errors that showed up in the error console as 404 & 500 internal server errors  - as well as other error messages. I know by the forum threads that I've read that this isn't an isolated problem, so I hope that a more universal fix will be addressed in the next update.

 

are u success ? 

Link to comment
Share on other sites

i have tried ur way but it is success

 

i got the solution for my self , 

 

open file js/fileuploader.js 

search line xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");

 

replace by xhr.setRequestHeader("Content-Type", "application/octet-stream");

    xhr.setRequestHeader("processData", false);

 

now, i can uploader files zise pictures (1920 x 1080).

 

hope it ll help orthers

trandinhhong

 

Thank you soooooooooooo much it works really perfect, now people will be able to see the tinies details of my paintings :))))

Link to comment
Share on other sites

×
×
  • Create New...