Question
After my server was hacked I am trying to move my old twiki code into a chroot jail. The old twiki code is up and running again but not everything is OK. Many of the problems are related to
TWikiVariables not resolving.
For example, %INITIALS does not resolve in the
KoalaSkin edit template. %WIKILOGOIMG does not display the logo. %SPACEDTOPICP% does not resolve.
Has anyone installed twiki in a chroot jail ?
What are suggestions for troubleshooting these problems ?
I'll take each of the mysteries one at a time below ...
Mysteries
Session Plugin
The most significant problem was that the
SessionPlugin was not working correctly. Very similar to the problems described in
AccessProblemRememberLoginWikiName, after logon to edit
TWikiTopics the %WIKIUSERNAME and related variables still resolve to
TWikiGuest even though apache session IDs are being written to
.../.../httpd/tmp
SOLVED: this entry in apache's error log led me to find the solution in
SessionPluginAndCGISession. Thanks also to
LynnwoodBrown in
TWikiIRC.
[Sat Nov 05 16:45:14 2005] [error] [client 201.235.46.100] [Sat Nov 5 16:45:13 2005] view: \t(in cleanup) Can't call method "store" on an undefined value at /usr/lib/perl5/site_perl/5.8.6/CGI/Session.pm line 192 during global destruction., referer: http://site:port/twiki/bin/view/TWiki/WebHome
%SPACEDTOPICP
Again with
KoalaSkin, and its prerequisite:
SpacedWikiWordPlugin. The browser title read :
%SPACEDTOPICP% < TWiki < TWikiSite Name
This one was solved by unzipping the
SpacedWikiWordPlugin.zip once more and re-applying the
SPACEDTOPICP.patch
%INITIALS
%INITIALS did not resolve in the
KoalaSkin edit template.
This one was solved by re-applying the patch to
Edit.pm found in
TerserSignature
%WIKILOGOIMG
Using the
KoalaSkin, my logo
ALT text is displayed but logo is missing.
Clues
Apache's error log gives a missing
favicon.ico, but I don't think that's the problem.
[Tue Nov 15 17:29:50 2005] [error] [client 200.xxx.160.29] File does not exist: /apache/htdocs/favicon.ico
Why would the apache error for favicon occur for the
root of htdocs rather than the
twiki folder ? TWiki is the only think installed, but never-the-less it is still installed under
../../htdocs/twiki

Here's a new clue - while the server is still under construction, I'm running apached on a non-standard port. To
View Source on the page, I can see that the
KoalaSkin is giving up the correct URL for the %WIKILOGOIMG, except without the port number ...
Environment
--
KeithHelfrich - 05 Nov 2005
Answer
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.
Is it only koalaskin that doesn't resolve variables? what about with classic skin?
--
MattWilkie - 16 Nov 2005
Hi Matt,
most problems are related to
KoalaSkin, but not all. For example, the
SpacedWikiWordPlugin needed a re-install b/c it did not work with koala or pattern skin. also, the session handling was not related to koala.
--
KeithHelfrich - 28 Nov 2005