Erro Warning: curl_setopt() [function.curl-setopt]: CURLOPT

  • Uriel
  • Avatar de Uriel Autor do Tópico
  • Offline
  • JCB! Legend
  • JCB! Legend
Mais
12 anos 11 meses atrás #82283 por Uriel
Uriel created the topic: Erro Warning: curl_setopt() [function.curl-setopt]: CURLOPT
Algumas pessoas podem ter esse erro >>


Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/redstarc/public_html/components/com_virtuemart/themes/default/correios.class.php on line 136

Para resolver faça isso>> no PHP.INI na linha 136


curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS,http_build_query($post));
136 curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
return curl_exec ($ch);

Coloque um @ em
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($post));
136 ---- @curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
return curl_exec ($ch);

by Leonardo Augusto Testoni Robles via facebook

abraço

Please Entrar ou Registrar to join the conversation.