Sanjuan Posted May 10, 2013 Share Posted May 10, 2013 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? Link to comment Share on other sites More sharing options...
Sanjuan Posted May 11, 2013 Author Share Posted May 11, 2013 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 More sharing options...
yaniv14 Posted May 11, 2013 Share Posted May 11, 2013 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/speed-prestashop-php-ini/ Link to comment Share on other sites More sharing options...
PrestaMonster.com Posted May 11, 2013 Share Posted May 11, 2013 It's due to the 'img' folder have not set write permission so Prestashop could not copy file there and then could not get uploaded file size. Can you try to change permission of 'img' folder to 777 recursively? Link to comment Share on other sites More sharing options...
Sanjuan Posted May 13, 2013 Author Share Posted May 13, 2013 On 5/11/2013 at 5:33 AM, yaniv14 said: 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 More sharing options...
benjamin utterback Posted May 13, 2013 Share Posted May 13, 2013 Hi Sanjuan, is this a fresh install or an upgraded version? If it is upgraded, which version is it upgraded from? Link to comment Share on other sites More sharing options...
Sanjuan Posted May 13, 2013 Author Share Posted May 13, 2013 (edited) On 5/13/2013 at 7:52 PM, Benjamin Utterback said: Hi Sanjuan, is this a fresh install or an upgraded version? If it is upgraded, which version is it upgraded from? Version: PrestaShop™ 1.5.4.1 It is a fresh install.. Edited May 13, 2013 by Sanjuan (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted May 13, 2013 Share Posted May 13, 2013 In BO when you go to Advanced Parameters -> Configuration Information -> Check your configuration, Do you get any errors? Link to comment Share on other sites More sharing options...
Sanjuan Posted May 13, 2013 Author Share Posted May 13, 2013 On 5/13/2013 at 8:34 PM, yaniv14 said: 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 More sharing options...
benjamin utterback Posted May 13, 2013 Share Posted May 13, 2013 I think yaniv14 can help a little more. Maybe you should try and disable magicquotes? Link to comment Share on other sites More sharing options...
lukelittle Posted July 5, 2013 Share Posted July 5, 2013 this solved the problem for me: https://gist.github.com/lukelittle/5936074 Link to comment Share on other sites More sharing options...
Recommended Posts