-
Notifications
You must be signed in to change notification settings - Fork 709
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
Smarty property 'sub_template' does not exist #216
Comments
It does look like that you did extend the Smarty class and accessed a none Smarty property sub_template which was not declared. Errors like this are detected by Smarty's new extension handler which tries to resolve dynamic loading of seldom used methods. |
Hi,
I am not extending the Smarty class, as well i am not declaring a property
called 'sub_template'.
Seems that Smaty is doing a confusion when it tries to mount dinamically an
internal method called getSubTemplate. Does it make any sense?
Thanks!
|
Good point. Because of some internal changes Smarty might not have seen the version change for all cases. Delete all existing compiled and cache files after the upgrade. Looks like that some old files got loaded. |
I deleted the files of 'view_c' and 'cache' folders but the error persists. An additional information is that for some templates Smarty is working, but for others not. Do you have any other idea about what can be happening? Thanks for your help! |
The {include} tag in Smarty 3.1.27 did compile a call to getSubTemplate() but all of that code was removed in 3.1.29. So it's really strange. Do you get a call stack with the exception that it could be traced further down? |
Here is my call stack
The error i am receiving is:
I am using the plugin include_if_exists, when i remove all calls to it the issue stops to happen. Does exist a native feature in Smarty that to the same? |
Hello, I'm the author of this tiny plugin: https://github.com/fulopattila122/smarty3-include-if-exists which is having issues calling |
Is it maybe _subTemplateRender() ? |
@uwetews Could you help us please? |
Yes the new function is _subTemplateRender() |
Hi Attila, Thanks for your feedback! I updated the file, but i am receiving this error:
Could you please help me with this issue? |
@masimao I think the issue belongs to my plugin, so I reopened the issue, let's continue the discussion over there. |
@masimao You updated the file with the wrong method name. It must be '_subTemplateRender()'. |
Hi,
After upgrade from Smarty 3.1.27 to 3.1.29 i am receiving this error:
Smarty property 'sub_template' does not exist
It is throwred by the file
smarty_internal_extension_handler.php
at the line 92.Someone knows how can i solve this?
Thanks!
The text was updated successfully, but these errors were encountered: