many errors Function eregi() is deprecated in… php 5.3.0
Archived from the Xataface Users forum.
jogancalagan — Fri Oct 02, 2009 2:46 pm
after installation i’ve made a test app but the page return many many errors repeated here is an overview :
Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/xataface/dataface-public-api.php on line 101
Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/xataface/dataface-public-api.php on line 109
Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/xataface/dataface-public-api.php on line 118
Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/xataface/dataface-public-api.php on line 126
Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/xataface/dataface-public-api.php on line 142
Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/xataface/dataface-public-api.php:101) in /Library/WebServer/Documents/xataface/Dataface/Application.php on line 590
Warning: syntax error, unexpected BOOL_FALSE in /Library/WebServer/Documents/xataface/lang/en.ini on line 16 in /Library/WebServer/Documents/xataface/Dataface/ConfigTool.php on line 331
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/xataface/dataface-public-api.php:101) in /Library/WebServer/Documents/xataface/Dataface/Application.php on line 795
Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/xataface/dataface-public-api.php:101) in /Library/WebServer/Documents/xataface/Dataface/Application.php on line 796
Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/xataface/Dataface/Table.php on line 1065
Deprecated: Function ereg() is deprecated in /Library/WebServer/Documents/xataface/Dataface/Table.php on line 510
Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Berlin’ for ‘CEST/2.0/DST’ instead in /Library/WebServer/Documents/xataface/dataface-public-api.php on line 651
Deprecated: Function eregi() is deprecated in /Library/WebServer/Documents/xataface/Dataface/ActionTool.php on line 231
shannah — Sat Oct 03, 2009 7:32 am
A couple of things:
-
I think you have E_STRICT turned on. Many of these errors are due to maintaining PHP 4 compatibility. If you turn off E_STRICT it should fix these errors. As I have made the choice to stop supporting PHP 4, future versions will likely remove these compatibility issues.
-
There has been a bug reported in PHP 5.3.0 with the parse_ini_file() function that prevents Xataface from working correctly in this version.
http://xataface.com/forum/viewtopic.php?t=4905
I haven’t checked to see which version this was fixed in, but it says it was fixed in SVN so should be included in latest release. If possible please either upgrade or downgrade your php (assuming this bug affects your version).