-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Cannot unset string offsets in vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php on line 337 #46
Comments
v3.1.21 does not have this bug, works fine. |
You should probably add the (template or other) code that triggers this error. |
Please provide example code |
I can't reproduce the problem. Do you get it on all templates? |
for the time being just in one, i'll provide the templates tomorrow |
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. |
The provided template does not contain any {bock}{/block} tags. |
the provided template has one block tag
or am i missing something ? no, i didn't modify any files, i might have cleared the cached versions and templates_c folder |
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? |
Even if the root cause of the error message is still unknown I added some extra check to avoid it. |
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. |
It did recompile because you cleared templates_c . |
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 |
Merge release-2.0.5.1 release branch into master
smarty v.3.1.24
Stack trace:
The text was updated successfully, but these errors were encountered: