From: Andrew H. <hur...@ll...> - 2003-11-17 19:07:22
|
Can't locate object method "error" via package "OpenInteract::Request" at /usr/local/lib/perl5/site_perl/5.8.0/OpenInteract/Request.pm line 123. Thats the error I'm getting when I try to access my OI development website. It only happens after I install the module I've been working on. So far I've tried the solution presented here: http://openinteract.sourceforge.net/cgi-bin/twiki/view/OI/FruitExample But I think that that error wasn't exactly what I'm getting. Any ideas what I could do in my module that might cause this error? It happens at the top level of the site ( i.e. when I access http://www.example.com/ ). The only thing I can think is that there must be something I define in my module that affects the whole site's action system. I include some useful information below. Thanks for the help, -Andrew The following is the error as seen in the error log when I get this in the browser: ============================== Request started: Mon Nov 17 10:17:23 2003 path: ( / ) PID: (36083) OpenInteract::setup_server_interface (147) >> Server hostname set to www.example.com:8081 OpenInteract::setup_server_interface (150) >> Request coming from 128.115.78.79 OpenInteract::parse_uri (206) >> Original path: (/) OpenInteract::parse_uri (214) >> Items in the path: OpenInteract::parse_uri (227) >> Action found from URL: OpenInteract::parse_uri (234) >> Original path/query string set to: / OpenInteract::Request::lookup_conductor (224) >> Find conductor for action () OpenInteract::Request::lookup_action (253) >> Find action corresponding to () OpenInteract::Request::lookup_action (274) >> Found action info for () OpenInteract::find_action_handler (246) >> Conductor not found; displaying oops page. --EXITED WITH ERROR from main handler eval block Error: 0 As these might matter also, I've also pasted my action.perl and spops.perl # action.perl # all of the method's mentioned exist, as does the default method # for those entries that need it. $action = { 'document' => { 'class' => 'OpenInteract::Handler::Document', 'security' => 'yes', 'cache_key' => { show => 'document::show', }, 'cache_expire' => { show => 700, }, }, 'documentpage' => { 'class' => 'OpenInteract::Handler::DocumentPage', 'security' => 'yes', }, 'document_section' => { 'is_lookup' => 'yes', 'object_key' => 'document_section', 'order' => 'section', 'field_list' => [ 'section' ], 'label_list' => [ 'Section' ], 'size_list' => [ 25 ], 'title' => 'Document Sections', }, 'document_tools_box' => { 'template' => 'document_tools_box', 'package' => 'document', 'title' => 'Document Tools', 'weight' => 4, 'security' => 'no', }, 'document_page_tools_box' => { 'template' => 'document_page_tools_box', 'package' => 'document', 'title' => 'Document Page Tools', 'weight' => 4, 'security' => 'no', }, 'show_document_paragraph' => { 'class' => 'OpenInteract::Handler::DocumentParagraph', 'method' => 'show_para', 'security' => 'no', }, }; # spops.perl $spops = { 'document' => { class => 'OpenInteract::Document', isa => [ qw/ OpenInteract::SPOPS::DBI SPOPS::Secure SPOPS::DBI::MySQL SPOPS::DBI / ], rules_from => [ qw/ SPOPS::Tool::DBI::MaintainLinkedList/ ], field => [ qw/ document_id posted_on posted_by title document_text section active prev_document_id next_document_id expires_on active_on num_pages / ], column_group => { listing => [ qw/ posted_on posted_by title section active expires_on active_on / ] }, id_field => 'document_id', increment_field => 1, sequence_name => 'oi_document_seq', base_table => 'document', no_insert => [ qw/ document_id / ], skip_undef => [ qw/ section active expires_on / ], sql_defaults => [ qw/ section active / ], no_update => [ qw/ document_id posted_on num_pages / ], field_alter => {}, alias => [], fulltext_field => [ 'title', 'document_text' ], has_a => { 'OpenInteract::User' => [ 'posted_by' ] }, links_to => {}, creation_security => { u => undef, g => { 3 => 'WRITE' }, w => 'READ', }, as_string_order => [ qw/ title document_text section posted_on posted_by expires_on num_pages / ], as_string_label => { title => 'Title', document_text => 'Document Text', posted_on => 'Posted On', posted_by => 'Posted By', expires_on => 'Expires On', section => 'Section', num_pages => 'Number of Pages' }, track => { create => 1, update => 1, remove => 1 }, display => { url => '/document/view/' }, name => 'title', object_name => 'Document', # Linked List stuff linklist_previous => 'prev_document_id', linklist_next => 'next_document_id', }, 'document_page' => { class => 'OpenInteract::DocumentPage', isa => [ qw/ OpenInteract::SPOPS::DBI SPOPS::Secure SPOPS::DBI::MySQL SPOPS::DBI OpenInteract::Commentable / ], rules_from => [], field => [ qw/ document_page_id title page_text page_num document_id max_page_num num_paragraphs / ], column_group => { listing => [ qw/ title / ] }, id_field => 'document_page_id', increment_field => 1, sequence_name => 'oi_document_page_seq', base_table => 'document_page', no_insert => [ qw/ document_page_id / ], skip_undef => [], sql_defaults => [], no_update => [ qw/ document_page_id document_id page_num max_page_num / ], field_alter => {}, alias => [], fulltext_field => [ 'title', 'page_text' ], has_a => {}, links_to => { 'OpenInteract::Document' => [ 'document_id' ] }, creation_security => { u => undef, g => { 3 => 'WRITE' }, w => 'READ', }, as_string_order => [ qw/ title page_text / ], as_string_label => { title => 'Title', page_text => 'Page Text' }, track => { create => 1, update => 1, remove => 1 }, display => { url => '/document_page/view/' }, name => 'title', object_name => 'DocumentPage', }, 'document_paragraph' => { class => 'OpenInteract::DocumentParagraph', isa => [ qw/ OpenInteract::SPOPS::DBI SPOPS::Secure SPOPS::DBI::MySQL SPOPS::DBI OpenInteract::Commentable / ], rules_from => [], field => [ qw/ document_paragraph_id para_text para_num document_page_id / ], column_group => { listing => [ qw/ para_text / ] }, id_field => 'document_paragraph_id', increment_field => 1, sequence_name => 'oi_document_para_seq', base_table => 'document_paragraph', no_insert => [ qw/ document_paragraph_id / ], skip_undef => [], sql_defaults => [], no_update => [ qw/ document_paragraph_id document_page_id para_num / ], field_alter => {}, alias => [], fulltext_field => [ 'para_text' ], has_a => {}, links_to => { 'OpenInteract::DocumentPage' => [ 'document_page_id' ] }, creation_security => { u => undef, g => { 3 => 'WRITE' }, w => 'READ', }, as_string_order => [ qw/ para_text / ], as_string_label => { para_text => 'Paragraph Text' }, track => { create => 1, update => 1, remove => 1 }, display => { url => '/document_paragraph/view/' }, name => 'para_text', object_name => 'DocumentPage', }, document_section => { class => 'OpenInteract::DocumentSection', code_class => [], isa => [ qw/ OpenInteract::SPOPS::DBI SPOPS::DBI::MySQL SPOPS::DBI / ], field => [ qw/ document_section_id section / ], id_field => 'document_section_id', no_insert => [ 'document_section_id' ], increment_field => 1, sequence_name => 'oi_document_section_seq', base_table => 'document_section', name => 'section', object_name => 'Document Section', display => { url => '/Lookups/' }, }, }; |