adodb-mysql.inc error
Brought to you by:
letreo
------------------- Output --------------------------
at E:\CHAT\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!
----------------------------------------------------------
This occurs after good instalation in MySQL on separate
user in index.php
Logged In: NO
i have the same error
Logged In: NO
Changing all the "var" keywords to "private" makes it work
for me. This is an incompatibility with PHP5.
Logged In: YES
user_id=1350999
This is an incompatibility with PHP5.
Changing the "var" statements to "private" will work.
Logged In: YES
user_id=1350999
Found the real issue. Having a custom error handler even
gets E_STRICT errors, which is what is happening here. By
modifying the display_error function in class.Chat.inc, we
can avoid the problem:
-----snip-----
function display_error( $errno, $errstr, $errfile,
$errline, $vars = null, $poc_error_msg = null )
{
// We don't know how to properly handle E_STRICT errors.
// Returning false causes the default error handling to
take over.
if ($errno == E_STRICT) return false;
-----snip-----