Menu

#301 adodb-mysql.inc error

open
nobody
5
2005-06-05
2005-06-05
Anonymous
No

------------------- 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

Discussion

  • Nobody/Anonymous

    Logged In: NO

    i have the same error

     
  • Nobody/Anonymous

    Logged In: NO

    Changing all the "var" keywords to "private" makes it work
    for me. This is an incompatibility with PHP5.

     
  • dookiebombtoo

    dookiebombtoo - 2005-09-24

    Logged In: YES
    user_id=1350999

    This is an incompatibility with PHP5.
    Changing the "var" statements to "private" will work.

     
  • dookiebombtoo

    dookiebombtoo - 2005-09-24

    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-----

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.