View previous topic :: View next topic |
Author |
Message |
Rev Smarty Rookie
Joined: 19 Jun 2003 Posts: 6
|
Posted: Thu Jun 19, 2003 10:44 am Post subject: canīt get smarty working |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Jun 19, 2003 1:34 pm Post subject: |
|
|
the sticky topics at the top of this forum (Installation and Setup) may be useful to you.
Good luck! |
|
Back to top |
|
Rev Smarty Rookie
Joined: 19 Jun 2003 Posts: 6
|
Posted: Thu Jun 19, 2003 3:50 pm Post subject: |
|
|
subdirs are switched off.... |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Jun 19, 2003 4:59 pm Post subject: |
|
|
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 |
|
Rev Smarty Rookie
Joined: 19 Jun 2003 Posts: 6
|
Posted: Fri Jun 20, 2003 3:34 pm Post subject: |
|
|
reinstalled
Last edited by Rev on Sun Jul 27, 2003 3:37 pm; edited 1 time in total |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jun 20, 2003 5:31 pm Post subject: |
|
|
- 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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Fri Jun 20, 2003 6:41 pm Post subject: |
|
|
Also make sure to clear you PHP cache, if you have one. |
|
Back to top |
|
Rev Smarty Rookie
Joined: 19 Jun 2003 Posts: 6
|
Posted: Sat Jun 21, 2003 1:41 pm Post subject: |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sat Jun 21, 2003 11:34 pm Post subject: |
|
|
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 |
|
Rev Smarty Rookie
Joined: 19 Jun 2003 Posts: 6
|
Posted: Thu Jun 26, 2003 6:43 pm Post subject: |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Jul 02, 2003 4:37 pm Post subject: |
|
|
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 |
|
Rev Smarty Rookie
Joined: 19 Jun 2003 Posts: 6
|
Posted: Sat Jul 26, 2003 7:45 pm Post subject: |
|
|
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 |
|
|