Question
In my Twiki error log I get the following:
[Mon Nov 24 15:26:58 2003] view.cgi: Use of uninitialized value in concatenation (.) at /home/www/sites/twiki.sps.mot.com/lib/TWiki.pm line 1834.
I read in a previous submission for the last version of Twiki that this was related to having the TWiki.cfg wrong - something about having paths and not having URL's in the CFG file. A snippet of my twiki.cfg looks like:
$defaultUrlHost = "http://twiki.sps.mot.com";
# %SCRIPTURLPATH% : cgi-bin URL path for TWiki:
$scriptUrlPath = "/bin";
# %PUBURLPATH% : Public data URL path for TWiki (root of attachments) :
$pubUrlPath = "/pub";
# Public data directory (file path not URL), must match $pubUrlPath :
$pubDir = "/home/www/sites/twiki.sps.mot.com/pub";
# Template directory :
$templateDir = "/home/www/sites/twiki.sps.mot.com/templates";
# Data (topic files) root directory (file path not URL):
$dataDir = "/home/www/sites/twiki.sps.mot.com/data";
# Log directory for log files, debug and warning files. Default "$dataDir" :
$logDir = "$dataDir";
Running the lastest version of
testenv does not produce this error.
Any thoughts? thanks
Environment
--
SteveRJones - 24 Nov 2003
Answer
- Oops, I may have found it in:
$pubUrlPath = "/pub";
as the lines 1833 and 1834 in TWiki.pm refer to this variable.
--
SteveRJones - 24 Nov 2003
Oops, nope, that wasn't it. I'm still looking for some answers.
--
SteveRJones - 24 Nov 2003
One thing to check; do any of the plugins you have installed call handleInternalTags (directly or via a function that in turn calls it, such as commonTagsHandler)? If the incorrect parameters are being passed from the plugin then $_[1] and $_[2] may be undefined.
--
CrawfordCurrie - 15 Dec 2003
Well, as these are just warnings I am not overly concerned and i have been going through and checking plugins as Crawford suggests.
Closing this help request.
--
SteveRJones - 21 Jan 2004