[TYPO3-dev] Templavoila FCE with absolute URL
Xavier Perseguers
typo3 at perseguers.ch
Sat Oct 18 23:44:12 CEST 2008
Hi!
>> I've created a FCE with one of its fields as URL.
>>
>> If I enter an absolute URL e.g. a link to RSS-Feed "/rss.xml" I get an
>> open_basedir restriction error.
>> Warning: file_exists() [function.file-exists]: open_basedir
>> restriction in effect. File(/rss.xml) is not within the allowed
>> path(s):
>> (/var/www/vhosts/example.org/subdomains/dev/httpdocs:/tmp:/usr/share/php:/usr/share/typo3:/usr/bin:/proc/loadavg)
>> in
>> /var/www/vhosts/example.org/subdomains/dev/httpdocs/typo3_src_4.3/typo3/sysext/cms/tslib/class.tslib_content.php
>> on line 5353
>>
>> I think this is caused by "RFC #9285: Remove all @ in front of
>> file_exists() calls" [1]
>>
>> Don't know if it should be possible to enter absolute URLs - at least
>> the error message should be suppressed.
>>
>> [1] http://bugs.typo3.org/view.php?id=9285
>
> I do not know what you try to achieve but TYPO3 definitely treats your
> "url" as a file, located at the root of the hard drive. Removal of @ is
> not relevant. It will hide error but not cure it.
Yes, giving /rss.xml to a PHP function is treated as a file, not as an
URL. You need to give a hostname and a protocol such as http:// if you
wish to treat this an URL instead.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
More information about the TYPO3-dev
mailing list