SID-02252: Software Error
| Status: |
Asked |
TWiki version: |
5.0.1 |
Perl version: |
5.8.8 |
| Category: |
CategoryPlugins |
Server OS: |
Redhat 5.6 |
Last update: |
9 years ago |
I m receiving the below error on /bin/configure
I tried upgrading plugin Spreadsheet manually once the installer started running the twiki software is throwing me the below mentioned error.
Argument "" isn't numeric in numeric lt (<) at /var/www/html/wiki/lib/TWiki/Configure/Checkers/Sessions/ExpireAfter.pm line 36
Can you please help me to fix this issue.
--
Sriharsha Panja - 2016-09-26
Discussion and Answer
It seems that your TWiki configuration somehow got out of order... If you have a backup of a working configuration file (that would be
/var/www/html/wiki/lib/LocalSite.cfg at your site), compare the backup file with the current settings. There's one simple thing to check:
- Go to TWiki's configuration interface
- Check "Yes, I've read all the documentation" - this makes the "expert" settings visible
- In the Security section, there's a subsection Sessions which contains a setting for
{Sessions}{ExpireAfter}.
- Make sure there's a numeric value in this field. TWiki's default is 21600 (six hours).
While looking into this I found a quirk in the configuration interface (probably harmless): After changing the value with
configure, you'll see
-
$TWiki::cfg{Sessions}{ExpireAfter} = '21600';
Actually, it should read:
-
$TWiki::cfg{Sessions}{ExpireAfter} = 21600;
...but Perl will do the appropriate conversion on the fly.
--
Harald Jörg - 2016-09-26
Hello Harald,
Thanks for your reply on my issue.
I have tried the steps mentioned above, but i cannot found the "Security section" in my configure page.
All i can see is only 2 tabs 1. Environment Variables(Read only) 2. CGI Setup (Readonly).
and next to it is "Software error:
Argument "" isn't numeric in numeric lt (<) at /var/www/html/wiki/lib/TWiki/Configure/Checkers/Sessions/ExpireAfter.pm line 36.
Best Regards,
Sriharsha Vardhan
--
Sriharsha Vardhan - 2016-10-10
Oh - this indicates that your TWiki configuration file is totally broken.
To repeat:
If you have a backup of a working configuration file (that would be /var/www/html/wiki/lib/LocalSite.cfg at your site), compare the backup file with the current settings.
In any case, have a look at
/var/www/html/wiki/lib/LocalSite.cfg and the setting for
$TWiki::cfg{Sessions}{ExpireAfter}. If it is
"", change it to
21600 and retry
configure.
--
Harald Jörg - 2016-10-10
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.