Bug #19556
closed
Fatal error: Call to undefined function filter_var() in /var/www/trunk/t3lib/class.t3lib_div.php on line 1438
Added by Stefano Cecere about 16 years ago.
Updated over 14 years ago.
Description
when accessing any (non container) page via web->list module
(issue imported from #M9719)
Files
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.
Installed pecl-fliter and pecl-json. That fixed it.
Idea to add it to requirements?
Good idea! What distribution/OS are you using? Strange that a "native" functionality isn't available... hm...
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.
4.3 alpha1 is checking for 5.2 already...
These requirements exist in the new INSTALL.txt (see 4.3 list and the attached file)
Dmitry: do you know why this (fundamental!) INSTALL.txt isn't in the core trunk? (i could not find it anywhere but here!)
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?
filter has been added to the installation requirements and ussually should be enabled by default anyways
Also available in: Atom
PDF