Jump to content

[SOLVED ]Call to undefined method Jirafe_Api_Collection_Applications


Recommended Posts

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 by nkamkar (see edit history)
  • Like 1
Link to comment
Share on other sites

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 by helldog2004 (see edit history)
  • Like 1
Link to comment
Share on other sites

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

  • 11 months later...
×
×
  • Create New...