PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated […]
-
@ knallen80 has posted this issue 2 years ago and didn’t get an answer.
A thorough explanation of what’s going on can be found here: https://stackoverflow.com/questions/6918623/curlopt-followlocation-cannot-be-activated
In some cases, placing safe_mode = off should be able to deal with this issue. Unfortunately, safe_mode is being phased off, and apparently PHP 5.4 users are already out of luck.
WP plugins should not use cURL at all. I know cURL is fantastic, but read this to understand better how WP’s own internal HTTP API should be used as a replacement for cURL: https://www.htmlcenter.com/blog/please-stop-using-curl-in-wordpress-plugins/
(I know, I know, I also have a few WP plugins of my own which use cURL because it’s so convenient… and no, they shouldn’t be using it).
- The topic ‘PHP Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated […]’ is closed to new replies.