Description

In Moin 1,7, Templates are not appearing in the 'create new page' dialog. Instead all I see is a list of 'similar' pages on the right (the left side is totally empty) - see the attached screenshot (sorry for the extreme cropping!). This used to work fine in 1.6.

Steps to reproduce

  1. create a page called MyTemplate

  2. create it and you'll see no existing templates appear in the list
  3. create page MyPage

  4. MyTemplate will not appear :(

Example

templates_not_appearing.png

Component selection

Details

MoinMoin Version

1.7

OS and Version

Cent OS 5.1

Python Version

2.5

Server Setup

Apache 2

Server Details

-

Language you are using the wiki in (set in the browser/UserPreferences)

en

Workaround

?

Discussion

Click on MyTemplate and you can see that there are a plenty of templates. So it's not a MoinMoinBug, more a wrong config / accessrights on your side.

maybe check your wikiconfig/farmconfig for  page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'  and proof that your moinmoin server has access (read/write) rights for your underlay directory.

-- MarcelHäfner 2008-07-21 14:45:40

Migration from 1.6 to 1.7 requires a change to wikiconfig

Thank you. Yes, you are right. The bit that was missing was that I didn't know that I had to change the xxx_regex variables in the config file because the standard format seems to have changed from 1.6 to 1.7.

old 1.6 format:

    page_template_regex = u'[a-z]Template$'

new 1.7 format:

    page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'

(!) It would be nice if the migration script detected parts of the wiki config file that require updating (or at least printed a warning message to check any revised config options). Also, it should be documented in the README.migration (maybe it is already, bit I didn't notice it?)

- Thanks again :)

README.migration only deals with migrating your old data, it is not about config changes. You just have to read docs/CHANGES.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/1.7TemplatesNotAppearing (last edited 2008-11-19 15:29:29 by a b)