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

Error while trying to upgrade from 2.3.0 to 2.4.2/2.5

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
pierre
Smarty n00b


Joined: 05 May 2003
Posts: 3

PostPosted: Mon May 05, 2003 7:47 am    Post subject: Error while trying to upgrade from 2.3.0 to 2.4.2/2.5 Reply with quote

It sais _config_load not found (or somethin' like that --- can't see it right now).

I just copied the three php and one tpl file to the old location.

With the old version it still works ... didn't change anything to my extended class also!

Please help. Idea
_________________
I love scripting.
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Mon May 05, 2003 7:55 am    Post subject: Reply with quote

if you upgrade, you have to upgrade the plugins-directory also. in this case config_load was taken out of the smarty-core to be a stand-alone plugin.

there may have been other changes in the mean-time that may affect your application. have a look into the file NEWS of your smarty-distribution. it contains a list of changes for each version. read over it and reflect if any of these changes may affect you.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pierre
Smarty n00b


Joined: 05 May 2003
Posts: 3

PostPosted: Mon May 05, 2003 8:23 am    Post subject: I don't want to have all the plugins installed which one has Reply with quote

I have text searched all plugins files for config_load(no case ses) and didn't find it.

I can't test it right now.

Which one has the functionality (i searched v2.4.2 for it).

thx in advance
_________________
I love scripting.
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Mon May 05, 2003 8:42 am    Post subject: Reply with quote

ah, config_load was taken out of the after *after* 2.5.0. my fault, sorry.

did you cleanup the templates_c- and maybe the cache-directory after upgrading? it is likely that your old compiled templates don't work with the new version.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pierre
Smarty n00b


Joined: 05 May 2003
Posts: 3

PostPosted: Tue May 06, 2003 6:11 am    Post subject: RE: 2.3.x upgrade to >=2.4.x Reply with quote

thx for the info ... after i emptied the templates_c folder it worked ...
well at least it didn't show me any error ... but ...

i load my config files in the following manner:
{config_load file="$script_name.conf" section="$script_name"}

now that worked on 2.3 but it sure doesn't on higher version?

especcially the file parameter. I know that the problem is the dot!

I don't want to change all my template files.

The $script_name is an assigned parameter which holds just hte name of the file (without php).

thx in advance

PS. Sorry for my english, i'm from Slovenia. Cool
_________________
I love scripting.
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Tue May 06, 2003 7:27 am    Post subject: Reply with quote

this should work with 2.5.0. the dot is only a problem if you want it to be a an array-index-delimiter.

{config_load file="$script_name.conf"} works as you want.

if $script_name was an array and conf was a key you would have to write {config_load file="`$config_load.conf`"} in 2.5.0 .

it doesn't work as you want in 2.4.2, though. there you would have to change your templates and use the cat-modifier or sth. like that.

HTH
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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 -> Installation and Setup 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