Installation of 0.5.2 fails


(Pat.rick) #1

So I dumped my old install (piwik directory, and database), and tried installing 0.5.2, and this is what I get:

include(/home/public/piwik/tmp/templates_c/%%DF^DF8^DF8D327D%%structure.tpl.php) [function.include]: failed to open stream: Not a directory
in ‘/home/public/piwik/libs/Smarty/Smarty.class.php’ at the line 1283

#0 Piwik_ErrorHandler(2, include(/home/public/piwik/tmp/templates_c/%%DF^DF8^DF8D327D%%structure.tpl.php) [function.include]: failed to open stream: Not a directory, /home/public/piwik/libs/Smarty/Smarty.class.php, 1283, Array ([this] => Piwik_Smarty Object ([template_dir] => Array ([0] => /home/public/piwik/plugins,[1] => /home/public/piwik/themes/default,[2] => /home/public/piwik/themes),[compile_dir] => /home/public/piwik/tmp/templates_c,[config_dir] => configs,[plugins_dir] => Array ([0] => /home/public/piwik/core/SmartyPlugins,[1] => /home/public/piwik/libs/Smarty/plugins),[debugging] => 1,[error_reporting] => 6143,[debug_tpl] => ,[debugging_ctrl] => NONE,[compile_check] => 1,[force_compile] => ,[caching] => 0,[cache_dir] => /home/public/piwik/tmp/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,[10] => null),[INCLUDE_ANY] => ,[PHP_TAGS] => ,[MODIFIER_FUNCS] => Array ([0] => count),[ALLOW_CONSTANTS] => ,[ALLOW_SUPER_GLOBALS] => 1),[trusted_dir] => Array (),[left_delimiter] => {,[right_delimiter] => },[request_vars_order] => EGPCS,[request_use_auto_globals] => 1,[compile_id] => ,[use_sub_dirs] => ,[default_modifiers] => Array (),[default_resource_type] => file,[cache_handler_func] => ,[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,[_tpl_vars] => Array ([SCRIPT_NAME] => /piwik/index.php,[tag] => piwik=0.5.2,[piwikUrl] => MYWEBSITE/piwik/,[subTemplateToLoad] => Installation/templates/welcome.tpl,[steps] => Array ([0] => welcome,[1] => systemCheck,[2] => databaseSetup,[3] => databaseCheck,[4] => tablesCreation,[5] => generalSetup,[6] => firstWebsiteSetup,[7] => displayJavascriptCode,[8] => finished),[allStepsTitle] => Array ([0] => Installation_Welcome,[1] => Installation_SystemCheck,[2] => Installation_DatabaseSetup,[3] => Installation_DatabaseCheck,[4] => Installation_Tables,[5] => Installation_GeneralSetup,[6] => Installation_SetupWebsite,[7] => Installation_JsTag,[8] => Installation_Congratulations),[currentStepName] => welcome,[showNextStep] => 1,[currentStepId] => 0,[totalNumberOfSteps] => 9,[percentDone] => 0,[percentToDo] => 100,[nextModuleName] => systemCheck,[previousModuleName] => ,[currentModule] => ,[totalTimeGeneration] => 0.091,[totalNumberOfQueries] => 0),[_smarty_vars] => ,[_sections] => Array (),[_foreach] => Array (),[_tag_stack] => Array (),[_conf_obj] => ,[_config] => Array ([0] => Array ([vars] => Array (),[files] => Array ())),[_smarty_md5] => f8d698aea36fcbead2b9d5359ffca76f,[_version] => 2.6.25,[_inclusion_depth] => 0,[_compile_id] => ,[_smarty_debug_id] => SMARTY_DEBUG,[_smarty_debug_info] => Array ([0] => Array ([type] => template,[filename] => Installation/templates/structure.tpl,[depth] => 0)),[_cache_info] => Array (),[_file_perms] => 420,[_dir_perms] => 505,[_reg_objects] => Array (),[_plugins] => Array ([modifier] => Array (),[function] => Array ([postEvent] => Array ([0] => smarty_function_postEvent,[1] => ,[2] => ,[3] => ,[4] => 1),[url] => Array ([0] => smarty_function_url,[1] => ,[2] => ,[3] => ,[4] => 1)),[block] => Array (),[compiler] => Array (),[prefilter] => Array (),[postfilter] => Array (),[outputfilter] => Array ([cachebuster] => Array ([0] => smarty_outputfilter_cachebuster,[1] => ,[2] => ,[3] => 1,[4] => 1),[ajaxcdn] => Array ([0] => smarty_outputfilter_ajaxcdn,[1] => ,[2] => ,[3] => 1,[4] => 1),[trimwhitespace] => Array ([0] => smarty_outputfilter_trimwhitespace,[1] => ,[2] => ,[3] => 1,[4] => 1)),[resource] => Array (),[insert] => Array ()),[_cache_serials] => Array (),[_cache_include] => ,[_cache_including] => ,[_supers] => Array ([get] => Array (),[post] => Array (),[server] => Array ([SERVER_SOFTWARE] => Apache/x.x,[SERVER_SIGNATURE] =>
Apache/x.x Server at www.MYWEBSITE.com

,[SERVER_PORT] => 80,[SCRIPT_FILENAME] => /home/public/piwik/index.php,[REMOTE_PORT] => 0,[NFSN_SITE_ROOT] => /home,[DOCUMENT_ROOT] => /home/public,[TMPDIR] => /tmp,[USER] => me,[SHELL] => /bin/sh,[LOGNAME] => me,[HOME] => /home/private,[PWD] => /home/public,[PS1] => [\h \w]$ ,[PATH] => /usr/local/php5/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin,[HTTP_ACCEPT] => text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1,[HTTP_ACCEPT_CHARSET] => iso-8859-1, utf-8, utf-16, *;q=0.1,[HTTP_ACCEPT_ENCODING] => deflate, gzip, x-gzip, identity, *;q=0,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9,[HTTP_CACHE_CONTROL] => max-age=60,[HTTP_CONNECTION] => keep-alive,[HTTP_HOST] => www.MYWEBSITE.com,[HTTP_USER_AGENT] => Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10,[HTTP_VIA] => 1.1 vhost.phx2.nearlyfreespeech.net:3128 (squid/2.7.STABLE7),[HTTP_X_FORWARDED_FOR] => 208.101.147.52,[NFSN_POP_ADDR] => 172.17.0.132,[REMOTE_ADDR] => 208.101.147.52,[SERVER_ADDR] => 172.17.1.211,[SERVER_ADMIN] => support@NearlyFreeSpeech.NET,[SERVER_NAME] => www.MYWEBSITE.com,[UNIQUE_ID] => SycXGtBedeYAAWgYggQ,[GATEWAY_INTERFACE] => CGI/1.1,[SERVER_PROTOCOL] => HTTP/1.0,[REQUEST_METHOD] => GET,[QUERY_STRING] => ,[REQUEST_URI] => /piwik/index.php,[SCRIPT_NAME] => /piwik/index.php,[PHP_SELF] => /piwik/index.php,[REQUEST_TIME] => 1260853018,[argv] => Array (),[argc] => 0),[session] => Array ([Piwik_Installation] => Array ([currentStepDone] => )),[request] => Array (),[cookies] => Array (),[env] => Array ([SERVER_SOFTWARE] => Apache/x.x,[SERVER_SIGNATURE] =>
Apache/x.x Server at www.MYWEBSITE.com

,[SERVER_PORT] => 80,[SCRIPT_FILENAME] => /home/public/piwik/index.php,[REMOTE_PORT] => 0,[NFSN_SITE_ROOT] => /home,[DOCUMENT_ROOT] => /home/public,[TMPDIR] => /tmp,[USER] => me,[SHELL] => /bin/sh,[LOGNAME] => me,[HOME] => /home/private,[PWD] => /home/public,[PS1] => [\h \w]$ ,[PATH] => /usr/local/php5/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin,[HTTP_ACCEPT] => text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, /;q=0.1,[HTTP_ACCEPT_CHARSET] => iso-8859-1, utf-8, utf-16, *;q=0.1,[HTTP_ACCEPT_ENCODING] => deflate, gzip, x-gzip, identity, *;q=0,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9,[HTTP_CACHE_CONTROL] => max-age=60,[HTTP_CONNECTION] => keep-alive,[HTTP_HOST] => www.MYWEBSITE.com,[HTTP_USER_AGENT] => Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10,[HTTP_VIA] => 1.1 vhost.phx2.nearlyfreespeech.net:3128 (squid/2.7.STABLE7),[HTTP_X_FORWARDED_FOR] => 208.101.147.52,[NFSN_POP_ADDR] => 172.17.0.132,[REMOTE_ADDR] => 208.101.147.52,[SERVER_ADDR] => 172.17.1.211,[SERVER_ADMIN] => support@NearlyFreeSpeech.NET,[SERVER_NAME] => www.MYWEBSITE.com,[UNIQUE_ID] => SycXGtBedeYAAWgYggQ,[GATEWAY_INTERFACE] => CGI/1.1,[SERVER_PROTOCOL] => HTTP/1.0,[REQUEST_METHOD] => GET,[QUERY_STRING] => ,[REQUEST_URI] => /piwik/index.php,[SCRIPT_NAME] => /piwik/index.php)),[_cache_include_info] => ),[resource_name] => Installation/templates/structure.tpl,[cache_id] => ,[compile_id] => ,[display] => ,[_cache_info] => Array (),[_smarty_old_error_level] => 6143,[_params] => Array (),[_debug_start_time] => 1260853019.0657,[_included_tpls_idx] => 0,[_smarty_compile_path] => /home/public/piwik/tmp/templates_c/%%DF^DF8^DF8D327D%%structure.tpl.php,[_cache_including] => )) called at [/home/public/piwik/libs/Smarty/Smarty.class.php:1283]
#1 Smarty::fetch() called at [/home/public/piwik/libs/Smarty/Smarty.class.php:1283]
#2 Smarty->fetch(Installation/templates/structure.tpl) called at [/home/public/piwik/core/View.php:142]
#3 Piwik_View->render() called at [/home/public/piwik/plugins/Installation/View.php:52]
#4 Piwik_Installation_View->render() called at [/home/public/piwik/plugins/Installation/Controller.php:68]
#5 Piwik_Installation_Controller->welcome() called at [/home/public/piwik/plugins/Installation/Installation.php:62]
#6 Piwik_Installation->dispatch(Piwik_Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file /home/public/piwik/config/config.ini.php has not been found.,[] => ,[] => 0,[] => /home/public/piwik/core/Config.php,[] => 110,[] => Array ([0] => Array ([file] => /home/public/piwik/core/Piwik.php,[line] => 1580,[function] => init,[class] => Piwik_Config,[type] => ->,[args] => Array ()),[1] => Array ([file] => /home/public/piwik/core/FrontController.php,[line] => 202,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => /home/public/piwik/index.php,[line] => 103,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))
#7 call_user_func_array(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => dispatch), Array ([0] => Piwik_Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file /home/public/piwik/config/config.ini.php has not been found.,[] => ,[] => 0,[] => /home/public/piwik/core/Config.php,[] => 110,[] => Array ([0] => Array ([file] => /home/public/piwik/core/Piwik.php,[line] => 1580,[function] => init,[class] => Piwik_Config,[type] => ->,[args] => Array ()),[1] => Array ([file] => /home/public/piwik/core/FrontController.php,[line] => 202,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => /home/public/piwik/index.php,[line] => 103,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))) called at [/home/public/piwik/libs/Event/Dispatcher.php:213]
#8 Event_Dispatcher->addObserver(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => dispatch), FrontController.NoConfigurationFile) called at [/home/public/piwik/core/PluginsManager.php:362]
#9 Piwik_PluginsManager->addPluginObservers(Piwik_Installation Object ([] => Piwik_Installation_Controller)) called at [/home/public/piwik/core/PluginsManager.php:248]
#10 Piwik_PluginsManager->loadPlugins() called at [/home/public/piwik/core/PluginsManager.php:165]
#11 Piwik_PluginsManager->setPluginsToLoad(Array ([0] => CorePluginsAdmin,[1] => CoreAdminHome,[2] => CoreHome,[3] => API,[4] => Widgetize,[5] => LanguagesManager,[6] => Actions,[7] => Dashboard,[8] => MultiSites,[9] => Referers,[10] => UserSettings,[11] => UserCountry,[12] => VisitsSummary,[13] => VisitFrequency,[14] => VisitTime,[15] => VisitorInterest,[16] => ExampleAPI,[17] => ExamplePlugin,[18] => ExampleRssWidget,[19] => ExampleFeedburner,[20] => ExampleRssWidget,[21] => Provider,[22] => Feedback,[23] => Login,[24] => UsersManager,[25] => SitesManager,[26] => Installation)) called at [/home/public/piwik/core/FrontController.php:209]
#12 Piwik_FrontController->init() called at [/home/public/piwik/index.php:103]

0.5.1 installation went flawlessly. Not sure if the problem is on my end or…


(vipsoft) #2

Did you create tmp/templates_c manually? Can you check that it’s a directory and is writable by the web server user?


(Pat.rick) #3

Aha, I did a ‘touch’ on tmp/templates_c, instead of a ‘mkdir’. Now it is working.

Thank you. style_emoticons/<#EMO_DIR#>/smile.gif