From: Boris Z. <bz...@2b...> - 2004-05-28 09:19:06
|
Hi Bill, I do not know, but it looks that get_global_attr is called on something that is not a Apache::PageKit::Config object, but defined. perl -e '$x=12;$x->get_global_attr()' I have no real good clue, perhaps this helps more. # file Apache::PageKit::Model sub pkit_gettext { my ( $model, $text ) = @_; my $config = $model->config; my $use_locale = $config->get_global_attr('use_locale') || 'no'; the config object in the line above is wrong for some reason in your code. Look at your pkit_gettext or pkit_gettext_message calls. If ths is not enough dump the object in question to your errorlog and look for more hints. sub pkit_gettext { my ( $model, $text ) = @_; use Data::Dumper; warn Dumper($model); my $config = $model->config; my $use_locale = $config->get_global_attr('use_locale') || 'no'; Am Freitag 28 Mai 2004 09:08 schrieb Bill Karwin: > Hi, I'm getting an error with PageKit but I don't know how to debug it. > > FATAL: Can't call method "get_global_attr" without a package or object > reference at /usr/local/lib/perl5/site_perl/5.8.0/Apache/PageKit/Model.pm > line 395, <GEN20> line 8. > > The stack trace comes from an eval { } block, so I can't tell exactly where > it is trying to call get_global_attr. > > I put in some debugging print statements, and this error seems to occur > right after I call pkit_validate_input() for my form validation. The > validation profile is long; I don't know what part of it might be at fault. > > Before I post the validation profile, or start debugging by eliminating > parts of the validation profile, does this error sound familiar to anyone? > > Regards, > Bill Karwin > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users -- Boris |