curl_setopt error in client.php [URGENT]

George's Avatar

George

03 Dec, 2011 06:15 AM

Hi Marc,

Finished my development and testing on my local server and all is working very nicely. Moved the site onto the MediaTemple servers and the CG calls are failing with the following PHP message:

Severity: Warning --> curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set

This is happening on line 714 in client.php where curt_setopt() function is called.

Digging into this it seems that it's because the server is running in safe_mode or open_basedir is set. In my case safe_mode is OFF but open_basedir is set. Since I'm in a shared env I cannot change these settings.

I have tried setting CURLOPT_FOLLOWLOCATION => false; on line 710 but with no luck.

Any idea what I can do? I don't want to start mucking around with the code in client.php so i really hope you can help.

thanks

  1. 1 Posted by George on 04 Dec, 2011 05:19 PM

    George's Avatar

    Anyone monitoring these forums?

  2. 2 Posted by George on 04 Dec, 2011 08:20 PM

    George's Avatar

    UPDATE: I was able to clear the value of open_basedir on the server. That seems to have resolved the problem.

    //g

  3. Marc Guyer closed this discussion on 05 Dec, 2011 06:03 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM