When I try to suggest link I get that error:

curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set w pliku /home/lewczuk/public_html/drupal-4.7.4/modules/easylinks/easylinks.module, line 224

I use:
MySQL 4.1.21-standard
PHP 4.4.4
Drupal 4.7.4

Comments

Gurpartap Singh’s picture

Turn PHP safe_mode Off in your php.ini, if accessible.

lewmich’s picture

but what should I do when I can not switch of safe mode?

Gurpartap Singh’s picture

Try comment out line no. 296.

i.e. Replace:
$ret = curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
with
//$ret = curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

Let me know if easylinks general procedures behave normally.

Gurpartap Singh’s picture

Category: bug » support
Status: Active » Closed (works as designed)