Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Call to undefined function: _load_plugins() with Smary2.6.0

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Real
Smarty n00b


Joined: 20 Nov 2003
Posts: 2

PostPosted: Thu Nov 20, 2003 11:28 am    Post subject: Call to undefined function: _load_plugins() with Smary2.6.0 Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Thu Nov 20, 2003 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Real
Smarty n00b


Joined: 20 Nov 2003
Posts: 2

PostPosted: Thu Nov 20, 2003 12:49 pm    Post subject: You are right of course :) Reply with quote

Right. I just grep'ed -r my project dir and noticed the call's to missing function in template_c files Smile In the first attempt I checked only project/site/ and project/cfg subdir's of my project and not project/var/templates_c Smile

I've cleared it and now everything seems working perfect!
Sorry for trouble and thanx for Your help!

Yours,
Piotr
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP