• Желательно установить собачку, чтобы избежать этих ошибок:

    @curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, false);

    И тестировать плагины с включенным DEBUG MODE.

    А для продвинутых пользователей существует функция http://codex.wordpress.org/Function_Reference/wp_remote_get
    где все прекрасно реализовано.

    Потому что не у всех включен CURL и даже allow_url_fopen.

    2014/01/04 21:56:13 [error] 26017#0: *1087729 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388858172.4505019187927246093750 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:02:02 [error] 26017#0: *1087994 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388858521.4599299430847167968750 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:08:51 [error] 26017#0: *1088233 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388858931.3828899860382080078125 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:16:41 [error] 26017#0: *1088543 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388859401.0971539020538330078125 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:22:32 [error] 26017#0: *1088695 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388859752.3624589443206787109375 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:29:00 [error] 26017#0: *1088999 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388860139.4991691112518310546875 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:37:10 [error] 26017#0: *1089381 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388860630.3666749000549316406250 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:42:16 [error] 26017#0: *1089600 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388860936.2844290733337402343750 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
    2014/01/04 22:51:32 [error] 26017#0: *1090167 FastCGI sent in stderr: "PHP message: PHP Warning:  curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in /.../wp-content/plugins/cackle/cackle_api.php on line 47" while reading response header from upstream, request: "POST /wp/wp-cron.php?doing_wp_cron=1388861492.2199881076812744140625 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"

    http://wordpress.org/plugins/cackle/

  • The topic ‘CURLOPT_FOLLOWLOCATION’ is closed to new replies.