Miroslav_Brno Posted December 6, 2015 Share Posted December 6, 2015 Hi, i moved my shop from windows development WAMP to unix Ubuntu 14.04 inside Docker ( www.docker.com) on cloud. After this I have problem with saving existing products. The save button is spinning and i can't do anything. It's not problem of META descr. length and also i hope it's not problem with rights. Configuration is: - cloud with ubuntu 14.04 and docker installed - docker image with ubuntu 14.04 with lamp - prestashop 1.6.1.2 ( originally production 1.5 upgraded to 1.6.1.2) - frontstore works ok ( i mean no prblems with images...) - debug mode ON I found out that when i comment lines with calling helpers in tabs initialization it works. file: controllers/admin/AdminProductsController.php line 3892 $attachment_uploader = new HelperUploader('attachment_file');$attachment_uploader->setMultiple(false)->setUseAjax(true)->setUrl(Context::getContext()->link->getAdminLink('AdminProducts').'&ajax=1&id_product='.(int)$obj->id.'&action=AddAttachment')->setPostMaxSize((Configuration::get('PS_ATTACHMENT_MAXIMUM_SIZE') * 1024 * 1024))->setTemplate('attachment_ajax.tpl'); line 4255 $image_uploader = new HelperImageUploader('file');$image_uploader->setMultiple(!(Tools::getUserBrowser() == 'Apple Safari' && Tools::getUserPlatform() == 'Windows'))->setUseAjax(true)->setUrl(Context::getContext()->link->getAdminLink('AdminProducts').'&ajax=1&id_product='.(int)$obj->id.'&action=addProductImage'); This is as far as I get and I don't know what might be problem. On windows with WAMP everything is fine. My quess is AJAX problem. Please help! Link to comment Share on other sites More sharing options...
Miroslav_Brno Posted December 7, 2015 Author Share Posted December 7, 2015 I have an update: After comment only functions starts ->setUseAjax() the save button and content of tabs work again. $image_uploader->setMultiple(!(Tools::getUserBrowser() == 'Apple Safari' && Tools::getUserPlatform() == 'Windows'));// ->setUseAjax(true)->setUrl(// Context::getContext()->link->getAdminLink('AdminProducts').'&ajax=1&id_product='.(int)$obj->id// .'&action=addProductImage'); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now