Menu

#121 uncaugth exception 'Zend Exception'

database
open
nobody
None
8
2015-02-08
2013-07-05
No

[Fri Jul 05 13:20:39 2013] [error] [client 192.168.1.22] PHP Fatal error: Uncaught exception 'Zend_Exception' with message 'Fatal error: Can't connect to SQL server' in /var/www/webacula/html/index.php:178\nStack trace:\n#0 {main}\n thrown in /var/www/webacula/html/index.php on line 178

centos 6.3 using postgresql-9.2 with bacula 5.2.13

Discussion

  • aristotle ahito

    aristotle ahito - 2013-07-11

    i have been scouring the net about this error and it seems no one was able to resolve this issue

     
  • sabitov

    sabitov - 2015-02-08

    There are a lof of lines like this:

    'DurationTime' => 'TIMEDIFF(NOW(), StartTime)'
    

    all of them should be fixed to be like this:

    'DurationTime' => new Zend_Db_Expr('TIMEDIFF(NOW(), StartTime)')
    

    Just check all .php files id 'application/models' dir.
    I'm not sure this fix 100% correct, but it 'works for me' :)

    PS. This bug is a result of Zend upgrade/ Specificaly for me it was an upgrade from ZendFramework-1.11.12 to ZendFramework-1.12.9

     

    Last edit: sabitov 2015-02-08

Log in to post a comment.

MongoDB Logo MongoDB