|
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 |
Tin@Tin Smarty n00b
Joined: 04 Mar 2005 Posts: 3 Location: Portugal
|
Posted: Fri Mar 04, 2005 3:03 pm Post subject: Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error «« |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Mar 04, 2005 4:01 pm Post subject: |
|
|
for starters, did you remove all cache/compile files? |
|
Back to top |
|
Tin@Tin Smarty n00b
Joined: 04 Mar 2005 Posts: 3 Location: Portugal
|
Posted: Fri Mar 04, 2005 4:56 pm Post subject: Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error «« |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Fri Mar 04, 2005 5:25 pm Post subject: |
|
|
/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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Mar 04, 2005 5:29 pm Post subject: |
|
|
@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 |
|
Tin@Tin Smarty n00b
Joined: 04 Mar 2005 Posts: 3 Location: Portugal
|
Posted: Fri Mar 04, 2005 6:33 pm Post subject: Upgrade 2.6.0 to 2.6.7 «« Warning: Smarty error «« |
|
|
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 |
|
|
|
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
|