Bug #19556
closedFatal error: Call to undefined function filter_var() in /var/www/trunk/t3lib/class.t3lib_div.php on line 1438
0%
Description
when accessing any (non container) page via web->list module
(issue imported from #M9719)
Files
Updated by Rob Vonk about 16 years ago
I have the same and it's a php thing. filter_var is a native php function since version 5.2. I have 5.2.3 but i still get the error.
I get the same with json_encode.
I think we need the php package PECL.
Updated by Rob Vonk about 16 years ago
Installed pecl-fliter and pecl-json. That fixed it.
Idea to add it to requirements?
Updated by Oliver Hader about 16 years ago
Good idea! What distribution/OS are you using? Strange that a "native" functionality isn't available... hm...
Updated by Rob Vonk about 16 years ago
My ISP installed FreeBSB on the server. These pecl packages are separate php packages but probably default on most distributions (just like mysql support).
According to the php website, these functions are only availible on 5.2 and higher. That makes that typo3 needs to run on 5.2 or higher. Just 5 isn't enough.
Updated by Ingo Renner almost 16 years ago
4.3 alpha1 is checking for 5.2 already...
Updated by Dmitry Dulepov almost 16 years ago
These requirements exist in the new INSTALL.txt (see 4.3 list and the attached file)
Updated by Stefano Cecere almost 16 years ago
Dmitry: do you know why this (fundamental!) INSTALL.txt isn't in the core trunk? (i could not find it anywhere but here!)
Updated by Christian Kuhn over 15 years ago
INSTALL.txt is now in core trunk (bug #19577 , r5058). The requirements to filter and JSON are listed there. So this issue is now resolved, right?
Updated by Ingo Renner over 15 years ago
filter has been added to the installation requirements and ussually should be enabled by default anyways