Tags:
create new tag
, view all tags

Question

Good Day to all,

I have encountered a problem with EditContrib. I'm trying to install SectionalEdit Plugin and have installed the EditContrib

I got the below error when im trying to access the WebHome of my Twiki once i start the SectionEdit Plugin.

| 13 Dec 2007 - 15:04 | Can't locate object method "_expandAllTags" via package "TWiki" at c:\PROGRA~1\TWiki\twiki\lib/TWiki/Contrib/EditContrib/Include41.pm line 133. at c:\PROGRA~1\TWiki\twiki\lib/TWiki/Contrib/EditContrib/Include41.pm line 133 TWiki::Contrib::EditContrib::Include41::_INCLUDE('TWiki=HASH(0x226ce4)', 'TWiki::Attrs=HASH(0x22cf9c4)', 'WebHome', 'Main', 'TWiki::Meta=HASH(0x20dee70)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki.pm line 2654 TWiki::_expandTagOnTopicRendering('TWiki=HASH(0x226ce4)', 'INCLUDE', '"Main.WebLeftBar"', 'WebHome', 'Main', 'TWiki::Meta=HASH(0x20dee70)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki.pm line 2575 TWiki::_processTags('TWiki=HASH(0x226ce4)', '

\x{a}
...', 'CODE(0x1817f40)', 16, 'WebHome', 'Main', 'TWiki::Meta=HASH(0x20dee70)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki.pm line 2499 TWiki::expandAllTags('TWiki=HASH(0x226ce4)', 'SCALAR(0x2125f7c)', 'WebHome', 'Main', 'TWiki::Meta=HASH(0x20dee70)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki.pm line 2851 TWiki::handleCommonTags('TWiki=HASH(0x226ce4)', '
\x{a}
...', 'Main', 'WebHome', 'TWiki::Meta=HASH(0x20dee70)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki/UI/View.pm line 395 TWiki::UI::View::_prepare('
\x{a}
...', 'TWiki=HASH(0x226ce4)', 'Main', 'WebHome', 'TWiki::Meta=HASH(0x20dee70)', 0) called at c:\PROGRA~1\TWiki\twiki\lib/TWiki/UI/View.pm line 382 TWiki::UI::View::view('TWiki=HASH(0x226ce4)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki/UI.pm line 159 TWiki::UI::__ANON__() called at c:\PROGRA~1\TWiki\twiki\lib/CPAN/lib//Error.pm line 379 eval {...} called at c:\PROGRA~1\TWiki\twiki\lib/CPAN/lib//Error.pm line 371 Error::subs::try('CODE(0x225fe8)', 'HASH(0x20bacc4)') called at c:\PROGRA~1\TWiki\twiki\lib/TWiki/UI.pm line 197 TWiki::UI::run('CODE(0x18a7698)', 'view', 1) called at C:/Program Files/TWiki/twiki/bin/view line 32

Environment

TWiki version: TWikiRelease04x02x00beta3
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows Server 2003
Web server: Apache Http Server 2.2.4
Perl version: 5.8.8 Built 820
Client OS: MS windows xp
Web Browser: Mozilla Firefox 2.0.0.11
Categories: Plugins

-- VincentTan - 13 Dec 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 02 Feb 2008

I can solve this problem, by 1. Change "_expandAllTags" to "expandAllTags" in Include41.pm file after change no.1 you will got the error about "Can't call method "readTemplate"", do this step below 2. Change "$session->{templates}->readTemplate" to "$session->templates->readTemplate" in EditContrib.pm file

-- NokNok - 2009-07-23

Use find lib | xargs grep expandAllTags to find location where _expandAllTags is used

I replaced all occurences of "_expandAllTags" to "expandAllTags" in lib/TWiki/Contrib/EditContrib/Include40.pm and lib/TWiki/Contrib/EditContrib/Include41.pm

expandAllTags is defined in lib/TWiki.pm.

The correct solution is to fix it in the EditContrib package - though I still wonder why the author had an underscore.

This got it working.

-- AnilPillai - 2009-09-07

Thanks Anil for sharing this with the community. I added a pointer to this at EditContribDev.

-- PeterThoeny - 2009-09-07

 
Change status to:
Topic revision: r5 - 2009-09-07 - 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.