Question
We upgraded our twiki and since doing so new links are not created when you set one up by editing a page.
I think the old version was '30 Oct 2004 $Rev: 1794 $'; from TWiki.pm.
Things worked fine in the old system. After upgrading, if I edit a page and put in a
WikiWord and then save the page there is no hyperlink. If I make a link in a bulleted list the bullet shows up but no word at all, just blank space.
If I then go to the url address and type in the same
WikiWord the system will tell me this is not a topic and asks if I want to create it. If I then create it the link shows up in the original page that was edited.
There are no indications in logs as to any problems. I can't find anything via web search of anyone else with similar problem. Perhaps the upgrade was too much of a version jump?
Please HELP if you can.. Thank you.
Environment
--
MitchSheean - 13 Sep 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
I'd guess there's a missing preference variable
%NEWLINKFORMAT% which has been introduced in 4.1 and which has no suitable default if you just take over an "old" TWiki.TWikiPreferences topics. The default setting is (in verbatim, because it contains HTML tags):
* Set NEWLINKFORMAT = <span class="twikiNewLink">$text<a href="%SCRIPTURLPATH{"edit"}%/$web/$topic?topicparent=%WEB%.%TOPIC%" rel="nofollow" title="%MAKETEXT{"Create this topic"}%">?</a></span>
You should be able to find this definition in your new version's distribution topic TWiki.TWikiPreferences, at twiki.org see
TWiki04x01.TWikiPreferences.
Per concept, you should be able to import TWiki.TWikiPreferences from the distribution, because all installation-specific changes should be made at Main.TWikiPreferences. If you've made many changes to TWiki.TWikiPreferences in your old version, I'd recommend to diff it against the 2004 distribution TWikiPreferences and move these local settings to Main.TWikiPreferences. If I recall correctly, the mechanism using Main.TWikiPreferences has been introduced in TWiki 4.0, so you didn't have it in your TWiki before upgrading.
TWiki.UpgradingTWiki04x00PatchReleases#TWikiPreferences (and the whole topic in general) may give additional hints, though is it targeted mostly at upgrades since 4.0.
--
HaraldJoerg - 14 Sep 2007
Awesome. Thanks that did the trick! My variable was incomplete with only a partial "span class=" and then nothing. There seem to be a lot of other variables that are incomplete. It's possible the configure script didn't parse things right.
Thanks again,
--
MitchSheean - 14 Sep 2007