|
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 |
Matteo182 Smarty n00b
Joined: 08 Jun 2018 Posts: 3
|
Posted: Fri Jun 08, 2018 10:01 am Post subject: Fatal error: Class 'Smarty_Template_Compiled' not found |
|
|
hello I have a problem that I can't solve, I'm running the application on wamp64 php5.6 and the latest version of smarty. but I'm returning this error:
Fatal error: Class 'Smarty_Template_Compiled' not found in C:\wamp64\www\libraries\smarty\libs\sysplugins\smarty_internal_template.php on line 581
the file contains the class 'Smarty_Template_Compiled', but for some reason it does not find the class
can you help me ? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Jun 08, 2018 6:28 pm Post subject: |
|
|
Your Smarty setup is incomplete or you are not initializing it correctly.
How did you install it and how do you initialize it? |
|
Back to top |
|
Matteo182 Smarty n00b
Joined: 08 Jun 2018 Posts: 3
|
Posted: Mon Jun 11, 2018 7:54 am Post subject: initialization and configuration |
|
|
I have inserted these instructions to initialize it, in my main index file
require(SMARTY_DIR . 'SmartyBC.class.php');
$smarty = new SmartyBC;
$smarty->compile_dir = SMARTYCOMPILER_DIR;
I copied the folders in this structure:
root
- template
-template_c
-libreries
.smarty
- libssysplugins
- libs
.internals
.plugins
.plugins_new
.sysplugins
.Autoloader.php
.debug.tpl
.Smarty.class.php
.SmartyBC.class.php
I distinguished the folders and subfolders with - e. I hope you understand
[/list][/list] |
|
Back to top |
|
Matteo182 Smarty n00b
Joined: 08 Jun 2018 Posts: 3
|
Posted: Mon Jun 11, 2018 8:32 am Post subject: smarty instance |
|
|
this is my smarty instance created
C:\wamp64\www\fascicolofinanziario.php:20:
object(SmartyBC)[1]
public '_version' => string '3.1.32' (length=6)
public 'trusted_dir' =>
array (size=0)
empty
public 'auto_literal' => boolean true
public 'error_unassigned' => boolean false
public 'use_include_path' => boolean false
public '_templateDirNormalized' => boolean false
public '_joined_template_dir' => null
public '_configDirNormalized' => boolean false
public '_joined_config_dir' => null
public 'default_template_handler_func' => null
public 'default_config_handler_func' => null
public 'default_plugin_handler_func' => null
public '_compileDirNormalized' => boolean true
public '_pluginsDirNormalized' => boolean false
public '_cacheDirNormalized' => boolean false
public 'force_compile' => boolean false
public 'use_sub_dirs' => boolean false
public 'allow_ambiguous_resources' => boolean false
public 'merge_compiled_includes' => boolean false
public 'extends_recursion' => boolean true
public 'force_cache' => boolean false
public 'left_delimiter' => string '{' (length=1)
public 'right_delimiter' => string '}' (length=1)
public 'literals' =>
array (size=0)
empty
public 'security_class' => string 'Smarty_Security' (length=15)
public 'security_policy' => null
public 'php_handling' => int 0
public 'allow_php_templates' => boolean false
public 'debugging' => boolean false
public 'debugging_ctrl' => string 'NONE' (length=4)
public 'smarty_debug_id' => string 'SMARTY_DEBUG' (length=12)
public 'debug_tpl' => null
public 'error_reporting' => null
public 'config_overwrite' => boolean true
public 'config_booleanize' => boolean true
public 'config_read_hidden' => boolean false
public 'compile_locking' => boolean true
public 'cache_locking' => boolean false
public 'locking_timeout' => int 10
public 'default_resource_type' => string 'file' (length=4)
public 'caching_type' => string 'file' (length=4)
public 'default_config_type' => string 'file' (length=4)
public 'cache_modified_check' => boolean false
public 'registered_plugins' =>
array (size=0)
empty
public 'registered_objects' =>
array (size=0)
empty
public 'registered_classes' =>
array (size=0)
empty
public 'registered_filters' =>
array (size=0)
empty
public 'registered_resources' =>
array (size=0)
empty
public 'registered_cache_resources' =>
array (size=0)
empty
public 'autoload_filters' =>
array (size=0)
empty
public 'default_modifiers' =>
array (size=0)
empty
public 'escape_html' => boolean false
public 'start_time' => float 1528705844.9994
public '_current_file' => null
public '_parserdebug' => boolean false
public '_objType' => int 1
public '_debug' => null
protected 'template_dir' =>
array (size=1)
0 => string './templates/' (length=12)
protected '_processedTemplateDir' =>
array (size=0)
empty
protected 'config_dir' =>
array (size=1)
0 => string './configs/' (length=10)
protected '_processedConfigDir' =>
array (size=0)
empty
protected 'compile_dir' => string 'C:\templates_c\' (length=15)
protected 'plugins_dir' =>
array (size=0)
empty
protected 'cache_dir' => string './cache/' (length=
protected 'obsoleteProperties' =>
array (size=
0 => string 'resource_caching' (length=16)
1 => string 'template_resource_caching' (length=25)
2 => string 'direct_access_security' (length=22)
3 => string '_dir_perms' (length=10)
4 => string '_file_perms' (length=11)
5 => string 'plugin_search_order' (length=19)
6 => string 'inheritance_merge_compiled_includes' (length=35)
7 => string 'resource_cache_mode' (length=19)
protected 'accessMap' =>
array (size=5)
'template_dir' => string 'TemplateDir' (length=11)
'config_dir' => string 'ConfigDir' (length=9)
'plugins_dir' => string 'PluginsDir' (length=10)
'compile_dir' => string 'CompileDir' (length=10)
'cache_dir' => string 'CacheDir' (length=
public 'cache_id' => null
public 'compile_id' => null
public 'caching' => int 0
public 'compile_check' => int 1
public 'cache_lifetime' => int 3600
public 'tplFunctions' =>
array (size=0)
empty
public '_cache' =>
array (size=0)
empty
public 'template_class' => string 'Smarty_Internal_Template' (length=24)
public 'tpl_vars' =>
array (size=0)
empty
public 'parent' => null
public 'config_vars' =>
array (size=0)
empty
public 'ext' =>
object(Smarty_Internal_Extension_Handler)[2]
public 'objType' => int 1
private '_property_info' =>
array (size=
'AutoloadFilters' => int 0
'DefaultModifiers' => int 0
'ConfigVars' => int 0
'DebugTemplate' => int 0
'RegisteredObject' => int 0
'StreamVariable' => int 0
'TemplateVars' => int 0
'Literals' => string 'Literals' (length=
private 'resolvedProperties' =>
array (size=0)
empty |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jun 12, 2018 10:37 pm Post subject: |
|
|
Include libs/bootstrap.php instead. |
|
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
|