Question
I downloaded and installed Twiki about two years ago. It all went relatively smoothly, and we've been using it happily since. However, I went to access it today, and it didn't work. Got a 500 error. In any case, I downloaded and ran the testenv script, which says,
"WARNING: TWiki.cfg is unreadable or has a configuration problem that is causing a Perl error - the following message(s) relate to TWiki.cfg and should help locate the problem.
No such file or directory
Can't locate TWiki.cfg in
@INC
(
@INC
contains: ../lib C:/Perl/lib C:/Perl/site/lib .) at (eval 1) line 1."
I had a different strange problem the other day. A CGI script that had been working perfectly well for quite a while suddenly stopped working. In investigating the script (which I hadn't written) it was pointing to e:\perl\bin\perl.exe. I changed it to reference c:\ and it worked. I have no idea why the path was wrong, and no idea why it worked for so long but stopped last week. Could something similar to happening with the TWiki?
I am a reasonably technical user, however, there's a lot that I can't recall about the Twiki configuration. I probably know enough to be dangerous... I've been reading through the
WindowsInstall doc. I found the
TWikiCfgFileNotFound topic, however, my testenv output doesn't indicate that any particular line in Twiki.cfg is at issue. Also, I don't seem to have a setlib.cfg file; perhaps that's due to running an older version of Twiki.
Should I just try upgrading to the latest version of Twiki? Will my topics and user registrations be ok?
I've uploaded the relevant files from my environment. I also ran a perl -w TWiki.cfg, which gave me a lot of errors, which when I checked out the first few, there didn't seem to be anything wrong. How could I get a copy of that output to attach to this topic (if that would be helpful)?
Thanks in advance for any advice or assistance.
Todd
Environment
--
ToddChapin - 21 Sep 2004
Answer
Please check your
bin/setlib.cfg file, and change the TWiki lib path from a relative path to an absolute one.
--
PeterThoeny - 22 Sep 2004
I don't seem to have a
bin/setlib.cfg file. Perhaps that file does not exist in the version of TWiki which I am running? The file doesn't seem to be in the TWiki zip file that I originally installed from.
Thanks.
--
ToddChapin - 22 Sep 2004
Oh, that is an old version of TWiki. You need to edit all TWiki script files and change:
use lib ( '../lib' );
to:
use lib ( 'C:/path/to/your/twiki/lib' );
--
PeterThoeny - 23 Sep 2004
Thank you for the information. I appreciate it and will get started on that. How easy is it to upgrade TWiki, and will all my data be safe? I know that with some softwares, upgrading from a very old version to a very recent version can make data migration an issue.
Thanks again.
Todd
--
ToddChapin - 23 Sep 2004
We make a good effort to keep TWiki compatible with existing data (we had voices to simply provide upgrade scripts but I am against this). So you will not run into issues with your data.
Another question is upgrade. Depending on how much customization you did, it can be easy to more difficult. The latest
TWikiRelease01Sep2004 ships with an upgrade script.
--
PeterThoeny - 25 Sep 2004