SID-02140: After upgrading to Twiki 6, WebTopicCreate is not working.
| Status: |
Asked |
TWiki version: |
6.0.0 |
Perl version: |
Perl 5.18 |
| Category: |
CategoryTemplates |
Server OS: |
Ubntu |
Last update: |
10 years ago |
I am not sure what changed, but I cannot create new topics, unless I add the wiki word to an old topic and then click on it to edit.
What must be in place, that a new topic can be created using the
WebTopicCreate function? Currently when I add a topic, it loops from
twiki/bin/view/GMS/WebCreateNewTopic?topicparent=WebHome
to
twiki/bin/view/OTRS?onlynewtopic=on&nowysiwyg=0&topic=ANewTopic&topicparent=WebHome&templatetopic=
Then I can click on the 'old style' create link and it loops back to
twiki/bin/view/OTRS/ANewTopic?create=on&newtopic=ANewTopic&template=WebCreateNewTopic&topicparent=WebHome
I'm going insane here. Any help is appreciated.
--
Shawn Beasley - 2015-12-29
Discussion and Answer
You are not alone: Tracking errors in TWiki's template hierarchy is a pretty reliable way to go mad.
The surprising thing in your description is that you are jumping across webs: twiki/bin/view/GMS/WebCreateNewTopic?topicparent=WebHome looks like a perfect URL to create a new topic
in the GMS web. The next URL should start with twiki/bin/edit/GMS? - note "edit" instead of "view", and "GMS" instead of "OTRS". So, this appearance of "OTRS" is the main clue.
Maybe you've carried over a customisation from a previous version?
Here are some things you could check:
- In raw view, the topic
WebCreateNewTopic in the GMS web (in fact, in each web) should have just one line of content in HTML comments, saying * Set VIEW_TEMPLATE = WebCreateNewTopic.
- By TWiki's template resolution, this should point to
TWiki/WebCreateNewTopicTemplate - a topic in TWiki's template language, unless you have a topic GMS/WebCreateNewTopicTemplate. So you could check whether TWiki/WebCreateNewTopicTemplate is "as delivered" in TWiki 6 (last author should be TWikiContributor), or whether there's a topic GMS/WebCreateNewTopicTemplate from an older version. If the latter of the two, you might need to adapt a customization to TWiki 6.
--
Harald Jörg - 2015-12-29
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.