Question
I have finally got my
ThreadedDiscussionPlugin working. But i found that it only works in the main web.
When I create a threaded discussion in another web it appears correctly at first but when I click on edit or comment. Things start to go down hill. Firstly the edit button takes me to the new page but the text area doesnt contain the text i want to edit. when I click save it pretends like its working but the content of the page changes to the following:
No permission to read topic "TopicName" - perhaps you need to log in? "EditedText".
the errors in the apache log are:
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in string eq at c:\\twiki\\bin\\EDITTH~1 line 68.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in string eq at c:\\twiki\\bin\\EDITTH~1 line 68.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 83.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 85.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 85.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 87.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Contrib/EditContrib.pm line 108.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Contrib/EditContrib.pm line 109.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Contrib/EditContrib.pm line 110.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Contrib/EditContrib.pm line 111.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Contrib/EditContrib.pm line 112.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Contrib/EditContrib.pm line 271.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in pattern match (m//) at ../lib/TWiki/Contrib/EditContrib.pm line 273.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/ThreadedDiscussionPlugin.pm line 161.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at ../lib/TWiki/Plugins/ThreadedDiscussionPlugin.pm line 163.\n
[Tue Jan 24 15:04:19 2006] [error] [client 172.16.50.5] [Tue Jan 24 14:04:19 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution iterator at ../lib/TWiki/Plugins/ThreadedDiscussionPlugin.pm line 66.\n
Note that the plugin works correctly when used in the Main web.
Any help would be much appreciated.
Asim
my threaded discussion is only working in the main web
Environment
--
AsimKhan - 24 Jan 2006
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.
From the error messages I can see that you are using a relative path to search for the libraries. This can cause all sorts of issues. Please specify an absolute path in
twiki/bin/setlib.cfg
--
PeterThoeny - 24 Jan 2006
Hi Peter.
I changed the setting in twiki/bin/setlib.cfg
Asim changed: $twikiLibPath = '../lib'; to
$twikiLibPath = 'c:/twiki/lib';
I still got the error messages:
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in string eq at c:\\twiki\\bin\\EDITTH~1 line 68.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in string eq at c:\\twiki\\bin\\EDITTH~1 line 68.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 83.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 85.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 85.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:\\twiki\\bin\\EDITTH~1 line 87.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 108.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 109.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 110.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 111.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 112.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution (s///) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 271.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in pattern match (m//) at c:/twiki/lib/TWiki/Contrib/EditContrib.pm line 273.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:/twiki/lib/TWiki/Plugins/ThreadedDiscussionPlugin.pm line 161.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in concatenation (.) or string at c:/twiki/lib/TWiki/Plugins/ThreadedDiscussionPlugin.pm line 163.\n
[Wed Jan 25 10:27:00 2006] [error] [client 172.16.50.5] [Wed Jan 25 09:27:00 2006] c:\\twiki\\bin\\EDITTH~1: Use of uninitialized value in substitution iterator at c:/twiki/lib/TWiki/Plugins/ThreadedDiscussionPlugin.pm line 66.\n
--
AsimKhan - 25 Jan 2006
It seems as though the plugin works in any Web that does not use the viewauth script. But on inspection the viewauth script and view script are exactly the same except that viewauth is listed in .htaccess
--
AsimKhan - 31 Jan 2006
if ( ($TWiki::Plugins::ThreadedDiscussionPlugin::postxt eq "") && ($TWiki::Plugins::ThreadedDiscussionPlugin::pretxt eq "") ) {
this is the line it is crashing on in editthread.
Line 68
--
AsimKhan - 08 Feb 2006
For some reason it seems as thought the variables in
ThreadedDiscussionPlugin.pm are not being initialised when operating within an authenticated web.
--
AsimKhan - 10 Feb 2006
I fixed the bug by changing the source code of editcontrib.
--
AsimKhan - 13 Feb 2006
Could you please post your change to the
ThreadedDiscussionPluginDev topic?
--
PeterThoeny - 13 Feb 2006