Git Product home page Git Product logo

Comments (13)

Gamesh avatar Gamesh commented on June 16, 2024

v3.1.21 does not have this bug, works fine.

from smarty.

SvenRtbg avatar SvenRtbg commented on June 16, 2024

You should probably add the (template or other) code that triggers this error.

from smarty.

uwetews avatar uwetews commented on June 16, 2024

Please provide example code

from smarty.

uwetews avatar uwetews commented on June 16, 2024

I can't reproduce the problem. Do you get it on all templates?

from smarty.

Gamesh avatar Gamesh commented on June 16, 2024

for the time being just in one, i'll provide the templates tomorrow

from smarty.

Gamesh avatar Gamesh commented on June 16, 2024

i can't seem to isolate this issue, it's produced by mail tamplate that is rendered using fetch() and before each render clearAllAssign() is issued. tried to reproduce it but currently i can't, it appears to happen only some times. I will try to find how to reproduce it all of the time.
Template:
https://gist.github.com/Gamesh/3cd1a0926227fdceee0e

from smarty.

uwetews avatar uwetews commented on June 16, 2024

The provided template does not contain any {bock}{/block} tags.
The compiler failed while compiling an inheritance template on {bock}{/block} tags.
Did you modify template files which caused a recompilation?

from smarty.

Gamesh avatar Gamesh commented on June 16, 2024

the provided template has one block tag

                                {block "mail_body"}
                                    {$message}
                                {/block}

or am i missing something ?

no, i didn't modify any files, i might have cleared the cached versions and templates_c folder

from smarty.

uwetews avatar uwetews commented on June 16, 2024

Sorry I did not see the {block} tag. Clearing the templates_c folder does explain the recompile. Can you show your template structure? Where did you include the failing template? Inside other block tags?

from smarty.

uwetews avatar uwetews commented on June 16, 2024

Even if the root cause of the error message is still unknown I added some extra check to avoid it.
The fix is now in dev-master

from smarty.

Gamesh avatar Gamesh commented on June 16, 2024

that just is the weird thing this template is not included as parent template anywhere. It is just used as standalone template and the block tags were there for future template extending. So even if some other templates change they should not cause this template to recompile as it remains the same and is not being extended or included anywhere, and has not changed for a long time.

from smarty.

uwetews avatar uwetews commented on June 16, 2024

It did recompile because you cleared templates_c .
Also now the error is clear to me. Caused by a standalone template with {block} tags.
For now either remove the {block} tags until next release or install dev-master.

from smarty.

Gamesh avatar Gamesh commented on June 16, 2024

ok, thanks for the fix. i've downgraded to smarty 3.1.21 for now, that was the last version that worked without errors with this template, i'll just wait for the next stable release

from smarty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.