Gossamer Forum
Home : Products : DBMan : Installation :

fatal error: Undefined subroutine

Quote Reply
fatal error: Undefined subroutine
fatal error: Undefined subroutine &Apache::ROOT::cgi_2dbin::dbman::db_2ecgi::auth_cleanup called at /usr/local/httpd/cgi-bin/dbman/db.cgi

Why this problem?
Quote Reply
Re: fatal error: Undefined subroutine In reply to
If you have added a new sub-routine in either your html.pl or db.cgi file, you need to add the following codes in the sub main routine in db.cgi file in the midst of the elsif statements:

Code:
elsif ($in{'new_routine'}) { if ($per_view) { &html_new_routine; } else { &html_unauth; } }

Change new_routine with the name of the sub-routines you've added. Also, if you want this sub-routine viewed by other permissions, then you will have to change $per_view to the appropriate permission variable (like $per_add, $per_admin, $per_mod, $per_del).

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: fatal error: Undefined subroutine In reply to
No, I don't have added a new subroutin;

'auth_cleanup' is standard.

Is a bug of db.cgi?
Quote Reply
Re: fatal error: Undefined subroutine In reply to
Nope...What changes have you made to your files?

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us