Jump to content

Error when trying to upload a image on product admin page


Recommended Posts

I am getting this error when i a try:

 

Fatal error[/b]: Uncaught exception 'Exception' with message 'Getting content length is not supported.' in /home/playdreams/www/e-commerce/classes/FileUploader.php:240 Stack trace: #0 /home/playdreams/www/e-commerce/classes/FileUploader.php(69): QqUploadedFileXhr->getSize() #1 /home/playdreams/www/e-commerce/controllers/admin/AdminProductsController.php(1302): FileUploaderCore->handleUpload() #2 /home/playdreams/www/e-commerce/classes/controller/AdminController.php(522): AdminProductsControllerCore->ajaxProcessAddImage() #3 /home/playdreams/www/e-commerce/controllers/admin/AdminProductsController.php(1251): AdminControllerCore->postProcess() #4 /home/playdreams/www/e-commerce/classes/controller/Controller.php(158): AdminProductsControllerCore->postProcess() #5 /home/playdreams/www/e-commerce/classes/Dispatcher.php(349): ControllerCore->run() #6 /home/playdreams/www/e-commerce/adminSanjuan/ajax-tab.php(41): DispatcherCore->dispatch() #7 {main} thrown in /home/playdreams/www/e-commerce/classes/FileUploader.php on line 240

 

it seems that $_SERVER['CONTENT_LENGTH'] returns 0 in this post message, and i don't khow why...

 

Any ideas how i solve this problem?

post-562709-0-62098300-1368218704_thumb.png

Link to comment
Share on other sites

I think that is probably some configuration in server side, because i don't get this error in my local machine...

Any clues about that? I really tried a lot of things but nothing seems to work...

 

Thx in advance...

Link to comment
Share on other sites

1st try with different browsers to make sure its not a browser issue.

 

are you trying to upload a large file?

try maybe configuring php.ini on your server, follow this tutorial http://blog.dh42.com...tashop-php-ini/

 

No it's not a large fle...

i saw my php.ini here http://www.playdreams.com.br/e-commerce/phpinfo.php and i don't see any variable wrong...

 

i also tried to change recursively img folder but error persists....

Link to comment
Share on other sites

In BO when you go to Advanced Parameters -> Configuration Information -> Check your configuration, Do you get any errors?

 

I found error in some optional parameters

  • register_globals
  • magicquotes

no error founds in required parameters

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...