[TYPO3-dev] Templavoila FCE with absolute URL

Dmitry Dulepov dmitry at typo3.org
Sat Oct 18 17:33:15 CEST 2008


Hi!

Steffen Gebert wrote:
> 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.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/iphone_as_productivity_tool/




More information about the TYPO3-dev mailing list