archive_me1Add my vote for this tag stale_content1Add my vote for this tag create new tag
, view all tags

Bug: Can't call method "findOne"

Can't call method "findOne" without a package or object reference at ../lib/TWiki.pm line 1624.

Test case

On the page TWiki.TWiki.TWikiSite select TWikiPages.


TWiki version: 20020414beta
TWiki plugins: none
Server OS: Debian GNU/Linux
Web server: Apache 1.3.24
Perl version: 5.6.1
Client OS: Debian GNU/Linux
Web Browser: Galeon 1.2.0

-- JanIvarPladsen - 19 Jul 2002

Follow up

This worked for me:

In Store.pm the readTopMeta function is changed from

  • open( IN_FILE, "<$filename" ) || return "";


  • open( IN_FILE, "<$TWiki::dataDir$filename" ) || die "$!: $filename";

-- JanIvarPladsen - 19 Jul 2002

Using die in a cgi program is too draconian measure. The meta object should always be intialized, so a missing "findOne" method indicates that this is not always the case. Needs to be investigated.


got that on any topic having a form, since Migrated from 01december2001 to 17122002beta. when a topic got no form, and I try to attach one , got it too. it only happens when I switch from view to edit. (OT: is that the right way to report bugs ? any pointer how to investigate that ?. got no experience in perl debug under cgi)

-- LucAbom - 20 Dec 2002

On the 17122002beta release, exactly what error are you seeing? I don't get an error so it's hard to track down the problem.

-- JohnTalintyre - 20 Dec 2002

Software error: Can't locate object method "findOne" via package "RequirementWebForm" (perhaps you forgot to load "RequirementWebForm"?) at /var/www/html/twiki/lib/TWiki/Form.pm line 339.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

i got that on edit on Topics with forms.

btw, could it be in any regards linked to access rights issues ? i may have missed somthing during the migration . I followed http://twiki.org/cgi-bin/view/TWiki/TWikiDocumentation#TWiki_Upgrade_Guide

-- LucAbom - 20 Dec 2002

That really puzzles me. I can't work out why it would think "RequirementWebForm" was a package, also the line number doesn't seem to match the line with the call to findOne on it. Is there any more detail you can give in Web server log, debug.txt,the form you're trying to use ...

A near line is

my %form = $meta->findOne( "FORM" );

Perhaps $meta is not defined. Any chance you could add a TWiki::writeDebug() call before hand to check?

-- JohnTalintyre - 21 Dec 2002

Dear apologies, JohnTalintyre . your answer raised a doubt, and a quick diff revealed that i did not copied the /lib/TWiki/* ... frown once done, form edit worked fine wink still got issues with mailnotify (then touchgraph), which are due to SessionPlugins and TreeViewPlugins. where can I log these ? any log specific to the beta ? Also, are there any documentation on how to debug perl under cgi ? got no experience about that ...

The Codev Web is the correct place to report problems with the Beta. See DebuggingTWikiAndPlugins for some information on debugging.

-- JohnTalintyre - 21 Dec 2002

Fix record

No bug.

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2002-12-21 - JohnTalintyre
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.