Jump to content

Error CURL tratando de instalar un módulo


Recommended Posts

Buenas tardes, estroy tratando de instalar el módulo de analytics jirafe. Cada vez que trato de instalarlo me devuelve el siguiente error.

 

Warning: curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/vhosts/todokarts.com/httpdocs/tienda/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/HttpConnection/Curl.php on line 119 {"app_id":"25033","name":"Todokarts Store","token":"d6e3233efd0255850ad488d2cd6d508f"} Fatal error: Call to undefined method Jirafe_Api_Collection_Applications::resources() in /var/www/vhosts/todokarts.com/httpdocs/tienda/modules/jirafe/jirafe15.php on line 125

 

¿alguna idea?

Link to comment
Share on other sites

Solucionado, accedí a

/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/HttpConnection

 

y modique esta línea pasando el valor de true a false

 

$curlOpts += array(

CURLOPT_URL => $this->base . ltrim($path, '/'),

CURLOPT_PORT => $this->port,

CURLOPT_USERAGENT => $this->useragent,

// CURLOPT_FOLLOWLOCATION => true,

CURLOPT_FOLLOWLOCATION => false,

CURLOPT_RETURNTRANSFER => true,

CURLOPT_TIMEOUT => $this->timeout,

CURLOPT_HEADER => 0

);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...