Tags:
create new tag
view all tags

SID-01236: Edit does not work related to EditAction variable TWiki 5.02

Status: Answered Answered TWiki version: 5.0.2 Perl version: 5.12.4 ActiveState
Category: CategoryError Server OS: windows Last update: 14 years ago

I am new to Twiki, after several tries i finally was able to install it using "TWiki 4.2 Windows Installation Guide" instead of all the other ones where requires cygwin to be installed.

So it seems to be working since navigation to the website works fine.

Configure all done no errors no warnings I even create a new user account and got the email. So everything is fine up to there.

Here is the problem... any, any try to edit a page (using menu or button top right corner), add a topic on the sandbox ... results on: "Use of uninitialized value in lc at c:/wamp/www/twiki/lib/TWiki/UI/Edit.pm line 83."

the problem is LC is expecting a value but the url has no 'action'

I got around that by adding EDITACTION variable to the preferences, however

Adding a topic still does not work same error If I manually add "action=whatever" to the url then it works.

Is there something I missed from the installation? or this is a new problem?

Action is supposed to be an Optional parameter, so why it is failing?

Thank you

-- RobertoCarlos - 2011-07-20

Discussion and Answer

This looks like a bug. Not sure however why this is not handled as a warning only.

Try this to fix: Change line 83 of twiki/lib/TWiki/UI/Edit.pm from:

my $editaction = lc($query->param( 'action' )) || "";

To:

my $editaction = lc( $query->param( 'action' ) || "" );

-- PeterThoeny - 2011-07-21

This issue is tracked at TWikibug:Item6770.

-- PeterThoeny - 2011-07-21

Thank you Peter

I do not know perl but the solution it is so obvious, instead of a null pass at least an empty string to the LC function.

-- RobertoCarlos - 2011-07-21

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Edit does not work related to EditAction variable TWiki 5.02
SupportCategory CategoryError
TWiki version 5.0.2
Server OS windows
Web server apache
Perl version 5.12.4 ActiveState
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-07-21 - RobertoCarlos
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.