Admin can't delete page

3 messages Options
Embed this post
Permalink
sreid () Admin can't delete page
Reply Threaded More More options
Print post
Permalink
When logged in as an admin, I can't delete a particular page (or it's copy, if I copy it). The message I get is "/xxx/private-tab/private-page could not be deleted". Also, if I edit the page, the delete option is not available on the actions menu.

I tried to delete it in the ZMI, and got the following (edited out website name) :

Request URL
    https://xxx/private/manage_delObjects
Exception Type
    AttributeError
Exception Value
    'NoneType' object has no attribute 'UID'

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.Archetypes.BaseFolder, line 116, in manage_delObjects
    * Module OFS.ObjectManager, line 525, in manage_delObjects
    * Module OFS.ObjectManager, line 397, in _delObject
    * Module zope.event, line 23, in notify
    * Module zope.component.event, line 26, in dispatch
    * Module zope.component._api, line 130, in subscribers
    * Module zope.component.registry, line 290, in subscribers
    * Module zope.interface.adapter, line 535, in subscribers
    * Module zope.component.event, line 33, in objectEventNotify
    * Module zope.component._api, line 130, in subscribers
    * Module zope.component.registry, line 290, in subscribers
    * Module zope.interface.adapter, line 535, in subscribers
    * Module plone.app.linkintegrity.handlers, line 145, in referencedObjectRemoved
    * Module plone.app.linkintegrity.info, line 43, in getIntegrityBreaches

AttributeError: 'NoneType' object has no attribute 'UID'

Display traceback as text
REQUEST
form
manage_delObjects 'Delete'
ids ['private']
cookies
__utmz '97040719.1256127665.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
_csuid '4ade2ab22ff1dee1'
tree-s 'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q'
_csoot '1256228633179'
__utma '97040719.1172873524.1256127665.1256222124.1256227312.8'
__utmb '97040719.110.10.1256227312'
__utmc '97040719'
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager at /session_data_manager>>
other
ids ['private']
TraversalRequestNameStack []
LANGUAGE 'en-gb'
AUTHENTICATED_USER <PropertiedUser 'sandyreid'>
URL 'https://xxx/private/manage_delObjects'
SERVER_URL 'https://xxx'
LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding instance at 0x1160082c>
AUTHENTICATION_PATH ''
PATH_INFO '/xxx/private/manage_delObjects'
PUBLISHED <bound method ATFolder.manage_delObjects of <ATFolder at /xxx/private>>
ACTUAL_URL 'https://xxx/private/manage_delObjects'
URL0 https://xxx/private/manage_delObjects
URL1 https://xxx/private
URL2 https://xxx
URL3 https://xxx
BASE0 https://xxx
BASE1 https://xxx
BASE2 https://xxx
BASE3 https://xxx/private
BASE4 https://xxx/private/manage_delObjects
environ
HTTP_COOKIE '__utmc=97040719; __utma=97040719.1172873524.1256127665.1256222124.1256227312.8; __utmz=97040719.1256127665.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuxEQ9AIOOB9Q"; __utmb=97040719.110.10.1256227312; __utma=91865546.235536825.1256228633.1256228633.1256228633.1; __utmb=91865546.3.10.1256228633; __utmc=91865546; __utmz=91865546.1256228633.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _csoot=1256228633179; _csuid=4ade2ab22ff1dee1'
SERVER_PROTOCOL 'HTTP/1.0'
SERVER_SOFTWARE 'Zope/(Zope 2.10.9-final, python 2.4.3, linux2) ZServer/1.1 Plone/3.3.1'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
HTTP_HTTPS 'on'
PATH_INFO '/xxx/private/'
HTTP_X_FORWARDED_SSL 'on'
channel.creation_time 1256229228
CONTENT_LENGTH '52'
HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)'
HTTP_REFERER 'https://xxx/private/manage_main'
SERVER_NAME '0.0.0.0'
REMOTE_ADDR '127.0.0.1'
HTTP_HTTP_X_FORWARDED_PROTO 'https'
HTTP_VIA '1.0 example.com:48510 (squid/2.6.STABLE23)'
PATH_TRANSLATED '/xxx/private'
SERVER_PORT '7458'
CONNECTION_TYPE 'keep-alive'
HTTP_X_FORWARDED_PROTO 'https'
HTTP_HOST 'admin.xxx'
HTTP_CACHE_CONTROL 'max-age=259200'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_X_FORWARDED_FOR 'xxx, 127.0.0.1'
HTTP_ACCEPT_LANGUAGE 'en-gb'
CONTENT_TYPE 'application/x-www-form-urlencoded'
HTTP_ACCEPT_ENCODING 'gzip,deflate'

For now I've made the page not visible to navigation.
Dieter Maurer () Re: Admin can't delete page
Reply Threaded More More options
Print post
Permalink
sreid wrote at 2009-10-22 10:13 -0700:

>
>When logged in as an admin, I can't delete a particular page (or it's copy,
>if I copy it). The message I get is "/xxx/private-tab/private-page could not
>be deleted". Also, if I edit the page, the delete option is not available on
>the actions menu.
>
>I tried to delete it in the ZMI, and got the following (edited out website
>name) :
>
>Request URL
>    https://xxx/private/manage_delObjects
>Exception Type
>    AttributeError
>Exception Value
>    'NoneType' object has no attribute 'UID'
>
>Traceback (innermost last):
>
>    * Module ZPublisher.Publish, line 119, in publish
>    * Module ZPublisher.mapply, line 88, in mapply
>    * Module ZPublisher.Publish, line 42, in call_object
>    * Module Products.Archetypes.BaseFolder, line 116, in manage_delObjects
>    * Module OFS.ObjectManager, line 525, in manage_delObjects
>    * Module OFS.ObjectManager, line 397, in _delObject
>    * Module zope.event, line 23, in notify
>    * Module zope.component.event, line 26, in dispatch
>    * Module zope.component._api, line 130, in subscribers
>    * Module zope.component.registry, line 290, in subscribers
>    * Module zope.interface.adapter, line 535, in subscribers
>    * Module zope.component.event, line 33, in objectEventNotify
>    * Module zope.component._api, line 130, in subscribers
>    * Module zope.component.registry, line 290, in subscribers
>    * Module zope.interface.adapter, line 535, in subscribers
>    * Module plone.app.linkintegrity.handlers, line 145, in
>referencedObjectRemoved
>    * Module plone.app.linkintegrity.info, line 43, in getIntegrityBreaches
>
>AttributeError: 'NoneType' object has no attribute 'UID'

Apparently, "plone.linkintegrity.info" function "getIntegrityBreaches"
line 43 has expectations which are not fullfilled (it expects
an object to have an attribute "UID" but the object happens to be
"None").

This might be a bug in "linkintegrity" checking or some strange
situation with your site. I would first look at line 43
of "plone.app.linkintegrity.info" to find out where the unexpected "None"
object comes from. It is not unlikely, that some form of debugging
will be necessary to analyse the problem (see various recent posts
about your debugging options).



--
Dieter

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
sreid () Re: Admin can't delete page
Reply Threaded More More options
Print post
Permalink
I've not done any Plone code debugging before. As you mentioend link integrity, I checked the pages' content, and found it had some old internal links to pages which had moved. I though this could be the problem, but I deleted the page contents and still could not delete the page itself.

Sandy