I
I
Ivan Antonov2015-09-10 14:16:01
PHP
Ivan Antonov, 2015-09-10 14:16:01

Smarty 3 error with compiler_object, how to solve?

Now I'm running someone else's self-written site. From time to time, the site loads the page incorrectly, there are inscriptions like %Banner1% or it loads without styles.
The following is in the logs:

PHP Fatal error:  Uncaught exception 'SmartyException' with message 'template property 'compiler_object' does not exist.' in smarty/sysplugins/smarty_internal_template.php:953
Stack trace:
#0 smarty/sysplugins/smarty_internal_template.php(247): Smarty_Internal_Template->__get('compiler_object')
#1 smarty/sysplugins/smarty_internal_template.php(456): Smarty_Internal_Template->compileTemplateSource()
#2 smarty/sysplugins/smarty_internal_template.php(567): Smarty_Internal_Template->renderTemplate()
#3 cache/templates/15172c3736f9a98e961ddd37225befea8786ccaf.file.defaultList.tpl.php(137): Smarty_Internal_Template->getRenderedTemplate()
#4 smarty/sysplugins/smarty_internal_templ in smarty/sysplugins/smarty_internal_template.php on line 953

I believe this error is caused by Smarty. I have never worked with this template engine, tell me what could be the error and how to solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-09-10
@OnYourLips

You need to reproduce the error, find the conditions for its occurrence using the debugger and eliminate them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question