johnnnnny
Forum Replies Created
-
Hey Mvied,
That works fine! thank you very much 🙂
Hi Mvied,
I really appreciate your updating, my problem has beed solved.
Thanks very much.P.S.
I faced another problem at first.
My login page of wordpress says:
———————————-
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /******/wp-content/plugins/wordpress-https/wordpress-https.php on line 533
———————————-
and I couldn’t login to admin panel with right usename&password.I can’t use php.ini on my shared server, so I tried to set “safe_mode off” and “open_basedir none” with .htaccess file, but it doesn’t work because of my server’s restrictions (it returns 500 error).
So I modified your plugin (wordpress-https.php, line 528-535) to
—————————————————————-
if (!ini_get(‘open_basedir’) && !ini_get(‘safe_mode’)) {
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[“HTTP_USER_AGENT”]);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_ENCODING, ‘gzip,deflate’);
}
—————————————————————-
Then finally it works fine.I will appreciate your advice if there could be any problem for doing this modification.
Hey Mvied,
I really appreciate your efforts, thank you!