Tags:
create new tag
, view all tags

Question

After a fresh install of the current stable release every call to the edit script yields the following error:

Can't locate object method "new" via package "TWiki::Store::RcsWrap" at ../lib/TWiki/Store.pm line 78

Has anyone a clue?

What I did...

  • I changed the path to the perl binary in all the scripts, because of a different location.
  • I put the absolute path to the perl library directory into setlib.cfg. This was necessary although the testenv page had the path set in the @INC already. I'm not quite a perl hacker so I could not figure out why the path of the testenv page was not sufficient.

Here is the output of my testenv: http://www.twiki.org/p/pub/Support/CantLocateMethodNewViaPackage/TestTWikienvironment.htm

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux 8.0, kernel 2.4.20
Web server: Apache 1.3.22
Perl version: 5.00503
Client OS: MS Windows 2000
Web Browser: IE 5.5, SP2

-- TWikiGuest - 04 Sep 2003

Answer

Thanks for the testenv output, that's very useful as always.

Please attach your TWiki.cfg and setlib.cfg - this may still be a Perl library path issue when Store.pm tries to load TWiki::Store::RcsWrap.pm, which is in the lib/TWiki/Store directory. The error above shows TWiki is using a relative path (../lib/TWiki/Store.pm) although the rest of your message shows you had to use an absolute path - so it's probably a matter of tweaking setlib.cfg.

Also, try setting the following in setlib.cfg so that TWiki uses the full path to your twiki/lib directory:

$twikiLibPath = '/u01/app/oracle/product/9.2/Apache/Apache/twiki/lib';

-- RichardDonkin - 04 Sep 2003

Further information

I set the $twikiLibPath as you proposed. It didn't help but changed the error message. It's now:

Can't locate object method "new" via package "TWiki::Store::RcsWrap" 
at /u01/app/oracle/product/9.2/Apache/Apache/twiki/lib/TWiki/Store.pm line 78. 

I attached my TWiki.cfg and setlib.cfg as you asked. I'm quite sure that the library itself is found because else there would be an error message quite some lines before in the "use" command, wouldn't it?

-- TWikiGuest

I am having the same problem and message. Can somebody please update with the solution, rather than just close.

-- TWikiGuest - 05 Jul 2005

Have you updated to the latest TWikiRelease? Thanks.

-- MartinCleaver - 05 Jul 2005

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg manage 20.9 K 2003-09-10 - 11:19 TWikiGuest  
HTMLhtm TestTWikienvironment.htm manage 13.3 K 2003-09-04 - 12:07 TWikiGuest The output of the testenv script
Unknown file formatcfg setlib.cfg manage 1.5 K 2003-09-10 - 11:19 TWikiGuest  
Topic revision: r8 - 2005-09-01 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.