• Resolved ejsad

    (@ejsad)


    <br />
    <b>Warning</b>:  curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in <b>/www/htdocs/w00aaf1f/jugend/wp/wp-content/plugins/tweetable/mh_twitter_class.php</b> on line <b>321</b><br />

    This code is displayed when I’m trying to shorten URL for the publication of twitter posts via the admin panel

Viewing 3 replies - 1 through 3 (of 3 total)
  • I don’t have a server running PHP in Safe Mode handy, so do you want to try this yourself?

    Open tweetable/mh_twitter_class.php and replace the line

    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

    with

    if (ini_get('open_basedir') == '' &amp;&amp; ini_get('safe_mode' == 'Off')){
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    }
    Thread Starter ejsad

    (@ejsad)

    Thank you for your quick help,
    I don’t know why (Safe Mode is Off) but it works now.

    Thank you very very much.

    There’s another setting, open_basedir (that I just heard of recently) that triggers the same error as when Safe Mode is on. Since the change helped, I’ll be adding it to the next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Tweetable] Error with manual URL-shortening’ is closed to new replies.