[Zope] Page Templates problem

Agata Cruickshank a.cruickshank@ccs.bbk.ac.uk
Tue, 5 Mar 2002 10:57:41 -0000


I'm using PageTemplates product version 1.4.1 with Zope 2.4.3. I get the =
error message immediately when selecting create new Page Template option =
from the drop down selection box, so I do not get an option of entering =
Id or title. However if I try to create a new Page Template in Netscape =
rather than Explorer it seems to work fine. If I try to edit this new =
Page Template in Explorer I get the error message again.=20

I'm not sure where "manage_page_header" can be found, but it appears =
that Explorer cannot find a path to it, while Netscape can.=20

Regards,
Agata=20

-----Original Message-----
From: Peter Bengtsson [mailto:mail@peterbe.com]
Sent: 04 March 2002 16:53
To: Agata Cruickshank; zope
Subject: Re: [Zope] Page Templates problem


Can you at all get the screen up where you enter an Id or possibly a =
file?
Have you changed the PageTemplates installation in any way? What =
changes?

It looks like the PageTemplate product is broken. What version?

At 15:15 2002-03-04 +0000, Agata Cruickshank wrote:

>Dear all,
>
>When attempting to create a new Page Template I get the following error =

>(only when editing in Internet Explorer, it doesn't raise an error in=20
>Netscape). Has anyone come across this before? Any suggestions as to =
what=20
>happens?  Many thanks for your help.
>
>Agata
>
>I have the following versions of Zope and Page Templates:
>Zope Version
>                  (Zope 2.4.3 (binary release, python 2.1, win32-x86),=20
> python 2.1.0, win32)
>  Python Version
>                  2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)]
>  System Platform
>                  win32
>  Process Id
>                  2076 (2084)
>  Running For
>                  52 min 44 sec
>
>Page Templates version 1.4.1
>
>------------------------------------------------------------------------=
-----------------------------------------------------------------------
>
>Zope Error Zope has encountered an error while publishing this =
resource.=20
>Error Type: Undefined Error Value: "manage_page_header" not found in=20
>"here/manage_page_header"  Troubleshooting Suggestions The URL may be=20
>incorrect.  The parameters passed to this resource may be incorrect.  A =

>resource that this resource relies on may be encountering an error.  =
For=20
>more detailed information about the error, please refer to the HTML =
source=20
>for this page.  If the error persists please contact the site =
maintainer.=20
>Thank you for your patience.
>  <<http://www.zope.org/Credits>http://www.zope.org/Credits> ole0.bmp=20
> <http://www.zope.org/Credits>
>Traceback (innermost last):
>   File C:\PROGRA~1\Zope1\lib\python\ZPublisher\Publish.py, line 223, =
in=20
> publish_module
>   File C:\PROGRA~1\Zope1\lib\python\ZPublisher\Publish.py, line 187, =
in=20
> publish
>   File C:\PROGRA~1\Zope1\lib\python\Zope\__init__.py, line 226, in=20
> zpublisher_exception_hook
>   File C:\PROGRA~1\Zope1\lib\python\ZPublisher\Publish.py, line 171, =
in=20
> publish
>   File C:\PROGRA~1\Zope1\lib\python\ZPublisher\mapply.py, line 160, in =

> mapply
>     (Object: ptAdd)
>   File C:\PROGRA~1\Zope1\lib\python\ZPublisher\Publish.py, line 112, =
in=20
> call_object
>     (Object: ptAdd)
>   File C:\PROGRA~1\Zope1\lib\python\Shared\DC\Scripts\Bindings.py, =
line=20
> 324, in __call__
>     (Object: ptAdd)
>   File C:\PROGRA~1\Zope1\lib\python\Shared\DC\Scripts\Bindings.py, =
line=20
> 354, in _bindAndExec
>     (Object: ptAdd)
>   File C:\Program=20
> Files\Zope1\lib\python\Products\PageTemplates\PageTemplateFile.py, =
line=20
> 163, in _exec
>     (Object: ptAdd)
>   File C:\Program=20
> Files\Zope1\lib\python\Products\PageTemplates\PageTemplate.py, line =
156,=20
> in pt_render
>     (Object: ptAdd)
>     (Info: {'container': <__FactoryDispatcher__ instance at 0148F8E8>,
>  'here': <__FactoryDispatcher__ instance at 0148F8E8>,
>  'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter =

> instance at 00F64B04>,
>  'nothing': None,
>  'options': {'args': ()},
>  'request': <h3>form</h3><table></table><h3>cookies</h3><table><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>user_email</th><td>'a.cruickshank@bbk.ac.uk'</td></tr>=
<tr=20
>   valign=3D"top" =
align=3D"left"><th>user_name</th><td>'test30'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%0=
C%24%8AA%DCb.%20%91%92Y%9C%98%94%99%93YRY%CC%07%E4%26%15%A5%26%A6%24%17%9=
5%E6%26%15%EB%15T%02%00%F4%E4%0C%5B'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>dtpref_rows</th><td>'21'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>_suggest_email</th><td>'a.cruickshank%40bbk.ac.uk'</td=
></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>__ac_name</th><td>'agata'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>dtpref_cols</th><td>'80'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>_suggest_author</th><td>'test'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>__ac</th><td>'YWdhdGE6a3U3ZGhyOXA%3D%0A'</td></tr><tr =

> valign=3D"top"=20
> =
align=3D"left"><th>tree-s</th><td>'eJyLjlZ3hANPW/XYWAAtiQTP'</td></tr><tr=
=20
> valign=3D"top" =
align=3D"left"><th>portal_skin</th><td>'Basic'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>tutorialExamplesURL</th><td>'<http://localhost:8080/ag=
a/examples'>http://localhost:8080/aga/examples'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>suggest_notify</th><td>''</td></tr></table><h3>other</=
h3><table><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>user_email</th><td>'a.cruickshank@bbk.ac.uk'</td></tr>=
<tr=20
>   valign=3D"top" =
align=3D"left"><th>user_name</th><td>'test30'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>dtpref_rows</th><td>'21'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>_suggest_email</th><td>'a.cruickshank%40bbk.ac.uk'</td=
></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE4</th><td>'<http://localhost:8080/manage_addProduc=
t/PageTemplates/ptAdd'>http://localhost:8080/manage_addProduct/PageTempla=
tes/ptAdd'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>__ac_name</th><td>'agata'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>dtpref_cols</th><td>'80'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE3</th><td>'<http://localhost:8080/manage_addProduc=
t/PageTemplates'>http://localhost:8080/manage_addProduct/PageTemplates'</=
td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL2</th><td>'<http://localhost:8080/manage_addProduct=
'>http://localhost:8080/manage_addProduct'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE1</th><td>'<http://localhost:8080'>http://localhos=
t:8080'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>traverse_subpath</th><td>[]</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL1</th><td>'<http://localhost:8080/manage_addProduct=
/PageTemplates'>http://localhost:8080/manage_addProduct/PageTemplates'</t=
d></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>SERVER_URL</th><td>'<http://localhost:8080'>http://loc=
alhost:8080'</td></tr><tr=20
> valign=3D"top" align=3D"left"><th>AUTHENTICATED_USER</th><td>Anonymous =

> User</td></tr><tr valign=3D"top"=20
> align=3D"left"><th>TraversalRequestNameStack</th><td>[]</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>tree-s</th><td>'eJyLjlZ3hANPW/XYWAAtiQTP'</td></tr><tr=
=20
> valign=3D"top" =
align=3D"left"><th>AUTHENTICATION_PATH</th><td>''</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>__cp</th><td>'x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%0=
C%24%8AA%DCb.%20%91%92Y%9C%98%94%99%93YRY%CC%07%E4%26%15%A5%26%A6%24%17%9=
5%E6%26%15%EB%15T%02%00%F4%E4%0C%5B'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>portal_skin</th><td>'Basic'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL3</th><td>'<http://localhost:8080'>http://localhost=
:8080'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL0</th><td>'<http://localhost:8080/manage_addProduct=
/PageTemplates/ptAdd'>http://localhost:8080/manage_addProduct/PageTemplat=
es/ptAdd'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>_suggest_author</th><td>'test'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE0</th><td>'<http://localhost:8080'>http://localhos=
t:8080'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>PUBLISHED</th><td>&lt;PageTemplateFile=20
> instance at 013E1D20&gt;</td></tr><tr valign=3D"top"=20
> =
align=3D"left"><th>URL</th><td>'<http://localhost:8080/manage_addProduct/=
PageTemplates/ptAdd'>http://localhost:8080/manage_addProduct/PageTemplate=
s/ptAdd'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE2</th><td>'<http://localhost:8080/manage_addProduc=
t'>http://localhost:8080/manage_addProduct'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>__ac</th><td>'YWdhdGE6a3U3ZGhyOXA%3D%0A'</td></tr><tr =

> valign=3D"top"=20
> =
align=3D"left"><th>tutorialExamplesURL</th><td>'<http://localhost:8080/ag=
a/examples'>http://localhost:8080/aga/examples'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>suggest_notify</th><td>''</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL0</th><td><http://localhost:8080/manage_addProduct/=
PageTemplates/ptAdd>http://localhost:8080/manage_addProduct/PageTemplates=
/ptAdd</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL1</th><td><http://localhost:8080/manage_addProduct/=
PageTemplates>http://localhost:8080/manage_addProduct/PageTemplates</td><=
/tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL2</th><td><http://localhost:8080/manage_addProduct>=
http://localhost:8080/manage_addProduct</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>URL3</th><td><http://localhost:8080>http://localhost:8=
080</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE0</th><td><http://localhost:8080>http://localhost:=
8080</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE1</th><td><http://localhost:8080>http://localhost:=
8080</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE2</th><td><http://localhost:8080/manage_addProduct=
>http://localhost:8080/manage_addProduct</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE3</th><td><http://localhost:8080/manage_addProduct=
/PageTemplates>http://localhost:8080/manage_addProduct/PageTemplates</td>=
</tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>BASE4</th><td><http://localhost:8080/manage_addProduct=
/PageTemplates/ptAdd>http://localhost:8080/manage_addProduct/PageTemplate=
s/ptAdd</td></tr></table><h3>environ</h3><table><tr=20
> valign=3D"top" align=3D"left"><th>HTTP_ACCEPT_ENCODING</th><td>'gzip,=20
> deflate'</td></tr><tr valign=3D"top"=20
> =
align=3D"left"><th>channel.creation_time</th><td>1015253643</td></tr><tr =

> valign=3D"top"=20
> align=3D"left"><th>SERVER_PROTOCOL</th><td>'HTTP/1.1'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>SERVER_PORT</th><td>'8080'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>PATH_INFO</th><td>'/manage_addProduct/PageTemplates/pt=
Add'</td></tr><tr=20
> valign=3D"top"=20
> align=3D"left"><th>HTTP_HOST</th><td>'localhost:8080'</td></tr><tr=20
> valign=3D"top" =
align=3D"left"><th>REQUEST_METHOD</th><td>'GET'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>PATH_TRANSLATED</th><td>'\\manage_addProduct\\PageTemp=
lates\\ptAdd'</td></tr><tr=20
> valign=3D"top" align=3D"left"><th>SCRIPT_NAME</th><td>''</td></tr><tr=20
> valign=3D"top" align=3D"left"><th>SERVER_SOFTWARE</th><td>'Zope/(Zope =
2.4.3=20
> (binary release, python 2.1, win32-x86), python 2.1.0, win32)=20
> ZServer/1.1b1'</td></tr><tr valign=3D"top"=20
> align=3D"left"><th>HTTP_ACCEPT_LANGUAGE</th><td>'en-gb'</td></tr><tr=20
> valign=3D"top" align=3D"left"><th>HTTP_ACCEPT</th><td>'image/gif,=20
> image/x-xbitmap, image/jpeg, image/pjpeg, =
application/vnd.ms-powerpoint,=20
> application/vnd.ms-excel, application/msword, */*'</td></tr><tr=20
> valign=3D"top"=20
> align=3D"left"><th>REMOTE_ADDR</th><td>'127.0.0.1'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>HTTP_COOKIE</th><td>'tutorialExamplesURL=3D"<http://lo=
calhost:8080/aga/examples>http://localhost:8080/aga/examples";=20
> __ac_name=3D"agata"; dtpref_rows=3D"21"; dtpref_cols=3D"80";=20
> _suggest_author=3D"test"; =
_suggest_email=3D"a.cruickshank%40bbk.ac.uk";=20
> suggest_notify=3D""; user_email=3D"a.cruickshank@bbk.ac.uk";=20
> user_name=3D"test30"; tree-s=3D"eJyLjlZ3hANPW/XYWAAtiQTP";=20
> =
__cp=3D"x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%C1%0C%24%8AA%DCb.%20%91%92Y%9=
C%98%94%99%93YRY%CC%07%E4%26%15%A5%26%A6%24%17%95%E6%26%15%EB%15T%02%00%F=
4%E4%0C%5B";=20
> portal_skin=3D"Basic"; =
__ac=3D"YWdhdGE6a3U3ZGhyOXA%3D%0A"'</td></tr><tr=20
> valign=3D"top"=20
> =
align=3D"left"><th>SERVER_NAME</th><td>'ccs28.ccs.bbk.ac.uk'</td></tr><tr=
=20
> valign=3D"top"=20
> align=3D"left"><th>GATEWAY_INTERFACE</th><td>'CGI/1.1'</td></tr><tr=20
> valign=3D"top" align=3D"left"><th>HTTP_USER_AGENT</th><td>'Mozilla/4.0 =

> (compatible; MSIE 5.01; Windows NT 5.0)'</td></tr><tr valign=3D"top"=20
> =
align=3D"left"><th>CONNECTION_TYPE</th><td>'Keep-Alive'</td></tr></table>=
,
>
>  'root': <Application instance at 01430C00>,
>  'template': <PageTemplateFile instance at 013E1D20>,
>  'traverse_subpath': [],
>  'user': Anonymous User})
>   File C:\Program Files\Zope1\lib\python\TAL\TALInterpreter.py, line =
229,=20
> in __call__
>   File C:\Program Files\Zope1\lib\python\TAL\TALInterpreter.py, line =
262,=20
> in interpret
>   File C:\Program Files\Zope1\lib\python\TAL\TALInterpreter.py, line =
503,=20
> in do_insertStructure_tal
>   File C:\Program=20
> Files\Zope1\lib\python\Products\PageTemplates\Expressions.py, line =
198,=20
> in _eval
>     (Info: here)
>   File C:\Program=20
> Files\Zope1\lib\python\Products\PageTemplates\Expressions.py, line =
327,=20
> in restrictedTraverse
>     (Info: (['manage_page_header'], 0))
>   File C:\Program=20
> Files\Zope1\lib\python\Products\PageTemplates\Expressions.py, line =
346,=20
> in validate2
>Undefined: (see above)
>