Hello,

I like the explorer theme, but find that though I have created categories and added them to the root category CategoryRoot that they remain categorized as CategoryOrphaned. Also I see that the Category CategoryOrphaned itself is categorized as CategoryOphaned even though it has a link to CategoryRoot. Any idea what I have done wrong? -- JamesCurry 2008-02-14 17:47:41

I am using Moin 1.6.1, and version 2.0.4 of the Explorer theme. The contents of CategoryRoot are simply CategoryCategory, and the contents of CategoryOrphaned are CategoryRoot. Here's a screen shot. Thanks for your help. -- JamesCurry 2008-02-19 16:57:57

explorer_screenshot.png

I tried the refresh, but no joy. The Orphaned page is still a sub node of itself. Below are my settings in my wikiconfig.py. -- JamesCurry 2008-02-20 16:13:13

    page_category_regex = u'^Category([A-Z].*)'
    page_dict_regex = u'[a-z]Dict$'
    page_form_regex = u'[a-z]Form$'
    page_group_regex = u'[a-z]Group$'
    page_template_regex = u'[a-z]Template$'

    # Content options ---------------------------------------------------

    # Show users hostnames in RecentChanges
    show_hosts = 1                  

    # Enable graphical charts, requires gdchart.
    #chart_options = {'width': 600, 'height': 300}
    
    # Explorer Theme Settings
    wiki_tree_root = u'CategoryRoot'
    wiki_tree_orphaned = u'CategoryOrphaned'
    wiki_tree_missing = u'CategoryMissing'
    wiki_tree_underlay = u'CategoryUnderlay'
    explorer_site_mode = False
    explorer_page_header = True
    explorer_attachments = False

I removed the cache file and the Orphaned category no longer contains itself as a sub node. I browsed to some of the other pages indicated as Orphaned. They have the CategoryRoot link at the bottom of the page but still are classified as Orphaned. I tried categorizing more of my pages, but they did not move from the Orphaned category to the category that I linked. I checked the categories file again. It is quite small and it appears that is not getting updated. I didn't mention before, but thought I should add to be complete, that this wiki is served by Apache on a Linux box. -- JamesCurry 2008-02-22 16:10:12

This is in fact what I did. I used the button indicated in the image below, but it didn't seem to make a difference. If I go to the directory and remove the categories file then the folder is categorized correctly. I tried this with other wiki pages this morning and found that it worked for them as well. This is pretty laborious. I thought this might only happen for the existing pages, but in fact new pages also are categorized as Orphaned until I delete the cache. -- JamesCurry 2008-02-26 17:52:57 [ATTACH]

Wolfgang, I didn't know where to look for the output of the print statements so I added the lines to open a file right after the two print statements you added to explorer.py. (I saw that you had some debug logging lines but wasn't sure how to use them) I also added the lines to write "Initialize" to the file at the top of the init function. What I found was that when I edit and save a file I get: ### UPDATE Categories of page (needed): , but when I hit the delete cache button all that is added to my debug log is Initialize. -- JamesCurry 2008-03-03 17:20:49

I tried the new version but the delete cache button still does not trigger a cache update. Editing a file does trigger an update, but the links are not updated. I found that parseCategories returns here:

if request.parsePageLinks_running.get(pagename, False):
    #logging.debug("avoid recursion for page %r" % pagename)
    return [] # avoid recursion 

By the way, I tried the explorer theme on my standalone moin running on my Windows machine and it works fine. This update problem seems only to occur on my moin served by apache using cgi. -- JamesCurry 2008-03-04 17:25:25

Thanks Wolfgang! That did the trick. -- JamesCurry 2008-03-10 15:37:44

MoinMoin: ThemeMarket/Explorer/Fixed/PagesNotCategorizedOnApacheAndLinux (last edited 2008-03-11 12:42:35 by WolfgangFischer)