Untitled Document

Web Traffic & Marketing Web Traffic & Marketing Web Traffic & Marketing

 


Results 1 to 5 of 5

Thread: Getting the Dreaded CURLOPT_FOLLOWLOCATION Safe Mode Error And How To Correct

  1. #1
    Ninja Sensei Array Tim Buchalka's Avatar
    Join Date
    Feb 2010
    Posts
    2,514
    Blog Entries
    52
    Thanks
    33
    Thanked 73 Times in 65 Posts

    Getting the Dreaded CURLOPT_FOLLOWLOCATION Safe Mode Error And How To Correct

    Hi all,

    Some web hosts can be quite restrictive on how they "lock down" their services and disable a lot of things by default.

    If you get an error when trying to get Web traffic genius working (either the wordpress plugin or the standalone version) to do with "Safe Mode" or a message to the effect that CURLOPT_FOLLOWLOCATION can be actived when in safe mode, then this is telling you that your web host has not setup their environment to run scripts properly.

    Here is what you do....

    The best solution is as follows...

    Ask them to "DISABLE Safe Mode" and the problem will be sorted out. Tell them you have software that requires safe mode to be disabled to operate. In MOST cases they will do this for you and then web traffic genius will just work.

    If your web host is NOT willing to disable safe mode, first swear at them to help with frustration (ok I'm kidding)..

    Follow on reading to get it working for you in this case...

    We have "looked into the future" and forseen that some web hosts will not be very co-operative and we have added special code to handle these types of party poopers who don't play by the rules (you know who you are guys).

    To achieve this, you need to edit a file called config.php. To do this watch the video I put together showing you how to do this (it's available to you when you login using the username/password assigned to you when you purchased the sodftware).

    It's also easy to do....

    Find this line in the file.

    Code:
    define('CURL_PREFERRED', 1);
    Change it to

    Code:
    define('CURL_PREFERRED', 0);
    Save the file and retry WTG, it's likely the problem is sorted.

    If that fails, replace the 0 with a 2 and see if that works. This should get you working in 99.999999 (recurring) of cases (well a very high percentage anyway). If still no joy reply here and we will see what we can do to help. But it could be time for you to consider moving to a web host that just works for most scripts and plugins, including web traffic genius.

    Hope this helps.

    Cheers



    Tim





    The Google Plus Conspiracy Code is here. Everything you need to know about getting the most out of Google Plus. Real traffic, real rankings, and link love from Google - What's not to love?


  2. #2
    Ninja Newbie Array
    Join Date
    Dec 2010
    Location
    London
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Yes.. but... what if it still doesn't completely fix it?

    Thanks for the explanation. I've tried setting it to '0' and I've tried setting it to '2' but I still get the following error messages:

    Warning: curl_setopt() expects parameter 2 to be long, string given in /home/antivir/public_html/wp-content/plugins/web-traffic-genius-pro/curl_functions.php on line 236

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/antivir/public_html/wp-content/plugins/web-traffic-genius-pro/curl_functions.php on line 343

    Warning: curl_setopt() expects parameter 2 to be long, string given in /home/antivir/public_html/wp-content/plugins/web-traffic-genius-pro/curl_functions.php on line 236

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/antivir/public_html/wp-content/plugins/web-traffic-genius-pro/curl_functions.php on line 343

    What next?






  3. #3
    WTG and VTG Developer Array JohnR's Avatar
    Join Date
    Oct 2010
    Posts
    756
    Thanks
    2
    Thanked 31 Times in 27 Posts
    Quote Originally Posted by 2020plus1 View Post
    Thanks for the explanation. I've tried setting it to '0' and I've tried setting it to '2' but I still get the following error messages:
    You're supposed to set it to '1' and not '2', otherwise there would be no effect.

    Regards,

    John





    Finding the right answers lies in asking the right questions. <--- click to see Video Traffic Genius known issues

  4. #4
    Ninja Newbie Array
    Join Date
    Dec 2010
    Location
    London
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks John, but I was only following the abovementioned instructions. It started off set at 1 and didn't work. Changed it to 0 and it didn't work. Changed it to 2 and... you guessed... it didn't work.

    Here's what I was following...

    "If that fails, replace the 0 with a 2 and see if that works. This should get you working in 99.999999 (recurring) of cases (well a very high percentage anyway). If still no joy reply here and we will see what we can do to help."

    I'm not sure that changing it back to 1 is going to prove anything new






  5. #5
    WTG and VTG Developer Array JohnR's Avatar
    Join Date
    Oct 2010
    Posts
    756
    Thanks
    2
    Thanked 31 Times in 27 Posts
    Well, the 2 was a typo. As you can see the above post, it has been corrected.

    I don't think you would lose anything by trying it out right?

    Regards,

    John





    Finding the right answers lies in asking the right questions. <--- click to see Video Traffic Genius known issues

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •