sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.5k stars 289 forks source link

Fatal error: Call to undefined function Flake\Util\filter_var() #46

Closed theshaddow closed 8 years ago

theshaddow commented 11 years ago

I have a FreeBSD server trying to run Baikal, it has mysql5, php5, all is well it see the database and works.

TILL I try to add a user

I keep getting "Fatal error: Call to undefined function Flake\Util\filter_var() in /usr/web/baikal-flat/Core/Frameworks/Flake/Util/Tools.php on line 230"

From what I could tell it does not like the "sEmail" var, but I could be wrong, can some one HELP.

This machine is a production machine on a customers site and it needs CalDAV to keep the manager happy, since he wants to install a Microsoft server if I can not get it working.

theshaddow commented 11 years ago

I NEED HELP WITH THIS ASAP PLEASE.

I am not php fluent, and this is looking like a php problem. (I could be wrong)

I am wondering if I am missing a pkg,

In php I have; php5-5.3.5 php5-ctype-5.3.5 php5-dom-5.3.5 php5-gd-5.3.5 php5-gettext-5.3.5 php5-iconv-5.3.5 php5-imap-5.3.5 php5-json-5.3.5 php5-mbstring-5.3.5 php5-mysql-5.3.5 php5-openssl-5.3.5 php5-pdo-5.3.5 php5-pdo_mysql-5.3.5 php5-pdo_pgsql-5.3.5 php5-pgsql-5.3.5 php5-pspell-5.3.5 php5-session-5.3.5 php5-simplexml-5.3.5 php5-tokenizer-5.3.5 php5-xml-5.3.5 php5-zip-5.3.5 php5-zlib-5.3.5 php-libawl-0.45.

If you need more Info Just ask and I will try to find it.

ghost commented 11 years ago

php5-curl-?.?.?

theshaddow commented 11 years ago

php5-curl-5.3.5

Also an updated PHP list php-libawl-0.45 Andrew.s Web Libraries - PHP Utility Libraries php5-5.3.5 PHP Scripting Language php5-calendar-5.3.5 The calendar shared extension for php php5-ctype-5.3.5 The ctype shared extension for php php5-curl-5.3.5 The curl shared extension for php php5-dom-5.3.5 The dom shared extension for php php5-extensions-1.4 A "meta-port" to install PHP extensions php5-fileinfo-5.3.5 The fileinfo shared extension for php php5-filter-5.3.5 The filter shared extension for php php5-ftp-5.3.5 The ftp shared extension for php php5-gd-5.3.5 The gd shared extension for php php5-gettext-5.3.5 The gettext shared extension for php php5-hash-5.3.5 The hash shared extension for php php5-iconv-5.3.5 The iconv shared extension for php php5-imap-5.3.5 The imap shared extension for php php5-json-5.3.5 The json shared extension for php php5-mbstring-5.3.5 The mbstring shared extension for php php5-mcrypt-5.3.5 The mcrypt shared extension for php php5-mysql-5.3.5 The mysql shared extension for php php5-openssl-5.3.5 The openssl shared extension for php php5-pcntl-5.3.5 The pcntl shared extension for php php5-pdo-5.3.5 The pdo shared extension for php php5-pdo_mysql-5.3.5 The pdo_mysql shared extension for php php5-pgsql-5.3.5 The pgsql shared extension for php php5-posix-5.3.5 The posix shared extension for php php5-pspell-5.3.5 The pspell shared extension for php php5-session-5.3.5 The session shared extension for php php5-simplexml-5.3.5 The simplexml shared extension for php php5-tokenizer-5.3.5 The tokenizer shared extension for php php5-xml-5.3.5 The xml shared extension for php php5-xmlreader-5.3.5 The xmlreader shared extension for php php5-xmlwriter-5.3.5 The xmlwriter shared extension for php php5-zip-5.3.5 The zip shared extension for php php5-zlib-5.3.5 The zlib shared extension for php phpbb-2.0.23 A PHP-based bulletin board / discussion forum system phplist-2.10.9 A full-featured open-source newsletter manager

theshaddow commented 11 years ago

I have got it to work (Dont ask me how) I just reinstalled the flat package.

BUT not I have other problems, it is giving a 405 error for access to the calendars Crul "/cal.php/calendars/shane/default was not found on this server" Apache ""GET /cal.php/calendars/shane/default HTTP/1.1" 404 229 "-" "curl/7.21.3 "

it looks like the / after cal.php is not rewriting, if I use ? I see "Requested uri (/cal.php?calendars/shane/default) is out of base uri (/cal.php)

I can not find a rewrite command in the files, so what am I missing.

PLEASE HELP ASAP, they are demanding it to work, I am starting to look for other program that might work if I can not get this one working.

switchgott commented 11 years ago

Hi,

thanks for great software.

But i have the same error on openwrt.

Fatal error: Call to undefined function Flake\Util\filter_var() in /mnt/data/www/baikal/Core/Frameworks/Flake/Util/Tools.php on line 230

Its a problem with email address.

Please, have you got a work around?

Thanks

deBouB commented 10 years ago

It's been a while since the last post was done here. But I recently came up with this problem and could fix it somehow to create a user.

A Workaround would be to comment out lines 233-235 in Core/Frameworks/Flake/Util/Tools.php and further comment out lines 267 and 269 in Core/Frameworks/Formal/Form.php.

With this workaround I was able to create a user in baikal on OpenWRT 12.09

netgusto commented 9 years ago

filter_var should be packed in every PHP > 5.2 (Baïkal needs 5.3+). I have no idea why this function would not be available.

Comments ?

evert commented 8 years ago

No further feedback received, so I'm closing this. If you're still having an issue just comment here so we can discuss.