|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Real Smarty n00b
Joined: 20 Nov 2003 Posts: 2
|
Posted: Thu Nov 20, 2003 11:28 am Post subject: Call to undefined function: _load_plugins() with Smary2.6.0 |
|
|
Hello,
I've just tried new Smarty 2.6.0 version with service which worked OK under 2.5.0 and encountered problem. In the error_log there are messages like that:
PHP Fatal error: Call to undefined function: _load_plugins() in /var/www/htdocs/my_project/var/templates_c/%%117/%%1172603085/index.tpl.php on line 3
Indeed, web service extends default Smarty class to sepparate my custom plugins from default ones. In the extended class there is an entry:
Code: | $this->plugins_dir = array(
0 => 'plugins',
1 => MY_PATH.'/cfg/smarty_custom_plugins'
); |
Am I doing something wrong or is it some incompatibility between versions?
Regards,
Piotr Poznanski |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Nov 20, 2003 12:29 pm Post subject: |
|
|
i think you didn't delete the files in templates_c after upgrading.
"templates_c" and "cache" have to be cleared after changin smarty-versions. the temp-files a likely to be incompatible. |
|
Back to top |
|
Real Smarty n00b
Joined: 20 Nov 2003 Posts: 2
|
Posted: Thu Nov 20, 2003 12:49 pm Post subject: You are right of course :) |
|
|
Right. I just grep'ed -r my project dir and noticed the call's to missing function in template_c files In the first attempt I checked only project/site/ and project/cfg subdir's of my project and not project/var/templates_c
I've cleared it and now everything seems working perfect!
Sorry for trouble and thanx for Your help!
Yours,
Piotr |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|