malthe / chameleon

Fast HTML/XML template engine for Python
https://chameleon.readthedocs.io
Other
176 stars 64 forks source link

NameError: global name '__cache_211979536' is not defined #118

Closed zopyx closed 11 years ago

zopyx commented 12 years ago

Plone 4.2rc1, five.pt 2.2.1, Chameleon 2.8.5.

I added the following fill-slot lines to a browser view template and received

        <div metal:fill-slot="content-title">
            <h1 id="parent-fieldname-title" class="documentFirstHeading" tal:content="context/Title" />
        </div>

and received.

ction. Currently the entire catalog content is returned. In Zope 2.14 this will result in an empty LazyCat to be returned. return self._catalog.searchResults(REQUEST, used, kw) 2012-06-04 07:14:13 ERROR Zope.SiteErrorLog 1338786853.390.00274967442812 http://dev1.veit-schiele.de:19080/weishaupt-09.05.12-060925/deutschland/de/produkte/heizsysteme/gas-brennwertsysteme/weishaupt-thermo-condens-wandhaengend-wtc-gw/@@product-view Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module Products.Five.browser.metaconfigure, line 476, in call Module Products.Five.browser.pagetemplatefile, line 125, in call Module Products.Five.browser.pagetemplatefile, line 59, in call Module zope.pagetemplate.pagetemplate, line 132, in pt_render Module five.pt.engine, line 93, in call** Module z3c.pt.pagetemplate, line 148, in render Module chameleon.zpt.template, line 259, in render Module chameleon.template, line 172, in render Module e93eaec25e6ac9e844e8e8d907ae02f1f32f2625.py, line 670, in render Module 4639555e80bda984879c17153db1fcff33560f5a.py, line 2405, in render_master Module 4639555e80bda984879c17153db1fcff33560f5a.py, line 338, in render_content Module 4639555e80bda984879c17153db1fcff33560f5a.py, line 604, in render_main Module e93eaec25e6ac9e844e8e8d907ae02f1f32f2625.py, line 609, in fill_content_title NameError: global name 'cache_211979536' is not defined

malthe commented 12 years ago

That's peculiar.

Do you think you can reproduce it on a vanilla Plone 4? It would make it a lot easier for me to understand what causes the error.

Thanks!

zopyx commented 12 years ago

hm...not trivial...the problem only occurs only on our projection dev instances but not with a bare Plone instance....perhaps I can grant you access to our buildout where I have a test case?

malthe commented 12 years ago

That would probably work; obviously, it would be a lot more ideal to have a reproduction in a typical environment. I'm thinking it must be possible, too.

It seems like it's an issue that's caused by an implementation detail in Python, perhaps, i.e. a "Heisenbug".

malthe commented 11 years ago

Is this still an issue. There's been quite a few commits since the last update on this issue. If you have time, please try again with the latest "master".

zopyx commented 11 years ago

Not sure, I did not receive the error anymore - either through fix or change inside my templates...