Question
Installed the
FormQueryPlugin but when I try to hit the autocreate script, either from cgi I get this:
Can't locate object method "new" via package "FormQueryPlugin::WebDB" (perhaps you forgot to load "FormQueryPlugin::WebDB"?) at /usr/local/apache/sites/wiki/twiki/bin/autocreate line 19.
[Wed Jan 5 22:17:48 2005] [error] [client 66.108.84.231] Premature end of script headers: /usr/local/apache/sites/wiki/twiki/bin/autocreate
Same thing happens from command-line. The Twiki and all the other plugin's seem to work. I've tried adding use
FormQueryPlugin::WebDB to the script, messing with the
@INC
path, etc. but I'm not PERL guru and I can't figure it out.
-- Thanks
Environment
--
BruceFancher - 06 Jan 2005
Answer
What version of the FQP are you using?
--
CrawfordCurrie - 17 Jan 2005
Hello, I have the same problem. Once I use FQP V 1.3 everything fails. I can still use 1.2.
Which could be the problem?
--
GustavoAdolfoLopez - 10 Feb 2005
Change line 20 of the autocreate script to this:
my $db = new TWiki::Plugins::FormQueryPlugin::WebDB( $webName );
I'll fix that in the next release.
--
CrawfordCurrie - 16 Feb 2005
I'm using FQP v1.201 (the one on
FormQueryPlugin right now) and I had the same problem. Though I fixed it doing the opposite. That is, I changed line 20 to:
my $db = new FormQueryPlugin::WebDB( $webName );
--
PabloHoffman - 22 Apr 2005