Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems
creating relation between tables?

Posted by revtopo (revtopo), 17 July 2007
hi all there,

i have been writing a code in perl to create a database webinterface (using maypole). every thing is fine other than that i get numerous errors while trying to create relation between the tables. every tme a different error

the error am getting is :

Can't call method "class_of" on an undefined value at /home/jic-atidb/perl/lib/site_perl/5.8.0/ line 635, <DATA> line 1.\n, referer:

Can't call method "class_of" on an undefined value at /home/jic-atidb/perl/lib/site_perl/5.8.0/ line 635, <DATA> line 1.\n, referer:

though i could make the webpage displayed i think there is some problem in it )

the code am using is:

package TOPO;
use warnings;
use Carp;
use base 'Apache::MVC';
use Class:BI::Loader::Relationship;
use Data:umper;
use Maypole::Constants;
use Maypole::Application;
my $title = "TOPO database. Very rudimentary interface as a starting point for development.";

TOPO->setup("dbi:mysql:topo_interpro2","nobody","",{AutoCommit => 1, PrintError => 1});

TOPO->config->{application_name} = $title;

TOPO->config->{loader}->relationship($_) for
(" entry has abstract");

could any one find were the error and help me out of this pool please

thnks in advance

Posted by admin (Graham Ellis), 17 July 2007
I think this is the same question you've asked in another thread - perhaps you posted twice by mistake?   I'm going to lock this thread and suggest that anyone who has a suggestion answer in the Perl forum - that way we won't be doubling the work and multiplying any confusion with two sets of answers

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: • WEB: • SKYPE: wellho