Project

General

Profile

Actions

Bug #17479

closed

Alert in FE: "...CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir..."

Added by thomas no-lastname-given almost 17 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-07-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Typo3 vers 4.11, tt_products vers. 2.6 alpha

The following message appears in FE und the look isn't very professional ;-) :

",,,
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/xyzurl/typo3_src/t3lib/class.t3lib_div.php on line 2356

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/xyzurl.de/typo3_src/t3lib/class.t3lib_div.php on line 2356

Warning: Cannot modify header information - headers already sent by (output started at /www/schmuckhamster.de/typo3_src/t3lib/class.t3lib_div.php:2356) in /www/xyzurl.de/typo3_src/typo3/sysext/cms/tslib/class.tslib_fe.php on line 2898. ..."

safe-mode is off.
open_basedir is the problem

Provider argues:
Can't open "open_basedir" for security reasons.

curl-use is maybe often necessary for install / update via repository.
(issue imported from #M5985)


Files

bug5985.diff (936 Bytes) bug5985.diff Administrator Admin, 2007-08-06 21:47

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #45741: GeneralUtility::getUrl() fails to process redirects sometimesClosed2013-02-22

Actions
Related to TYPO3 Core - Bug #58823: 4.5 t3lib_div::getUrl() till 6.2 \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl() with open_basedir and CURLOPT_FOLLOWLOCATIONClosed2014-05-15

Actions
Has duplicate TYPO3 Core - Bug #16600: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is setClosedMichael Stucki2006-09-27

Actions
Has duplicate TYPO3 Core - Bug #17060: curl_setopt error when fetching translations or extensions as of PHP 4.4.4/5.1.5Closed2007-03-01

Actions
Actions #1

Updated by Martin Kutschker almost 17 years ago

Since PHP 5.2.0, 5.1.5 and 4.4.4 (see PHP Changelog).

Actions #2

Updated by Michiel Roos over 16 years ago

If you are trying to use CURLOPT_FOLLOWLOCATION and you get this warning:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set...

then you will want to read http://www.php.net/ChangeLog-4.php which says "Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are enabled." as of PHP 4.4.4/5.1.5. This is due to the fact that curl is not part of PHP and doesn't know the values of open_basedir or safe_mode, so you could comprimise your webserver operating in safe_mode by redirecting (using header('Location: ...')) to "file://" urls, which curl would have gladly retrieved.

Actions #3

Updated by Bjrn Kraus over 16 years ago

@Martin: There already is a bugfix since more than a month which hasn't be added to the repository. Is there any doubt in applying it?

Actions #4

Updated by Martin Kutschker over 16 years ago

Björn, there is some concern that simply ignoring the failure is not a good option.

Actions #5

Updated by Franz Koch over 16 years ago

any news on that?

Actions #6

Updated by Michiel Roos over 16 years ago

Nothing besides the tiny thread on the core mailing list. 18-10-2007

Actions #7

Updated by Alban Cousinie over 16 years ago

This issue is still being encountered in version 4.1.3 even though duplicate issue 0004292 has been marked as 'resolved'. Someone please patch the main trunk.

Actions #8

Updated by Martin Kutschker over 16 years ago

FYI: 4292 is resolved as duplicate, not as being fixed!

Actions #9

Updated by Bjrn Kraus about 16 years ago

Any solution for this yet?

Actions #10

Updated by Martin Kutschker about 16 years ago

Fixed in SVN for trunk. Has been fixed in 4.1.x for a while.

Actions

Also available in: Atom PDF