Teddy's Dad Posted May 18, 2012 Share Posted May 18, 2012 (edited) Hello I have just installed a clean version of Presta 1.4.8.2 which worked fine. When I go to install buil-in modules through the BO, most of them install with no problem. When I try to install Analytics for ecommerce v1.2 by PrestaShop (in modules->analytics and stats) I get: Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/vhosts/jp-classics.com/httpdocs/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/HttpConnection/Curl.php on line 119 {"app_id":"6717","name":"JP Classics","token":"863ec4cc5587f504fc1ac6175eca649e"} Fatal error: Call to undefined method Jirafe_Api_Collection_Applications::resources() in /var/www/vhosts/jp-classics.com/httpdocs/modules/jirafe/jirafe14.php on line 130 Any suggesstions please? Regards Nima Edited May 18, 2012 by nkamkar (see edit history) 1 Link to comment Share on other sites More sharing options...
helldog2004 Posted May 18, 2012 Share Posted May 18, 2012 (edited) If you’re fairly certain that your API isn’t going to redirect you, you can safely disable this option. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); You can probably find this code in modules/jirafe/vendor/jirafe-php-client/src/Jirafe/HttpConnection/Curl.php Change the CURLOPT_FOLLOWLOCATION, true); Else take a look into: modules/jirafe/jirafe14.php Edited May 18, 2012 by helldog2004 (see edit history) 1 Link to comment Share on other sites More sharing options...
Teddy's Dad Posted May 18, 2012 Author Share Posted May 18, 2012 Hello helldog2004 Many thanks for your quick response. Setting CURLOPT_FOLLOWLOCATION to false in modules/jirafe/vendor/jirafe-php-client/src/Jirafe/HttpConnection/Curl.phpas you suggessted, sorted out the problem. Now that I have installed the module, should I change it back to "true" or leave it as is? Regards Nima Link to comment Share on other sites More sharing options...
helldog2004 Posted May 18, 2012 Share Posted May 18, 2012 Leave it as it is, that is how this module works.. Cheers helldog. Glad the problem is solved, please change the title to [sOLVED] Link to comment Share on other sites More sharing options...
Teddy's Dad Posted May 18, 2012 Author Share Posted May 18, 2012 Thank you. Link to comment Share on other sites More sharing options...
lordbdp Posted May 1, 2013 Share Posted May 1, 2013 Tks a lot ! I had the same pb on PS 1.5.4.1 during the module activation Link to comment Share on other sites More sharing options...
Recommended Posts