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

Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error ««

 
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
Tin@Tin
Smarty n00b


Joined: 04 Mar 2005
Posts: 3
Location: Portugal

PostPosted: Fri Mar 04, 2005 3:03 pm    Post subject: Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error «« Reply with quote

In upgrade the smarty version 2.6.0 for 2.6.7 the template page don't work.
Error is: unable to read resource /././...Smarty.class.php on line 1088
One
Exite one difference of version 2.6.0 for 2.6.7 in the directório /libs the version 2.6.0 have libs/core and version 2.6.7 /libs/internals

Some one have same problem.
Help Me
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Mar 04, 2005 4:01 pm    Post subject: Reply with quote

for starters, did you remove all cache/compile files?
Back to top
View user's profile Send private message Visit poster's website
Tin@Tin
Smarty n00b


Joined: 04 Mar 2005
Posts: 3
Location: Portugal

PostPosted: Fri Mar 04, 2005 4:56 pm    Post subject: Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error «« Reply with quote

Yes remove all smarty/cache and /smarty/template_c and sma error.

Warning: Smarty error: unable to read resource: "tmpl_xxxx" in /var/www/xxxxxxxx/includes/smarty/libs/Smarty.class.php on line 1088
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Mar 04, 2005 5:25 pm    Post subject: Reply with quote

/libs/internals replaced /libs/core

I can't recall exactly, but I believe there was a change in the way relative paths were found/searched. You may have to be more specific regarding your setup.
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Fri Mar 04, 2005 5:29 pm    Post subject: Reply with quote

@Tin@Tin configure $smarty->template_dir to an absolute path. then you are on the safe side and get best performance.

Smarty-2.6.0 searched php's include_path for template-files. Smarty-2.6.7 doesn't do that - it just searches the include_path for $smarty->template_dir (if template_dir is a relative path).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tin@Tin
Smarty n00b


Joined: 04 Mar 2005
Posts: 3
Location: Portugal

PostPosted: Fri Mar 04, 2005 6:33 pm    Post subject: Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error «« Reply with quote

I have the absolute path.

Configuration of the directory parameters for the smart they are:

$this->config['smarty']['smarty_dirs']['template_dir'] = RAIZ_DO_SITE.'/_admin/modulos/galeria/templates';
$this->config['smarty']['smarty_dirs']['compile_dir'] = RAIZ_DO_SITE.'/smarty/templates_c';
$this->config['smarty']['smarty_dirs']['cache_dir'] = RAIZ_DO_SITE.'/smarty/cache';

'RAIZ_DO_SITE' equal 'DOCUMENT_ROOT'

but don't work
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