ZPT and "incompatible version None" error :(

J

Jaroslaw Zabiello

I got strange errors in Zope 2.7.

METALError
macro 'context/base' has incompatible version None, at line 1, column 1

One ZPT file (named 'base') defines some simply slots:

<html
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en-US"
lang="en-US"
i18n:domain="plone"
metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div metal:define-macro="content">
<div metal:define-slot="gora">[up]</div>
<div metal:define-slot="srodek">[middle]</div>
<div metal:define-slot="dol">[bottom]</div>
</div>
</div>
</body>
</html>

Another ZPT file try to fill one slot:

<div metal:use-macro="context/base">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>

When I try to open it, I get the error mentioned above. Any idea?
 
B

bruno modulix

Jaroslaw said:
I got strange errors in Zope 2.7.
2.7.?


METALError
macro 'context/base' has incompatible version None, at line 1, column 1
(snip)

When I try to open it, I get the error mentioned above. Any idea?
yes : try posting on a Zope/Plone related mailing-list. This is a Zope
Page Template specific problem, and you'll get better answers if you ask
in the right place.

Also, googling for ZPT + macro + "incompatible version" may be helpful too.
 
J

Jaroslaw Zabiello

Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisa³(a):
Another ZPT file try to fill one slot:

<div metal:use-macro="context/base">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>

When I try to open it, I get the error mentioned above. Any idea?

Solution was trivial

<div metal:use-macro="context/base/macros/content">
<div metal:fill-slot="gora">Search|Read|Compare|History</div>
</div>
 
B

bruno modulix

Jaroslaw said:
Dnia Mon, 12 Sep 2005 16:51:48 +0200, Jaroslaw Zabiello napisa³(a):




Solution was trivial

<div metal:use-macro="context/base/macros/content">

Duh ! I should have spotted this one :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top