Comments (13)
v3.1.21 does not have this bug, works fine.
from smarty.
You should probably add the (template or other) code that triggers this error.
from smarty.
Please provide example code
from smarty.
I can't reproduce the problem. Do you get it on all templates?
from smarty.
for the time being just in one, i'll provide the templates tomorrow
from smarty.
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.
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.
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.
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.
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.
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.
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.
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)
- Fatal error: Uncaught --> Smarty: Unable to write file [file_path] thrown in C:\[project_path]\vendor\smarty\smarty\src\Smarty.php on line 1732 HOT 7
- Request for `prependTemplateDir()` or more options with `addTemplateDir()` - weight, duplicate handling HOT 9
- undefined extension class 'Smarty_Internal_Method_Get_Template_Vars' HOT 1
- Is it possible patch v2 for PHP8 instead of migrating to v4+? HOT 1
- default modifier ignores nocache on variables
- Smarty registered classes check prevents use of class constants to avoid typo bugs in templates HOT 2
- 4.5.3: Function whitelist via Smarty_Security is being ignored
- Misleading error messages with {capture}
- Smarty v5 Error: {section} Tag First Argument Type Mismatch when opening and closing tag on NoCache HOT 3
- Help with Smarty dateformat modifier - change to dd/mm/yyyy HOT 5
- Error: For loop not working when using extends resource type HOT 1
- Smarty Not Working HOT 3
- XAXOKPIMUE
- How to use '|' as '||'? HOT 1
- How it's possible to modifiy tpl_vars subkey inside a plugin function HOT 3
- Feature request. Able to run multiple versions HOT 4
- how to use loadFilter() ? HOT 5
- Unable to override built-in modifiers. HOT 2
- unknown modifier 'var_dump' and unknown modifier 'print_r' HOT 1
- Composer and external dependencies defeat the point of using Smarty over any off-the-shelf framework. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smarty.