Opened 7 years ago

Closed 7 years ago

#1483987 closed Bugs (fixed)

rcube_mdb2::now() method missing in svn r328 version

Reported by: billybecker Owned by:
Priority: 5 Milestone:
Component: PHP backend Version:
Severity: critical Keywords:
Cc:

Description

my system:

gentoo linux system
php 5.1.4
apache 2.0.55
postgres 8.1.4
using MDB2 db engine

first noticed:

I just updated to latest svn build and dropped all tables in the database and recreated them using the postgres.initial.sql.

problem:

After login, i just get a blank screen.

log file had these errors:

PHP Fatal error: Call to undefined method rcube_db::now() in /var/www/mail.ndap.com/htdocs-secure/roundcube/program/include/main.inc on line 469

PHP Fatal error: Call to undefined method rcube_db::now() in /var/www/mail.ndap.com/htdocs-secure/roundcube/program/include/main.inc on line 514

cause:

the rcube_mdb2.inc file no longer defined the now() function

solution:

i copied the now() function from the rcube_db.inc file into the rcube_mdb2.inc file, and it worked fine.

  /*
   * Return SQL function for current time and date
   *
   * @return string SQL function to use in query
   * @access public
   */
   function now()
     {
     switch($this->db_provider)
       {
       case 'mssql':
         return "getdate()";

       default:
         return "now()";
       }
     }

suggestion:

please put the now() function back into the rcube_mdb2.inc file.

Change History (1)

comment:1 Changed 7 years ago by thomasb

  • Resolution set to fixed
  • Status changed from new to closed

Added to Trunk [7139e33e]

Note: See TracTickets for help on using tickets.