[ZPT] "manage_page_header" not found in "here/manage_page_header"

pbrown@touchcorp.com pbrown@touchcorp.com
Tue, 15 Jan 2002 11:36:37 +1100


--openmail-part-0076e1de-00000002
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
	;Creation-Date="Tue, 15 Jan 2002 11:36:37 +1100"
Content-Transfer-Encoding: quoted-printable

Hi

I am new to Zope and have been totally impressed by my initial exposure
to this product.  I would like to use it as a solution for managing my
company's information - moving our intranet from PHP to Zope.  =20

I read the Zope Book and tried to get my head around DTML.  I found DTML=

to be good but a little too different from PHP, particularly when trying=

to share values between a DTML method and an external script.  It didn't=

click for me.  Then I discovered ZPT.  ZPT I can understand and I am
very keen to use.   I have a binary install of Zope 2.4.3 with ZPT 1.4.1=

on my OSX machine at home which works perfectly (thanks to Richard from
Bizar software!).  However, I hit a big problem when trying to reproduce=

this environment on my Linux RH7.1 box at work.

When I install the PageTemplates product (following the installation
instructions) and then try and add a Page Template, I get the following
error:

      "manage=5Fpage=5Fheader" not found in "here/manage=5Fpage=5Fheader=
"

with the following traceback:


  File /usr/local/zope/2-4-3/lib/python/ZPublisher/Publish.py, line 223,=

in publish=5Fmodule
  File /usr/local/zope/2-4-3/lib/python/ZPublisher/Publish.py, line 187,=

in publish
  File /usr/local/zope/2-4-3/lib/python/Zope/=5F=5Finit=5F=5F.py, line 2=
26, in
zpublisher=5Fexception=5Fhook
  File /usr/local/zope/2-4-3/lib/python/ZPublisher/Publish.py, line 171,=

in publish
  File /usr/local/zope/2-4-3/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: ptAdd)
  File /usr/local/zope/2-4-3/lib/python/ZPublisher/Publish.py, line 112,=

in call=5Fobject
    (Object: ptAdd)
  File /usr/local/zope/2-4-3/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in =5F=5Fcall=5F=5F
    (Object: ptAdd)
  File /usr/local/zope/2-4-3/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in =5FbindAndExec
    (Object: ptAdd)
  File
/usr/local/zope/2-4-3/lib/python/Products/PageTemplates/PageTemplateFile=

=2Epy, line 163, in =5Fexec
    (Object: ptAdd)
  File
/usr/local/zope/2-4-3/lib/python/Products/PageTemplates/PageTemplate.py,=

line 156, in pt=5Frender
    (Object: ptAdd)
    (Info: {'container': <=5F=5FFactoryDispatcher=5F=5F instance at 8173=
8c8>,
 'here': <=5F=5FFactoryDispatcher=5F=5F instance at 81738c8>,
 'modules': <Products.PageTemplates.ZRPythonExpr.=5FSecureModuleImporter=

instance at 0x87e5e3c>,
 'nothing': None,
 'options': {'args': ()},
 'request':
<h3>form</h3><table></table><h3>cookies</h3><table>.......</table>,
 'root': <Application instance at 88601d0>,
 'template': <PageTemplateFile instance at 87e6558>,
 'traverse=5Fsubpath': [],
 'user': Anonymous User})
  File /usr/local/zope/2-4-3/lib/python/TAL/TALInterpreter.py, line 229,=

in =5F=5Fcall=5F=5F
  File /usr/local/zope/2-4-3/lib/python/TAL/TALInterpreter.py, line 262,=

in interpret
  File /usr/local/zope/2-4-3/lib/python/TAL/TALInterpreter.py, line 503,=

in do=5FinsertStructure=5Ftal
  File
/usr/local/zope/2-4-3/lib/python/Products/PageTemplates/Expressions.py,
line 198, in =5Feval
    (Info: here)
  File
/usr/local/zope/2-4-3/lib/python/Products/PageTemplates/Expressions.py,
line 327, in restrictedTraverse
    (Info: (['manage=5Fpage=5Fheader'], 0))
  File
/usr/local/zope/2-4-3/lib/python/Products/PageTemplates/Expressions.py,
line 346, in validate2
Undefined: (see above)

This occurs no matter whether I am logged in as admin or using my own
manager account. It occurs in the Root folder and any folder I create.
I am able to add all other objects without a problem.

I have tried:

* installing and build source version of Zope 2.4.3 with TAL, ZTUtils,
and PageTemplates 1.4.1
* installing binary version 2.4.3 with above
* installing and build source version of Zope 2.5 b2 which includes ZPT
(receive similar errors)
* installing source for 2.4.3 with TAL, ZTUtils and PageTemplates 1.4.0
(same error)

I note that this problem has been mentioned in other emails and has been=

attributed to unix permission problems.  I have tried changing
permissions on the PageTemplates directory, changing ownership to
nobody, running the Zope server as root, running the Zope server as
nobody but the problem persists.

The fact that my packaged distro on OSX works perfectly suggests to me
that there is something I am 'missing' in my setup on Linux but I have
had no luck in pinpointing it. =20

Can anyone advise of a version of PageTemplates that is known to work
'out of the box' with either Zope 2.4.3 or 2.5 b2=3F  Any tips on where =
I
might be messing up would also be appreciated.

Thanks
Peter


--openmail-part-0076e1de-00000002
Content-Type: application/rtf
Content-Disposition: attachment; filename="BDY.RTF"
	;Creation-Date="Tue, 15 Jan 2002 11:36:37 +1100"
Content-Transfer-Encoding: base64

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYw
XGZzd2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmls
XGZjaGFyc2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5l
dzt9fQ0Ke1xjb2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1
NTt9DQpcdWMxXHBhcmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpXHBhcg0KXHBhcg0K
SSBhbSBuZXcgdG8gWm9wZSBhbmQgaGF2ZSBiZWVuIHRvdGFsbHkgaW1wcmVzc2VkIGJ5IG15
IGluaXRpYWwgZXhwb3N1cmUgdG8gdGhpcyBwcm9kdWN0LiAgSSB3b3VsZCBsaWtlIHRvIHVz
ZSBpdCBhcyBhIHNvbHV0aW9uIGZvciBtYW5hZ2luZyBteSBjb21wYW55J3MgaW5mb3JtYXRp
b24gLSBtb3Zpbmcgb3VyIGludHJhbmV0IGZyb20gUEhQIHRvIFpvcGUuICAgXHBhcg0KXHBh
cg0KSSByZWFkIHRoZSBab3BlIEJvb2sgYW5kIHRyaWVkIHRvIGdldCBteSBoZWFkIGFyb3Vu
ZCBEVE1ML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