I am getting the following error after running POC installer and everyting is green:
Sorry, an error occurred.
at /opt/lampp/htdocs/ftpfotac/phpopenchat-3.0.2/include/adodb/drivers/adodb-mysql.inc.php:22
[2048] var: Deprecated. Please use the public/private/protected modifiers
Could not connect to database! Please check your database setup in config.inc.php by using the POC Installer!
I am getting the following error after running POC installer and everyting is green:
Sorry, an error occurred.
at /opt/lampp/htdocs/ftpfotac/phpopenchat-3.0.2/include/adodb/drivers/adodb-mysql.inc.php:22
[2048] var: Deprecated. Please use the public/private/protected modifiers
Could not connect to database! Please check your database setup in config.inc.php by using the POC Installer!
PHP 5.0.5 (Linux)
Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1
Webserver: Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.8a PHP/5.0.5 DAV/2 mod_perl/2.0.1 Perl/v5.8.7
URI: http://localhost/ftpfotac/phpopenchat-3.0.2/index.php
Please help.........
I am also getting the same error. Have you figured out the problem yet?
Vince
For those of you that cant speak german, or didnt get google to translate the page like i did ^^
here is the fix
in index.php
Replace this :
---------------------------------------------------------------------------------------------
function session_error ($errno, $errmsg, $filename, $linenum, $vars)
{
POC_Chat:: display_error ($errno, $errmsg, $filename, $linenum, $vars, POC_SESSION_ERROR);
}
function db_error ($errno, $errmsg, $filename, $linenum, $vars)
{
POC_Chat:: display_error ($errno, $errmsg, $filename, $linenum, $vars, POC_DB_ERROR);
}
---------------------------------------------------------------------------------------------
With This:
---------------------------------------------------------------------------------------------
error_reporting (E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE);
function session_error ($errno, $errmsg, $filename, $linenum, $vars)
{
$user_errors = array (E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE);
if (in_array ($errno, $user_errors)):
POC_Chat:: display_error ($errno, $errmsg, $filename, $linenum, $vars, POC_SESSION_ERROR);
endif;
}
function db_error ($errno, $errmsg, $filename, $linenum, $vars)
{
$user_errors = array (E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE);
if (in_array ($errno, $user_errors)):
POC_Chat:: display_error ($errno, $errmsg, $filename, $linenum, $vars, POC_DB_ERROR);
endif;
}
you use php5 (!)
must chance in index.php, for details look here:
http://www.phpopenchat.de/forum/index.php?topic=790.0