Customising Footer and other things fails with ATTRIBUTEERROR

4 Messages Forum Options Options
Embed this topic
Permalink
Simon Bryan
Customising Footer and other things fails with ATTRIBUTEERROR
Reply Threaded MoreMore options
Print post
Permalink
HI all,
I have two sites hosted elsewhere in Plone3. One works normally, one is not.
I am putting the Google Analytics code in the footer, so went to:

portal_view_customizations (Manages view customizations)
plone.parabolafooter (we are using the Paraobla Theme)

When we click on 'Customize', we are taken to a page hat says 'Sorry there was an error', when I look in the Error logs I see:
AttributeError: REQUEST

Further detail on that is below (with some anonymising) - any ideas? this works fine on the other site.



Time
    Aug 14, 2008 08:52 PM
User Name
    simon (simon)
Request URL
    http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
Exception Type
    AttributeError
Exception Value
    REQUEST

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 plone.app.customerize.browser, line 47, in customizeTemplate
    * Module plone.app.customerize.registration, line 140, in customizeTemplate
    * Module plone.app.customerize.tool, line 21, in addTemplate
    * Module OFS.ObjectManager, line 347, in _setObject
    * 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 plone.app.contentrules.handlers, line 134, in added
    * Module plone.app.contentrules.handlers, line 97, in execute
    * Module plone.contentrules.engine.executor, line 27, in __call__
    * Module plone.contentrules.rule.rule, line 48, in __call__
    * Module plone.app.contentrules.actions.notify, line 61, in __call__

AttributeError: REQUEST

Display traceback as text
REQUEST
form
        'Customize'
for_name 'zope.interface.Interface'
view_name 'plone.parabolafooter'
type_name 'Products.Parabola.browser.interfaces.IPFooter'
cookies
__ac 'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager at /session_data_manager>>
other
TraversalRequestNameStack []
LANGUAGE u'en-au'
AUTHENTICATED_USER <PloneUser 'simon'>
URL 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate'
VirtualRootPhysicalPath ('', 'waitararotary')
VIRTUAL_URL 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
SERVER_URL 'http://www.waitararotary.org'
LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding instance at 0x16218b90>
AUTHENTICATION_PATH 'waitararotary/virtual_hosting//'
__ac 'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
PUBLISHED <bound method RegistrationsView.customizeTemplate of <Products.Five.metaclass.RegistrationsView object at 0x16176d50>>
ACTUAL_URL 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
VIRTUAL_URL_PARTS ('http://www.waitararotary.org', 'portal_view_customizations/@@customizezpt')
URL0 http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
URL1 http://www.waitararotary.org/portal_view_customizations/@@customizezpt
URL2 http://www.waitararotary.org/portal_view_customizations
URL3 http://www.waitararotary.org
BASE0 http://www.waitararotary.org
BASE1 http://www.waitararotary.org
BASE2 http://www.waitararotary.org/portal_view_customizations
BASE3 http://www.waitararotary.org/portal_view_customizations/@@customizezpt
BASE4 http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
environ
HTTP_MAX_FORWARDS '10'
HTTP_REFERER 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt.html?for_name=zope.interface.Interface&type_name=Products.Parabola.browser.interfaces.IPFooter&view_name=plone.parabolafooter'
HTTP_ACCEPT_LANGUAGE 'en-gb,en;q=0.5'
SERVER_SOFTWARE 'Zope/(Zope 2.10.5-final, python 2.4.4, linux2) ZServer/1.1 Plone/3.0.6\r\n ShellEx Server/4.0.0'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
PATH_INFO '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1218757904
HTTP_X_FORWARDED_SERVER 'waitararotary.org'
CONNECTION_TYPE 'Keep-Alive'
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.0.1) Gecko/2008070208 Firefox/3.0.1'
HTTP_COOKIE '__ac="xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24="'
SERVER_NAME '0.0.0.0'
REMOTE_ADDR 'xxx.xxx.xxx.xx7'
HTTP_VIA '1.1 mcdopad1.remex.com.au:3128 (squid/2.5.STABLE3)'
PATH_TRANSLATED '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
SERVER_PORT '8080'
CONTENT_LENGTH '526'
HTTP_HOST 'xxx.xxx.xxx.xx6:8080'
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.xxx.xxx.xxx, 210.185.98.18'
HTTP_X_FORWARDED_HOST 'www.waitararotary.org'
CONTENT_TYPE 'multipart/form-data; boundary=---------------------------8153132324747'
HTTP_ACCEPT_ENCODING 'gzip,deflate'
Israel Saeta Pérez
Re: Customising Footer and other things fails with ATTRIBUTEERROR
Reply Threaded MoreMore options
Print post
Permalink
On Plone 3, go to Site Setup → Site Settings and enter the Google
Analytics code into the "JavaScript for web statistics support" text
field.

Works for me.


On Fri, Aug 15, 2008 at 2:49 AM, Simon Bryan <bryan@...> wrote:

>
> HI all,
> I have two sites hosted elsewhere in Plone3. One works normally, one is not.
> I am putting the Google Analytics code in the footer, so went to:
>
> portal_view_customizations (Manages view customizations)
> plone.parabolafooter (we are using the Paraobla Theme)
>
> When we click on 'Customize', we are taken to a page hat says 'Sorry there
> was an error', when I look in the Error logs I see:
> AttributeError: REQUEST
>
> Further detail on that is below (with some anonymising) - any ideas? this
> works fine on the other site.
>
>
>
> Time
>    Aug 14, 2008 08:52 PM
> User Name
>    simon (simon)
> Request URL
>
> http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
> Exception Type
>    AttributeError
> Exception Value
>    REQUEST
>
> 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 plone.app.customerize.browser, line 47, in customizeTemplate
>    * Module plone.app.customerize.registration, line 140, in
> customizeTemplate
>    * Module plone.app.customerize.tool, line 21, in addTemplate
>    * Module OFS.ObjectManager, line 347, in _setObject
>    * 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 plone.app.contentrules.handlers, line 134, in added
>    * Module plone.app.contentrules.handlers, line 97, in execute
>    * Module plone.contentrules.engine.executor, line 27, in __call__
>    * Module plone.contentrules.rule.rule, line 48, in __call__
>    * Module plone.app.contentrules.actions.notify, line 61, in __call__
>
> AttributeError: REQUEST
>
> Display traceback as text
> REQUEST
> form
>        'Customize'
> for_name        'zope.interface.Interface'
> view_name       'plone.parabolafooter'
> type_name       'Products.Parabola.browser.interfaces.IPFooter'
> cookies
> __ac    'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
> lazy items
> SESSION <bound method SessionDataManager.getSessionData of
> <SessionDataManager at /session_data_manager>>
> other
> TraversalRequestNameStack       []
> LANGUAGE        u'en-au'
> AUTHENTICATED_USER      <PloneUser 'simon'>
> URL
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate'
> VirtualRootPhysicalPath ('', 'waitararotary')
> VIRTUAL_URL
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
> SERVER_URL      'http://www.waitararotary.org'
> LANGUAGE_TOOL   <Products.PloneLanguageTool.LanguageTool.LanguageBinding
> instance at 0x16218b90>
> AUTHENTICATION_PATH     'waitararotary/virtual_hosting//'
> __ac    'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
> PUBLISHED       <bound method RegistrationsView.customizeTemplate of
> <Products.Five.metaclass.RegistrationsView object at 0x16176d50>>
> ACTUAL_URL
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
> VIRTUAL_URL_PARTS       ('http://www.waitararotary.org',
> 'portal_view_customizations/@@customizezpt')
> URL0
> http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
> URL1    http://www.waitararotary.org/portal_view_customizations/@@customizezpt
> URL2    http://www.waitararotary.org/portal_view_customizations
> URL3    http://www.waitararotary.org
> BASE0   http://www.waitararotary.org
> BASE1   http://www.waitararotary.org
> BASE2   http://www.waitararotary.org/portal_view_customizations
> BASE3   http://www.waitararotary.org/portal_view_customizations/@@customizezpt
> BASE4
> http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
> environ
> HTTP_MAX_FORWARDS       '10'
> HTTP_REFERER
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt.html?for_name=zope.interface.Interface&type_name=Products.Parabola.browser.interfaces.IPFooter&view_name=plone.parabolafooter'
> HTTP_ACCEPT_LANGUAGE    'en-gb,en;q=0.5'
> SERVER_SOFTWARE 'Zope/(Zope 2.10.5-final, python 2.4.4, linux2) ZServer/1.1
> Plone/3.0.6\r\n ShellEx Server/4.0.0'
> SCRIPT_NAME     ''
> REQUEST_METHOD  'POST'
> PATH_INFO
> '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
> SERVER_PROTOCOL 'HTTP/1.1'
> channel.creation_time   1218757904
> HTTP_X_FORWARDED_SERVER 'waitararotary.org'
> CONNECTION_TYPE 'Keep-Alive'
> 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.0.1)
> Gecko/2008070208 Firefox/3.0.1'
> HTTP_COOKIE     '__ac="xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24="'
> SERVER_NAME     '0.0.0.0'
> REMOTE_ADDR     'xxx.xxx.xxx.xx7'
> HTTP_VIA        '1.1 mcdopad1.remex.com.au:3128 (squid/2.5.STABLE3)'
> PATH_TRANSLATED
> '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
> SERVER_PORT     '8080'
> CONTENT_LENGTH  '526'
> HTTP_HOST       'xxx.xxx.xxx.xx6:8080'
> 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.xxx.xxx.xxx, 210.185.98.18'
> HTTP_X_FORWARDED_HOST   'www.waitararotary.org'
> CONTENT_TYPE    'multipart/form-data;
> boundary=---------------------------8153132324747'
> HTTP_ACCEPT_ENCODING    'gzip,deflate'
> --
> View this message in context: http://n2.nabble.com/Customising-Footer-and-other-things-fails-with-ATTRIBUTEERROR-tp725468p725468.html
> Sent from the General Questions mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Plone-Users mailing list
> Plone-Users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users
>


--
Israel Saeta Pérez
http://dukebody.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users
Israel Saeta Pérez
Simon Bryan
RE: [Plone-Users] Customising Footer and other things fails with ATTRIBUTEERROR
Reply Threaded MoreMore options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Yes I did have it there as well on two sites, both stopped receiving data on the same day. Converted one to using the footer file with no issues, the other has the problem. The code does not show when I view source on a published page.

 

From: Israel Saeta Pérez [mailto:ml-user+19441-6453394@...]
Sent: Tuesday, 19 August 2008 7:07 PM
To: Simon Bryan
Subject: Re: [Plone-Users] Customising Footer and other things fails with ATTRIBUTEERROR

 

On Plone 3, go to Site Setup → Site Settings and enter the Google
Analytics code into the "JavaScript for web statistics support" text
field.

Works for me.


On Fri, Aug 15, 2008 at 2:49 AM, Simon Bryan <bryan@...> wrote:


>
> HI all,
> I have two sites hosted elsewhere in Plone3. One works normally, one is not.
> I am putting the Google Analytics code in the footer, so went to:
>
> portal_view_customizations (Manages view customizations)
> plone.parabolafooter (we are using the Paraobla Theme)
>
> When we click on 'Customize', we are taken to a page hat says 'Sorry there
> was an error', when I look in the Error logs I see:
> AttributeError: REQUEST
>
> Further detail on that is below (with some anonymising) - any ideas? this
> works fine on the other site.
>
>
>
> Time
>    Aug 14, 2008 08:52 PM
> User Name
>    simon (simon)
> Request URL
>
> http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
> Exception Type
>    AttributeError
> Exception Value
>    REQUEST
>
> 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 plone.app.customerize.browser, line 47, in customizeTemplate
>    * Module plone.app.customerize.registration, line 140, in
> customizeTemplate
>    * Module plone.app.customerize.tool, line 21, in addTemplate
>    * Module OFS.ObjectManager, line 347, in _setObject
>    * 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 plone.app.contentrules.handlers, line 134, in added
>    * Module plone.app.contentrules.handlers, line 97, in execute
>    * Module plone.contentrules.engine.executor, line 27, in __call__
>    * Module plone.contentrules.rule.rule, line 48, in __call__
>    * Module plone.app.contentrules.actions.notify, line 61, in __call__
>
> AttributeError: REQUEST
>
> Display traceback as text
> REQUEST
> form
>        'Customize'
> for_name        'zope.interface.Interface'
> view_name       'plone.parabolafooter'
> type_name       'Products.Parabola.browser.interfaces.IPFooter'
> cookies
> __ac    'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
> lazy items
> SESSION <bound method SessionDataManager.getSessionData of
> <SessionDataManager at /session_data_manager>>
> other
> TraversalRequestNameStack       []
> LANGUAGE        u'en-au'
> AUTHENTICATED_USER      <PloneUser 'simon'>
> URL
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate'
> VirtualRootPhysicalPath ('', 'waitararotary')
> VIRTUAL_URL
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
> SERVER_URL      'http://www.waitararotary.org'
> LANGUAGE_TOOL   <Products.PloneLanguageTool.LanguageTool.LanguageBinding
> instance at 0x16218b90>
> AUTHENTICATION_PATH     'waitararotary/virtual_hosting//'
> __ac    'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
> PUBLISHED       <bound method RegistrationsView.customizeTemplate of
> <Products.Five.metaclass.RegistrationsView object at 0x16176d50>>
> ACTUAL_URL
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
> VIRTUAL_URL_PARTS       ('http://www.waitararotary.org',
> 'portal_view_customizations/@@customizezpt')
> URL0
> http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
> URL1    http://www.waitararotary.org/portal_view_customizations/@@customizezpt
> URL2    http://www.waitararotary.org/portal_view_customizations
> URL3    http://www.waitararotary.org
> BASE0   http://www.waitararotary.org
> BASE1   http://www.waitararotary.org
> BASE2   http://www.waitararotary.org/portal_view_customizations
> BASE3   http://www.waitararotary.org/portal_view_customizations/@@customizezpt
> BASE4
> http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
> environ
> HTTP_MAX_FORWARDS       '10'
> HTTP_REFERER
> 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt.html?for_name=zope.interface.Interface&type_name=Products.Parabola.browser.interfaces.IPFooter&view_name=plone.parabolafooter'
> HTTP_ACCEPT_LANGUAGE    'en-gb,en;q=0.5'
> SERVER_SOFTWARE 'Zope/(Zope 2.10.5-final, python 2.4.4, linux2) ZServer/1.1
> Plone/3.0.6\r\n ShellEx Server/4.0.0'
> SCRIPT_NAME     ''
> REQUEST_METHOD  'POST'
> PATH_INFO
> '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
> SERVER_PROTOCOL 'HTTP/1.1'
> channel.creation_time   1218757904
> HTTP_X_FORWARDED_SERVER 'waitararotary.org'
> CONNECTION_TYPE 'Keep-Alive'
> 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.0.1)
> Gecko/2008070208 Firefox/3.0.1'
> HTTP_COOKIE     '__ac="xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24="'
> SERVER_NAME     '0.0.0.0'
> REMOTE_ADDR     'xxx.xxx.xxx.xx7'
> HTTP_VIA        '1.1 mcdopad1.remex.com.au:3128 (squid/2.5.STABLE3)'
> PATH_TRANSLATED
> '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
> SERVER_PORT     '8080'
> CONTENT_LENGTH  '526'
> HTTP_HOST       'xxx.xxx.xxx.xx6:8080'
> 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.xxx.xxx.xxx, 210.185.98.18'
> HTTP_X_FORWARDED_HOST   'www.waitararotary.org'
> CONTENT_TYPE    'multipart/form-data;
> boundary=---------------------------8153132324747'
> HTTP_ACCEPT_ENCODING    'gzip,deflate'
> --
> View this message in context: http://n2.nabble.com/Customising-Footer-and-other-things-fails-with-ATTRIBUTEERROR-tp725468p725468.html
> Sent from the General Questions mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Plone-Users mailing list
> Plone-Users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users
>



--
Israel Saeta Pérez
http://dukebody.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users

Israel Saeta Pérez

 


 



-----------------------------------------------------------------------------------------------------------------------------
The information in this email and any attachment ("the message") is private and confidential and may be privileged. It is intended solely for the above-named recipient(s) and must not be copied to others without the College's written permission.
The views or opinons expressed in the message are those of the individual sender except where the sender expressly states them to be the views or opinions of the College.
If the message has come to you in error, please notify the sender, delete the message from your system and destroy any copies. You are not entitled to use it, copy it or disclose it to anyone else.
The email message has been scanned for viruses and content. However, the College does not represent or warrant that the message is free from computer viruses or other defects.
----------------------------------------------------------------------------------------------------------------------------
Simon Bryan
Re: Customising Footer and other things fails with ATTRIBUTEERROR
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Simon Bryan
I am still having this issue but the 'error log' now shows (buried in the html code):

The object <em>main_template</em> does not support this operation.

When i try to copy the Main Template to a sub page. Does this ring a bell with anyone, the suggestions I have found so far don't seem to apply.


Simon Bryan wrote:
HI all,
I have two sites hosted elsewhere in Plone3. One works normally, one is not.
I am putting the Google Analytics code in the footer, so went to:

portal_view_customizations (Manages view customizations)
plone.parabolafooter (we are using the Paraobla Theme)

When we click on 'Customize', we are taken to a page hat says 'Sorry there was an error', when I look in the Error logs I see:
AttributeError: REQUEST

Further detail on that is below (with some anonymising) - any ideas? this works fine on the other site.



Time
    Aug 14, 2008 08:52 PM
User Name
    simon (simon)
Request URL
    http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
Exception Type
    AttributeError
Exception Value
    REQUEST

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 plone.app.customerize.browser, line 47, in customizeTemplate
    * Module plone.app.customerize.registration, line 140, in customizeTemplate
    * Module plone.app.customerize.tool, line 21, in addTemplate
    * Module OFS.ObjectManager, line 347, in _setObject
    * 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 plone.app.contentrules.handlers, line 134, in added
    * Module plone.app.contentrules.handlers, line 97, in execute
    * Module plone.contentrules.engine.executor, line 27, in __call__
    * Module plone.contentrules.rule.rule, line 48, in __call__
    * Module plone.app.contentrules.actions.notify, line 61, in __call__

AttributeError: REQUEST

Display traceback as text
REQUEST
form
        'Customize'
for_name 'zope.interface.Interface'
view_name 'plone.parabolafooter'
type_name 'Products.Parabola.browser.interfaces.IPFooter'
cookies
__ac 'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager at /session_data_manager>>
other
TraversalRequestNameStack []
LANGUAGE u'en-au'
AUTHENTICATED_USER <PloneUser 'simon'>
URL 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate'
VirtualRootPhysicalPath ('', 'waitararotary')
VIRTUAL_URL 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
SERVER_URL 'http://www.waitararotary.org'
LANGUAGE_TOOL <Products.PloneLanguageTool.LanguageTool.LanguageBinding instance at 0x16218b90>
AUTHENTICATION_PATH 'waitararotary/virtual_hosting//'
__ac 'xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24='
PUBLISHED <bound method RegistrationsView.customizeTemplate of <Products.Five.metaclass.RegistrationsView object at 0x16176d50>>
ACTUAL_URL 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt'
VIRTUAL_URL_PARTS ('http://www.waitararotary.org', 'portal_view_customizations/@@customizezpt')
URL0 http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
URL1 http://www.waitararotary.org/portal_view_customizations/@@customizezpt
URL2 http://www.waitararotary.org/portal_view_customizations
URL3 http://www.waitararotary.org
BASE0 http://www.waitararotary.org
BASE1 http://www.waitararotary.org
BASE2 http://www.waitararotary.org/portal_view_customizations
BASE3 http://www.waitararotary.org/portal_view_customizations/@@customizezpt
BASE4 http://www.waitararotary.org/portal_view_customizations/@@customizezpt/customizeTemplate
environ
HTTP_MAX_FORWARDS '10'
HTTP_REFERER 'http://www.waitararotary.org/portal_view_customizations/@@customizezpt.html?for_name=zope.interface.Interface&type_name=Products.Parabola.browser.interfaces.IPFooter&view_name=plone.parabolafooter'
HTTP_ACCEPT_LANGUAGE 'en-gb,en;q=0.5'
SERVER_SOFTWARE 'Zope/(Zope 2.10.5-final, python 2.4.4, linux2) ZServer/1.1 Plone/3.0.6\r\n ShellEx Server/4.0.0'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
PATH_INFO '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1218757904
HTTP_X_FORWARDED_SERVER 'waitararotary.org'
CONNECTION_TYPE 'Keep-Alive'
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.0.1) Gecko/2008070208 Firefox/3.0.1'
HTTP_COOKIE '__ac="xzxjVgsicnMAJVRkAuFDoI3Lw0wgc2ltb24="'
SERVER_NAME '0.0.0.0'
REMOTE_ADDR 'xxx.xxx.xxx.xx7'
HTTP_VIA '1.1 mcdopad1.remex.com.au:3128 (squid/2.5.STABLE3)'
PATH_TRANSLATED '/VirtualHostBase/http/www.waitararotary.org:80/waitararotary/VirtualHostRoot/portal_view_customizations/@@customizezpt'
SERVER_PORT '8080'
CONTENT_LENGTH '526'
HTTP_HOST 'xxx.xxx.xxx.xx6:8080'
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.xxx.xxx.xxx, 210.185.98.18'
HTTP_X_FORWARDED_HOST 'www.waitararotary.org'
CONTENT_TYPE 'multipart/form-data; boundary=---------------------------8153132324747'
HTTP_ACCEPT_ENCODING 'gzip,deflate'