[Zope-CMF] Re: mega problems with CMF1.2beta1

Tres Seaver tseaver@zope.com
Fri, 14 Dec 2001 06:22:37 -0500


Lucas Hofman wrote:

> On Thursday 13 December 2001 17:10, Isabelle Phan wrote:
> 
>>Dear Lucas
>>
>>sorry to bother you directly, but you seem to have managed to get
>>CMF1.2beta1 to work, and I haven't :(
>>
>>Basically, the product installed OK. I've checked I have the right TAL
>>1.4.1, ZTUtils 1.1.3 and PageTemplates 1.4.1 installed where they should
>>be.
>>
>>All the functionalities work when I am logged in as manager, but nothing
>>works for members.
>>
>>Once members have joined, they can't log in again. After typing username
>>and password, clicking on 'Login' as a member produces the following
>>error:
>>
>> 
>>Site Error
>>An error was encountered while publishing this resource.
>>
>>TALESError
>>Sorry, a site error occurred.
>>Traceback (innermost last):
>>  File /usr/local/share/Zope/lib/python/ZPublisher/Publish.py, line 223,
>>in publish_module
>>  File /usr/local/share/Zope/lib/python/ZPublisher/Publish.py, line 187,
>>in publish
>>  File /usr/local/share/Zope/lib/python/Zope/__init__.py, line 226, in
>>zpublisher_exception_hook
>>    (Object: LockableItem)
>>  File /usr/local/share/Zope/lib/python/ZPublisher/Publish.py, line 171,
>>in publish
>>  File /usr/local/share/Zope/lib/python/ZPublisher/mapply.py, line 160,
>>in mapply
>>    (Object: logged_in)
>>  File /usr/local/share/Zope/lib/python/ZPublisher/Publish.py, line 112,
>>in call_object
>>    (Object: logged_in)
>>  File /usr/local/share/Zope/lib/python/Shared/DC/Scripts/Bindings.py,
>>line 324, in __call__
>>    (Object: logged_in)
>>  File /usr/local/share/Zope/lib/python/Shared/DC/Scripts/Bindings.py,
>>line 354, in _bindAndExec
>>    (Object: logged_in)
>>  File
>>/usr/local/share/Zope/lib/python/Products/PageTemplates/ZopePageTemplate.py
>>, line 267, in _exec
>>    (Object: logged_in)
>>  File
>>/usr/local/share/Zope/lib/python/Products/CMFCore/FSPageTemplate.py,
>>line 99, in pt_render
>>    (Object: logged_in)
>>  File
>>/usr/local/share/Zope/lib/python/Products/PageTemplates/PageTemplate.py,
>>line 156, in pt_render
>>    (Object: logged_in)
>>    (Info: {'container': <CMFSite instance at 1015348>,
>> 'here': <CMFSite instance at 1015348>,
>> 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
>>instance at 70f0e4>,
>> 'nothing': None,
>> 'options': {'args': ()},
>> 'request': <stuff deleted></stuff deleted>
>> 'root': <Application instance at bcb0d0>,
>> 'template': <FSPageTemplate instance at 107e8e8>,
>> 'traverse_subpath': [],
>> 'user': isa})
>>  File /usr/local/share/Zope/lib/python/TAL/TALInterpreter.py, line 229,
>>in __call__
>>  File /usr/local/share/Zope/lib/python/TAL/TALInterpreter.py, line 262,
>>in interpret
>>  File /usr/local/share/Zope/lib/python/TAL/TALInterpreter.py, line 594,
>>in do_useMacro
>>  File /usr/local/share/Zope/lib/python/TAL/TALInterpreter.py, line 262,
>>in interpret
>>  File /usr/local/share/Zope/lib/python/TAL/TALInterpreter.py, line 473,
>>in do_setLocal_tal
>>  File /usr/local/share/Zope/lib/python/Products/PageTemplates/TALES.py,
>>line 295, in evaluate
>>  File
>>/usr/local/share/Zope/lib/python/Products/PageTemplates/ZRPythonExpr.py,
>>line 121, in __call__
>>    (Info: atool.listFilteredActionsFor( here ))
>>  File Python expression "atool.listFilteredActionsFor( here )", line 2,
>>in f
>>    (Object: guarded_getattr)
>>  File /usr/local/share/Zope/lib/python/Products/CMFCore/ActionsTool.py,
>>line 170, in listFilteredActionsFor
>>    (Object: portal_actions)
>>  File
>>/usr/local/share/Zope/lib/python/Products/CMFCore/WorkflowTool.py, line
>>378, in listActions
>>    (Object: LockableItem)
>>  File
>>/usr/local/share/Zope/lib/python/Products/CMFDefault/DefaultWorkflow.py,
>>line 143, in listGlobalActions
>>    (Object: ElementWithAttributes)
>>  File /usr/local/share/Zope/lib/python/Products/CMFCore/CatalogTool.py,
>>line 193, in searchResults
>>    (Object: LockableItem)
>>  File /usr/local/share/Zope/lib/python/Products/ZCatalog/ZCatalog.py,
>>line 597, in searchResults
>>    (Object: LockableItem)
>>  File /usr/local/share/Zope/lib/python/Products/ZCatalog/Catalog.py,
>>line 649, in searchResults
>>  File /usr/local/share/Zope/lib/python/Products/ZCatalog/Catalog.py,
>>line 537, in _indexedSearch
>>  File
>>/usr/local/share/Zope/lib/python/Products/PluginIndexes/common/UnIndex.py,
>>line 402, in _apply_index
>>    (Object: PluggableIndex)
>>TALESError: Sorry, an error occurred
>>
>>
>>
>>I tried publishing all home pages, assigning roles as 'Members' to
>>users, to no avail. Nobody except me can log in. Needless to say it is
>>not a happy situation.
>>
>>any help would be very much appreciated

It looks as though 'portal_catalog' built using Zope2.3 needs to
be tweaked to run properly under Zope 2.4 / CMF 1.2.  In particular,
one of the following indexes is probably malfunctioniong:

   - 'appliedRolesAndUsers'

   - 'effective'

   - 'expires'

I would recommend deleting and recreating those three indexes
('appliedRolesAndUsers' is a KeywordIndex;  the other two are
FieldIndexes).  Once you have added the new indexes, you need to
rebuild them (select them on the "Indexes" tab and click the
"Reindex" button).

You could also delete and re-add 'portal_catalog',
but you would then need to re-index all your content using the
"Find" tab.

We will include an upgrade script in the final CMF 1.2 release
which automates this task.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com