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)
- Referencing native php classes within namespace without define global namespace
- Using unregistered static method in a template is deprecated and will be removed in a future release - deprecation warning HOT 1
- Version 4.5.1 breaking change: Variables by reference HOT 10
- Deprecated: Using unregistered function in a template is deprecated HOT 1
- Error when calling the method "compileAllTemplates" on Smarty 5.0.0
- Q/A - Smarty Plugins v4 > v5 HOT 1
- Changelog is incomplete HOT 5
- hasVariable triggers warning on undefined variable
- Error: Call to undefined method Smarty\Smarty::setErrorUnassigned() HOT 3
- registerPlugin modifier unable to call with reference HOT 7
- Wrong implode/join use? HOT 3
- Check compatability of empty, reset, current, end, prev, next and isset in v5
- smarty.net down HOT 10
- getTemplateVars not working for in template defined variables HOT 3
- Smarty5: {config_load config variables not available in all templates HOT 1
- getTemplateVars - why the change in return signature in smarty 5? HOT 2
- PHP 8.3 problem in Template->appendCode() in Smarty 5
- Variable as a parameter in Smarty 5 HOT 7
- Smarty 4.5.2 template generation causes PHP Warning: Array to string conversion error HOT 1
- Smarty5: installation without composer HOT 16
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.