Menu

#338 var: Deprecated. Please use the public/private/protected mo

Display Error
open
nobody
5
2005-10-10
2005-10-10
Anonymous
No

Name: krishnapriya
Email: krishna04_priya@yahoo.co.in

hi,
We installed phpopenchat3.0 version. i am using windows2000 os,php5 and mysql4.1.7. i am getting the following error.

Sorry, an error occurred.
at c:\adodb\drivers\adodb-mysql.inc.php:19
[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.4 (WINNT)
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Webserver: Apache/1.3.33 (Win32) PHP/5.0.4
URI: http://localhost/phpopenchat/index.php

how can i rectify this error.

Discussion

  • Cristian Rodriguez

    Logged In: YES
    user_id=710039

    phpopenchat is not php5 compatible yet, probably the next
    release will be.

     
  • Nobody/Anonymous

    Logged In: NO

    just change the [var $...] to [public $...] in the
    adodb-mysql.inc.php file.

    eg.
    var $databaseType = 'mysql';
    to
    public $databaseType = 'mysql';

    Worked for me.

     

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.