Error when databaseSetup


(gengmao) #1

Trying to get property of non-object
in ‘C:\apache2.2\htdocs\piwik\plugins\Installation\Controller.php’ at the line 228

#0 Piwik_ErrorHandler(8, Trying to get property of non-object, C:\apache2.2\htdocs\piwik\plugins\Installation\Controller.php, 228, Array ([view] => Piwik_Installation_View Object ([] => Installation/templates/structure.tpl,[] => Installation/templates/structure.tpl,[] => Piwik_Smarty Object ([template_dir] => Array ([0] => C:\apache2.2\htdocs\piwik/plugins,[1] => C:\apache2.2\htdocs\piwik/themes/default,[2] => C:\apache2.2\htdocs\piwik/themes),[compile_dir] => C:\apache2.2\htdocs\piwik/tmp/templates_c,[config_dir] => configs,[plugins_dir] => Array ([0] => C:\apache2.2\htdocs\piwik/core/SmartyPlugins,[1] => C:\apache2.2\htdocs\piwik/libs/Smarty/plugins),[debugging] => 1,[error_reporting] => 6143,[debug_tpl] => ,[debugging_ctrl] => NONE,[compile_check] => 1,[force_compile] => ,[caching] => 0,[cache_dir] => C:\apache2.2\htdocs\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.4.1,[piwikUrl] => http://localhost/piwik/[/url],[subTemplateToLoad] => Installation/templates/tablesCreation.tpl,[steps] => Array ([0] => welcome,[1] => systemCheck,[2] => databaseSetup,[3] => tablesCreation,[4] => generalSetup,[5] => firstWebsiteSetup,[6] => displayJavascriptCode,[7] => finished),[currentStepName] => tablesCreation,[showNextStep] => ,[tablesInstalled] => piwik_user, piwik_access, piwik_site, piwik_site_url, piwik_goal, piwik_logger_message, piwik_logger_api_call, piwik_logger_error, piwik_logger_exception, piwik_log_action, piwik_log_visit, piwik_log_conversion, piwik_log_link_visit_action, piwik_log_profiling, piwik_option,[someTablesInstalled] => 1,[showReuseExistingTables] => 1),[_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 (),[_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 ([cachebuster] => Array ([0] => smarty_outputfilter_cachebuster,[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 ([action] => tablesCreation,[module] => Installation),[post] => Array (),[server] => Array ([HTTP_HOST] => localhost,[HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8,[HTTP_ACCEPT_LANGUAGE] => en-us,[HTTP_ACCEPT_ENCODING] => gzip,deflate,[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7,[HTTP_KEEP_ALIVE] => 300,[HTTP_CONNECTION] => keep-alive,[HTTP_REFERER] => [url=http://localhost/piwik/index.php?action=databaseSetup]http://localhost/piwik/index.php?action=databaseSetup,[HTTP_COOKIE] => UAID=yXHDxYQSXxqck4K4Pe3d5wRv99vfuGp; PHPSESSID=2m4240tmqeu5qs4jd2en3dj0o5,[PATH] => C:\php;C:\apache-maven-2.0.9\bin;C:\oracle\product\10.2.0\db_1\bin;C:\Program Files\emacs-22.2\bin;C:\bin;C:\apache-ant-1.6.1\bin;C:\jdk1.5\bin;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\PuTTY;;C:\Program Files\NTP\bin;C:\Program Files\TortoiseSVN\bin,[SystemRoot] => C:\WINDOWS,[COMSPEC] => C:\WINDOWS\system32\cmd.exe,[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH,[WINDIR] => C:\WINDOWS,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache/2.2.11 (Win32) PHP/5.2.10,[SERVER_NAME] => localhost,[SERVER_ADDR] => 127.0.0.1,[SERVER_PORT] => 80,[REMOTE_ADDR] => 127.0.0.1,[DOCUMENT_ROOT] => C:/apache2.2/htdocs,[SERVER_ADMIN] => egeng@successfactors.com,[SCRIPT_FILENAME] => C:/apache2.2/htdocs/piwik/index.php,[REMOTE_PORT] => 2882,[GATEWAY_INTERFACE] => CGI/1.1,[SERVER_PROTOCOL] => HTTP/1.1,[REQUEST_METHOD] => GET,[QUERY_STRING] => action=tablesCreation&module=Installation,[REQUEST_URI] => /piwik/index.php?action=tablesCreation&module=Installation,[SCRIPT_NAME] => /piwik/index.php,[PHP_SELF] => /piwik/index.php,[REQUEST_TIME] => 1246717740),[session] => Array ([Installation] => Array ([currentStepDone] => databaseSetup,[skipThisStep] => Array ([firstWebsiteSetup] => 1,[displayJavascriptCode] => 1),[databaseCreated] => 1,[db_infos] => Array ([host] => localhost,[username] => root,[password] => pwd,[dbname] => piwik,[tables_prefix] => piwik,[adapter] => PDO_MYSQL,[port] => 3306))),[request] => Array ([action] => tablesCreation,[module] => Installation,[UAID] => yXHDxYQSXxqck4K4Pe3d5wRv99vfuGp,[PHPSESSID] => 2m4240tmqeu5qs4jd2en3dj0o5),[cookies] => Array ([UAID] => yXHDxYQSXxqck4K4Pe3d5wRv99vfuGp,[PHPSESSID] => 2m4240tmqeu5qs4jd2en3dj0o5),[env] => Array ())),[] => Array ()),[session] => Zend_Session_Namespace Object ([] => Installation),[tablesInstalled] => Array ([0] => piwik_user,[1] => piwik_access,[2] => piwik_site,[3] => piwik_site_url,[4] => piwik_goal,[5] => piwik_logger_message,[6] => piwik_logger_api_call,[7] => piwik_logger_error,[8] => piwik_logger_exception,[9] => piwik_log_action,[10] => piwik_log_visit,[11] => piwik_log_conversion,[12] => piwik_log_link_visit_action,[13] => piwik_log_profiling,[14] => piwik_option),[tablesToInstall] => Array ([0] => piwik_user,[1] => piwik_access,[2] => piwik_site,[3] => piwik_site_url,[4] => piwik_goal,[5] => piwik_logger_message,[6] => piwik_logger_api_call,[7] => piwik_logger_error,[8] => piwik_logger_exception,[9] => piwik_log_action,[10] => piwik_log_visit,[11] => piwik_log_conversion,[12] => piwik_log_link_visit_action,[13] => piwik_log_profiling,[14] => piwik_option,[15] => piwik_archive_numeric,[16] => piwik_archive_blob),[minimumCountPiwikTables] => 14)) called at [C:\apache2.2\htdocs\piwik\plugins\Installation\Controller.php:228]
#1 Piwik_Installation_Controller->tablesCreation() called at [C:\apache2.2\htdocs\piwik\plugins\Installation\Installation.php:61]
#2 Piwik_Installation->startInstallation(Piwik_Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file C:\apache2.2\htdocs\piwik/config/config.ini.php has not been found.,[] => ,[] => 0,[] => C:\apache2.2\htdocs\piwik\core\Config.php,[] => 109,[] => Array ([0] => Array ([file] => C:\apache2.2\htdocs\piwik\core\Piwik.php,[line] => 1289,[function] => init,[class] => Piwik_Config,[type] => ->,[args] => Array ()),[1] => Array ([file] => C:\apache2.2\htdocs\piwik\core\FrontController.php,[line] => 192,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => C:\apache2.2\htdocs\piwik\index.php,[line] => 54,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))
#3 call_user_func_array(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => startInstallation), Array ([0] => Piwik_Event_Notification Object ([_notificationName] => FrontController.NoConfigurationFile,[_notificationObject] => Exception Object ([] => The configuration file C:\apache2.2\htdocs\piwik/config/config.ini.php has not been found.,[] => ,[] => 0,[] => C:\apache2.2\htdocs\piwik\core\Config.php,[] => 109,[] => Array ([0] => Array ([file] => C:\apache2.2\htdocs\piwik\core\Piwik.php,[line] => 1289,[function] => init,[class] => Piwik_Config,[type] => ->,[args] => Array ()),[1] => Array ([file] => C:\apache2.2\htdocs\piwik\core\FrontController.php,[line] => 192,[function] => createConfigObject,[class] => Piwik,[type] => ::,[args] => Array ()),[2] => Array ([file] => C:\apache2.2\htdocs\piwik\index.php,[line] => 54,[function] => init,[class] => Piwik_FrontController,[type] => ->,[args] => Array ()))),[_notificationInfo] => Array (),[_notificationState] => 0,[_notificationCount] => 0))) called at [C:\apache2.2\htdocs\piwik\libs\Event\Dispatcher.php:214]
#4 Event_Dispatcher->addObserver(Array ([0] => Piwik_Installation Object ([] => Piwik_Installation_Controller),[1] => startInstallation), FrontController.NoConfigurationFile) called at [C:\apache2.2\htdocs\piwik\core\PluginsManager.php:363]
#5 Piwik_PluginsManager->addPluginObservers(Piwik_Installation Object ([] => Piwik_Installation_Controller)) called at [C:\apache2.2\htdocs\piwik\core\PluginsManager.php:246]
#6 Piwik_PluginsManager->loadPlugins() called at [C:\apache2.2\htdocs\piwik\core\PluginsManager.php:161]
#7 Piwik_PluginsManager->setPluginsToLoad(Array ([0] => CorePluginsAdmin,[1] => CoreAdminHome,[2] => CoreHome,[3] => API,[4] => Widgetize,[5] => LanguagesManager,[6] => Actions,[7] => Dashboard,[8] => Referers,[9] => UserSettings,[10] => UserCountry,[11] => VisitsSummary,[12] => VisitFrequency,[13] => VisitTime,[14] => VisitorInterest,[15] => ExampleAPI,[16] => ExamplePlugin,[17] => ExampleRssWidget,[18] => ExampleFeedburner,[19] => ExampleRssWidget,[20] => Provider,[21] => Feedback,[22] => Login,[23] => UsersManager,[24] => SitesManager,[25] => Installation)) called at [C:\apache2.2\htdocs\piwik\core\FrontController.php:200]
#8 Piwik_FrontController->init() called at [C:\apache2.2\htdocs\piwik\index.php:54]


(vipsoft) #2

I don’t recommend installing from svn unless you’re prepared to deal with code in flux.

If you’re on php 5.2.10, please use Piwik 0.4.1.


(gengmao) #3

thank you.
setuped piwik 0.4.1 with php5.2.10, it’s quite smooth!