<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sascha,<br>
<br>
<blockquote cite="mid:4F2A69B6.3090801@gmail.com" type="cite"> <br>
you probably need to know the concepts of Zope Through-the-web
(TTW) and <tt>Filesystem (FS) Product Coding.</tt><br>
Some templates, scripts are in the ZODB and editable via ZMI - the
recommended style for a not so recent Zope version is using FS
Zope Products. Please identify the zope version by using the
ZMI-ControlPanel.<br>
</blockquote>
I'm reading up on the TTW and FS stuff. Any articles/pages you
particulary recommend?<br>
<br>
I can't edit anything using the ZMI, when I click on the pages in
'Content' I get the error message.<br>
<br>
The version line from the error log is this - 'Zope/(Zope
2.9.4-final, python 2.4.3, linux2) ZServer/1.1 Plone/2.5'<br>
<br>
<blockquote cite="mid:4F2A69B6.3090801@gmail.com" type="cite">
Please compare the way you start the zope instance with the way
your former colleague did it.<br>
</blockquote>
<br>
I'm not sure what the previous guy did, but I've used the init
script (/etc/init.d/zope start) and the zopectl script in the bin/
in the instance. All methods of starting give the same errors. I
have had to restart zope before now, and I've always used zopectl
and that's worked fine. It's only since the server crashed it's not
worked. I'd only used zopectl fg so I could see what was happening
on startup. Currently the site (<a class="moz-txt-link-abbreviated" href="http://www.legulcerforum.org">www.legulcerforum.org</a>) is started
using the init script.<br>
<br>
<blockquote cite="mid:4F2A69B6.3090801@gmail.com" type="cite">
Identify if you are using a custom developed Zope Product with
templates and a 'main_template' and optionally a 'folder_listing'
Zope Page Template or similar. Find them by searching in the
filesystem ('Products' Folder is one option) and in the ZMI and
tell us the location if you find them.<br>
</blockquote>
I don't think it's custom, I've put a list of the Products directory
on pastebin:<br>
<br>
<a class="moz-txt-link-freetext" href="http://pastebin.com/cftnjbgZ">http://pastebin.com/cftnjbgZ</a><br>
<br>
I think it's pretty much just plone.<br>
<br>
<blockquote cite="mid:4F2A69B6.3090801@gmail.com" type="cite"> <br>
It could be that the Filesystem Directory Views need to be created
manually - if the product code is not doing that properly.<br>
</blockquote>
How can I check that? <br>
<br>
I used the ATCT Tool to recatalog the site, not sure if that's the
same thing.<br>
<br>
<blockquote cite="mid:4F2A69B6.3090801@gmail.com" type="cite">
Please check this stuff and come back. And the way with pastebin
is right - the more (proper) information we have the better. At
the moment the bits and pieces of your application are not
complete to me - help me. Now its your turn.<br>
</blockquote>
<br>
I have started to see some more errors in the error_log eg:<br>
<br>
<a class="moz-txt-link-freetext" href="http://pastebin.com/ZrhquAZH">http://pastebin.com/ZrhquAZH</a><br>
<br>
Hopefully that's useful. Thanks for you help.<br>
<br>
Matthew<br>
<br>
<blockquote cite="mid:4F2A69B6.3090801@gmail.com" type="cite"> <br>
Sascha<br>
<br>
Am 02.02.2012 11:27, schrieb Matthew Moore:
<blockquote cite="mid:4F2A6502.6010402@smtl.co.uk" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 02/02/12 10:19, Niels Dettenbach wrote:
<blockquote cite="mid:2359079.8q1AhrqIq1@gongo" type="cite">
<pre wrap="">Am Donnerstag, 2. Februar 2012, 10:15:44 schrieb Matthew Moore:
</pre>
<blockquote type="cite">
<pre wrap="">For more detailed information about the error, please refer to the error
log.
</pre>
</blockquote>
<pre wrap="">It highly makes sense to do that (and i.e. post the details here) ;)
</pre>
</blockquote>
The output from zopectl fg is on the pastebin link:<br>
<br>
<pre wrap=""><a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://pastebin.com/bhBp7AXf">http://pastebin.com/bhBp7AXf</a>
</pre>
It's quite a lot of output, so I didn't really want to post it
to the list. But here's a selection:<br>
<br>
<ol>
<li class="li2">
<div class="de2">2012-02-01 16:02:16 ERROR root Exception
while rendering an error message</div>
</li>
<li class="li1">
<div class="de1">Traceback (most recent call last):</div>
</li>
<li class="li2">
<div class="de2"> File
"/usr/local/zope/lib/python/OFS/SimpleItem.py", line 223,
in raise_standardErrorMessage</div>
</li>
<li class="li1">
<div class="de1"> v = s(**kwargs)</div>
</li>
<li class="li2">
<div class="de2"> File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 108, in __call__</div>
</li>
<li class="li1">
<div class="de1"> return Script.__call__(self, *args,
**kw)</div>
</li>
<li class="li2">
<div class="de2"> File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__</div>
</li>
<li class="li1">
<div class="de1"> return self._bindAndExec(args, kw,
None)</div>
</li>
<li class="li2">
<div class="de2"> File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec</div>
</li>
<li class="li1">
<div class="de1"> return self._exec(bound_data, args, kw)</div>
</li>
<li class="li2">
<div class="de2"> File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPythonScript.py",
line 164, in _exec</div>
</li>
<li class="li1">
<div class="de1"> result = f(*args, **kw)</div>
</li>
<li class="li2">
<div class="de2"> File "Script (Python)", line 16, in
standard_error_message</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__</div>
</li>
<li class="li2">
<div class="de2"> return self._bindAndExec(args, kw,
None)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec</div>
</li>
<li class="li2">
<div class="de2"> return self._exec(bound_data, args, kw)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 195, in _exec</div>
</li>
<li class="li2">
<div class="de2"> result =
self.pt_render(extra_context=bound_names)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/instances/zope-voyager2/Products/CMFCore/FSPageTemplate.py",
line 134, in pt_render</div>
</li>
<li class="li2">
<div class="de2"> result =
FSPageTemplate.inheritedAttribute('pt_render')(</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render</div>
</li>
<li class="li2">
<div class="de2"> tal=not source, strictinsert=0)()</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
238, in __call__</div>
</li>
<li class="li2">
<div class="de2"> self.interpret(self.program)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
281, in interpret</div>
</li>
<li class="li2">
<div class="de2"> handlers[opcode](self, args)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/TAL/TALInterpreter.py", line
735, in do_useMacro</div>
</li>
<li class="li2">
<div class="de2"> macro =
self.engine.evaluateMacro(macroExpr)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/PageTemplates/TALES.py",
line 221, in evaluate</div>
</li>
<li class="li2">
<div class="de2"> return expression(self)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 185, in __call__</div>
</li>
<li class="li2">
<div class="de2"> return self._eval(econtext)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 173, in _eval</div>
</li>
<li class="li2">
<div class="de2"> ob = self._subexprs[-1](econtext)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 127, in _eval</div>
</li>
<li class="li2">
<div class="de2"> ob = restrictedTraverse(ob, path,
getSecurityManager())</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/PageTemplates/Expressions.py",
line 286, in restrictedTraverse</div>
</li>
<li class="li2">
<div class="de2"> o=t(REQUEST, name)</div>
</li>
<li class="li1">
<div class="de1"> File
"/usr/local/zope/lib/python/Products/Five/traversable.py",
line 115, in __bobo_traverse__</div>
</li>
<li class="li2">
<div class="de2"> raise AttributeError(name)</div>
</li>
<li class="li1">
<div class="de1">AttributeError: main_template</div>
</li>
</ol>
<br>
The error_log that you can access through the management page is
blank. There's nothing in the syslogs/messages/apache logs.<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Matthew Moore
Surgical Materials Testing Laboratory
System Administrator
Telephone: +44 (0)1656 752165
Email: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:matt@smtl.co.uk">matt@smtl.co.uk</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Zope maillist - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Zope@zope.org">Zope@zope.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope">https://mail.zope.org/mailman/listinfo/zope</a>
** No cross posts or HTML encoding! **
(Related lists -
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-announce">https://mail.zope.org/mailman/listinfo/zope-announce</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-dev">https://mail.zope.org/mailman/listinfo/zope-dev</a> )
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Zope maillist - <a class="moz-txt-link-abbreviated" href="mailto:Zope@zope.org">Zope@zope.org</a>
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope">https://mail.zope.org/mailman/listinfo/zope</a>
** No cross posts or HTML encoding! **
(Related lists -
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-announce">https://mail.zope.org/mailman/listinfo/zope-announce</a>
<a class="moz-txt-link-freetext" href="https://mail.zope.org/mailman/listinfo/zope-dev">https://mail.zope.org/mailman/listinfo/zope-dev</a> )
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Matthew Moore
Surgical Materials Testing Laboratory
System Administrator
Telephone: +44 (0)1656 752165
Email: <a class="moz-txt-link-abbreviated" href="mailto:matt@smtl.co.uk">matt@smtl.co.uk</a>
</pre>
</body>
</html>