[rt-users] Can't call method "ping"

Autrijus Tang autrijus at autrijus.org
Thu Aug 21 14:38:13 EDT 2003


On Thu, Aug 21, 2003 at 11:16:16AM -0700, amelton at gservices-us.com wrote:
> [Thu Aug 21 08:36:08 2003] [error] Can't call method "ping" on an
> undefined value at /opt/rt3/lib/RT.pm line 122.

Same thing has happened here recently with MySQL 4.1.

> sub Init {
>     require RT::Handle;
>     #Get a database connection
>         unless ($Handle && $Handle->dbh->ping) {

Changing this line to

          unless ($Handle && $Handle->dbh && $Handle->dbh->ping) {

seemed to fix the problem with no apparent drawbacks.

Thanks,
/Autrijus/



More information about the rt-users mailing list