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

canīt get smarty working

 
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
Rev
Smarty Rookie


Joined: 19 Jun 2003
Posts: 6

PostPosted: Thu Jun 19, 2003 10:44 am    Post subject: canīt get smarty working Reply with quote

i reinstalled everything, now it works..

Last edited by Rev on Sun Jul 27, 2003 3:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Thu Jun 19, 2003 1:34 pm    Post subject: Reply with quote

the sticky topics at the top of this forum (Installation and Setup) may be useful to you.

Good luck!
Back to top
View user's profile Send private message
Rev
Smarty Rookie


Joined: 19 Jun 2003
Posts: 6

PostPosted: Thu Jun 19, 2003 3:50 pm    Post subject: Reply with quote

subdirs are switched off....
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Thu Jun 19, 2003 4:59 pm    Post subject: Reply with quote

the filename in your error is an evidence that sub_dirs are *on*. first of all turn caching off, before further debugging, maye the error-message is printed literally in a cached template and not an error occuring at the moment you test.

HTH
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rev
Smarty Rookie


Joined: 19 Jun 2003
Posts: 6

PostPosted: Fri Jun 20, 2003 3:34 pm    Post subject: Reply with quote

reinstalled

Last edited by Rev on Sun Jul 27, 2003 3:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Fri Jun 20, 2003 5:31 pm    Post subject: Reply with quote

- ensure '/httpd/revproductions.de/data/firma/ari/templates_c' is existent and writable by the webserver (maybe write a little php-script for that).
- ensure smarty is configured properly (maybe print_r($smarty)) and look.

i hope you instanciated $smarty with "new set_templates" and not with "new Smarty"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
boots
Administrator


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

PostPosted: Fri Jun 20, 2003 6:41 pm    Post subject: Reply with quote

Also make sure to clear you PHP cache, if you have one.
Back to top
View user's profile Send private message
Rev
Smarty Rookie


Joined: 19 Jun 2003
Posts: 6

PostPosted: Sat Jun 21, 2003 1:41 pm    Post subject: Reply with quote

no php cache..

print_r($smarty):

Quote:
set_templates Object ( [template_dir] => /httpd/revproductions.de/data/firma/ari/templates/ [compile_dir] => /httpd/revproductions.de/data/firma/ari/templates_c [config_dir] => /httpd/revproductions.de/data/firma/ari/configs/ [plugins_dir] => Array ( [0] => plugins ) [debugging] => 1 [debug_tpl] => [debugging_ctrl] => NONE [compile_check] => 1 [force_compile] => [caching] => [cache_dir] => /httpd/revproductions.de/data/firma/ari/cache [cache_lifetime] => 3600 [cache_modified_check] => [php_handling] => 0 [security] => [secure_dir] => Array ( ) [security_settings] => Array ( [PHP_HANDLING] => [IF_FUNCS] => Array ( [0] => array [1] => list [2] => isset [3] => empty [4] => count [5] => sizeof [6] => in_array [7] => is_array [8] => true [9] => false ) [INCLUDE_ANY] => [PHP_TAGS] => [MODIFIER_FUNCS] => Array ( [0] => count ) [ALLOW_CONSTANTS] => ) [trusted_dir] => Array ( ) [left_delimiter] => { [right_delimiter] => } [request_vars_order] => EGPCS [compile_id] => [use_sub_dirs] => [default_modifiers] => Array ( ) [cache_handler_func] => [global_assign] => Array ( [HTTP_SERVER_VARS] => Array ( [0] => SCRIPT_NAME ) ) [undefined] => [autoload_filters] => Array ( ) [config_overwrite] => 1 [config_booleanize] => 1 [config_read_hidden] => [config_fix_newlines] => 1 [default_template_handler_func] => [compiler_file] => Smarty_Compiler.class.php [compiler_class] => Smarty_Compiler [config_class] => Config_File [_error_msg] => [_tpl_vars] => Array ( [SCRIPT_NAME] => /firma/ari/admin/test.php ) [_smarty_vars] => [_sections] => Array ( ) [_foreach] => Array ( ) [_tag_stack] => Array ( ) [_conf_obj] => [_config] => Array ( [0] => Array ( [vars] => Array ( ) [files] => Array ( ) ) ) [_smarty_md5] => f8d698aea36fcbead2b9d5359ffca76f [_version] => 2.5.0 [_inclusion_depth] => 0 [_compile_id] => [_smarty_debug_id] => SMARTY_DEBUG [_smarty_debug_info] => Array ( ) [_cache_info] => Array ( ) [_file_perms] => 420 [_dir_perms] => 505 [_reg_objects] => Array ( ) [_plugins] => Array ( [modifier] => Array ( ) [function] => Array ( ) [block] => Array ( ) [compiler] => Array ( ) [prefilter] => Array ( ) [postfilter] => Array ( ) [outputfilter] => Array ( ) [resource] => Array ( ) [insert] => Array ( ) ) )


test.php:

[php:1:260e9596b5]
<?php

require ("../libs/setup.php");
$smarty = new set_templates;


$smarty->compile_check = true;
$smarty->debugging = true;
print_r($smarty);




?>[/php:1:260e9596b5]
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Sat Jun 21, 2003 11:34 pm    Post subject: Reply with quote

I suggest

$smarty->use_sub_dirs = false;

Also, does your wrapper change file_perms and dir_perms? In your print_r, they don't look like the defaults to me.
Back to top
View user's profile Send private message
Rev
Smarty Rookie


Joined: 19 Jun 2003
Posts: 6

PostPosted: Thu Jun 26, 2003 6:43 pm    Post subject: Reply with quote

i reinstalled everything, now it works..

Last edited by Rev on Sun Jul 27, 2003 3:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Wed Jul 02, 2003 4:37 pm    Post subject: Reply with quote

I've seen Smarty putting files in the root in only two related instances: the path to the compiled/cache dirs is incorrect and/or absolute paths are not being used on a windows platform. You might also try calling the Smarty contructor after you setup your dirs, etc (ie. at the end of your custom wrapper's contstructor).
Back to top
View user's profile Send private message
Rev
Smarty Rookie


Joined: 19 Jun 2003
Posts: 6

PostPosted: Sat Jul 26, 2003 7:45 pm    Post subject: Reply with quote

the path is right but it is a linux machine.. what is wrong?


-> You might also try calling the Smarty contructor after you setup your dirs, etc (ie. at the end of your custom wrapper's contstructor

can you explain it?
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 -> 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