SID-01236: Edit does not work related to EditAction variable TWiki 5.02
| Status: |
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
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.