#621 'NoneType' object has no attribute 'immediate_view'

open
5
2007-07-18
2007-07-18
No

New installation of Plone, and of PloneCollectorNG. Versions of PloneCollectorNG tested to date: 1.2.8, 1.2.9, 1.2.10b1.

I know I'm doing something wrong, but I simply can not figure out what. Whenever I try to add a "PloneCollectorNG Content" to my site, selecting either radio button for content type (PloneIssueNG or PloneCollectorNG, with any url/request id I've tried so far), I get the following error on screen:
-----
Error Type
AttributeError
Error Value
'NoneType' object has no attribute 'immediate_view'
-----

In the log files, I get the following:
-----
2007-07-17T20:02:02 ERROR Archetypes None
Traceback (most recent call last):
File "/opt/Plone-2.5.3/zeocluster/client1/Products/Archetypes/BaseObject.py", line 175, in initializeArchetype
self.setDefaults()
File "/opt/Plone-2.5.3/zeocluster/client1/Products/Archetypes/BaseObject.py", line 459, in setDefaults
self.Schema().setDefaults(self)
File "/opt/Plone-2.5.3/zeocluster/client1/Products/Archetypes/Schema/__init__.py", line 492, in setDefaults
mapply(mutator, *args, **kw)
File "/opt/Plone-2.5.3/zeocluster/client1/Products/Archetypes/utils.py", line 159, in mapply
return method(*call_args, **kw)
File "/opt/Plone-2.5.3/zeocluster/client1/Products/Archetypes/ExtensibleMetadata.py", line 258, in allowDiscussion
dtool = getToolByName(self, 'portal_discussion')
File "/opt/Plone-2.5.3/zeocluster/client1/Products/CMFCore/utils.py", line 82, in getToolByName
raise AttributeError, name
AttributeError: portal_discussion
------
2007-07-17T20:02:02 ERROR Zope.SiteErrorLog http://ploneadmin.icelus.tzo.com/dev.icelus.tzo.com/manage_addProduct/PloneCollectorNG/manage_addContent
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.CMFCore.utils, line 714, in manage_addContent
Module OFS.ObjectManager, line 333, in _setObject
Module zope.event, line 23, in notify
Module zope.app.event.dispatching, line 66, in dispatch
Module zope.component, line 181, in subscribers
Module zope.component.site, line 89, in subscribers
Module zope.interface.adapter, line 481, in subscribers
Module zope.app.event.objectevent, line 192, in objectEventNotify
Module zope.component, line 181, in subscribers
Module zope.component.site, line 89, in subscribers
Module zope.interface.adapter, line 481, in subscribers
Module OFS.subscribers, line 114, in dispatchObjectMovedEvent
Module OFS.subscribers, line 137, in callManageAfterAdd
Module Products.PloneCollectorNG.Collector, line 151, in manage_afterAdd
AttributeError: 'NoneType' object has no attribute 'immediate_view'
-----

More details:
Plone is version 2.5.3, with Plone, Python, and Zope all having been installed from the installer downloaded from plone.org.

Python version: 2.4.4

I'm totally new to Plone, and to PloneCollectorNG, so have to admit to not even knowing entirely what questions to ask, or what information to provide up front. I hope the above is everything that's needed, but understand that the likelihood of that is pretty slim. If you'll tell me what information you need that I missed, I'll be happy to provide it.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks