Menu

Unknown error

2005-11-16
2013-04-30
  • Rajiv NEKKENTI

    Rajiv NEKKENTI - 2005-11-16

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

     
    • vince

      vince - 2006-05-16

      I am also getting the same error. Have you figured out the problem yet?
      Vince

       
      • webdan

        webdan - 2007-01-09

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

         
    • hartmut götze

      hartmut götze - 2006-05-28

      you use php5 (!)
      must chance in index.php, for details look here:
      http://www.phpopenchat.de/forum/index.php?topic=790.0

       

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.