Error Value: name 'portal_types' is not defined
Hi all, In the ZMI of a plone site, I get the following error when accessing the 'Elements' tab of the portal_metadata tool: ====== Error Type: NameError Error Value: name 'portal_types' is not defined ====== I have read that this message occurs when you do not access the portal tool from within a CMF site. But isn't a plone site also a CMF site? If this is incorrect, how does one go about accessing the CMF site or interface or whatever? The error log produces the following and any help would be appreciated. Thanks, Stan ====== Exception traceback Time 2003/04/14 14:51:06.500 GMT-10 User Name (User Id) admin (admin) Request URL http://127.0.0.1:8080/portal_metadata/elementPoliciesForm Exception Type NameError Exception Value name 'portal_types' is not defined Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module App.special_dtml, line 174, in _exec Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_Let, line 75, in render Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: portal_types Module <string>, line 0, in ? NameError: name 'portal_types' is not defined Display traceback as text REQUEST form cookies tree-s 'eJzTiFZ3hANXW/VYHU0ALj4EkA' __ac_name 'sbaptista' lazy items SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager instance at 01B0A440>> other BASEPATH1 '' AcceptLanguage <Products.Localizer.Accept.AcceptLanguage instance at 01D82F3C> a_ 3 BASE3 'http://127.0.0.1:8080/portal_metadata/elementPoliciesForm' BASE2 'http://127.0.0.1:8080/portal_metadata' BASE1 'http://127.0.0.1:8080' traverse_subpath [] element 'Subject' URL1 'http://127.0.0.1:8080/portal_metadata' SERVER_URL 'http://127.0.0.1:8080' USER_PREF_LANGUAGES <Products.Localizer.Accept.AcceptLanguage instance at 01D82F3C> AUTHENTICATED_USER admin TraversalRequestNameStack [] AUTHENTICATION_PATH '' AcceptCharset <Products.Localizer.Accept.AcceptCharset instance at 01D8372C> management_page_charset 'iso-8859-1' URL2 'http://127.0.0.1:8080' PUBLISHED <DTMLFile instance at 01614C60> URL 'http://127.0.0.1:8080/portal_metadata/elementPoliciesForm' n_ 6 URL0 http://127.0.0.1:8080/portal_metadata/elementPoliciesForm URL1 http://127.0.0.1:8080/portal_metadata URL2 http://127.0.0.1:8080 BASE0 http://127.0.0.1:8080 BASE1 http://127.0.0.1:8080 BASE2 http://127.0.0.1:8080/portal_metadata BASE3 http://127.0.0.1:8080/portal_metadata/elementPoliciesForm environ HTTP_ACCEPT_ENCODING 'gzip, deflate' channel.creation_time 1050367825 SERVER_PROTOCOL 'HTTP/1.1' SERVER_PORT '8080' PATH_INFO '/portal_metadata/elementPoliciesForm' HTTP_HOST '127.0.0.1:8080' REQUEST_METHOD 'GET' PATH_TRANSLATED '\\portal_metadata\\elementPoliciesForm' HTTP_COOKIE '__ac_name="sbaptista"; tree-s="eJzTiFZ3hANXW/VYHU0ALj4EkA"' SCRIPT_NAME '' SERVER_SOFTWARE 'Zope/(Zope 2.6.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32) ZServer/1.1b1' HTTP_ACCEPT_LANGUAGE 'en-us' HTTP_ACCEPT 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*' REMOTE_ADDR '127.0.0.1' HTTP_REFERER 'http://127.0.0.1:8080/portal_metadata/manage_editActionsForm' SERVER_NAME '20JLH11' GATEWAY_INTERFACE 'CGI/1.1' HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)' CONNECTION_TYPE 'Keep-Alive' __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com
participants (1)
-
Stan Baptista