Error - Piwik upgrade to 2.2.1


#1

Here is the error message…please let me know how to fix as this is the first time I have ever had an issue with piwik and i dont know php so well:

There is an error. Please report the message (Piwik 2.2.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined index: enabled_periods_UI in /home/wwwnspir/public_html/piwik/core/Plugin/Controller.php on line 188

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/home/wwwnspir/public_html/piwik/core/Plugin/Controller.php:188]
#1 Piwik\Plugin\Controller::getEnabledPeriodsInUI(…) called at [/home/wwwnspir/public_html/piwik/core/Plugin/Controller.php:731]
#2 Piwik\Plugin\Controller::setPeriodVariablesView(…) called at [/home/wwwnspir/public_html/piwik/core/Plugin/Controller.php:525]
#3 Piwik\Plugin\Controller->setGeneralVariablesView(…) called at [/home/wwwnspir/public_html/piwik/plugins/CoreHome/Controller.php:79]
#4 Piwik\Plugins\CoreHome\Controller->getDefaultIndexView(…) called at [/home/wwwnspir/public_html/piwik/plugins/CoreHome/Controller.php:113]
#5 Piwik\Plugins\CoreHome\Controller->index(…) called at [:]
#6 call_user_func_array(…) called at [/home/wwwnspir/public_html/piwik/core/FrontController.php:500]
#7 Piwik\FrontController->doDispatch(…) called at [/home/wwwnspir/public_html/piwik/core/FrontController.php:85]
#8 Piwik\FrontController->dispatch(…) called at [/home/wwwnspir/public_html/piwik/core/dispatch.php:34]
#9 require_once(…) called at [/home/wwwnspir/public_html/piwik/index.php:47]


#2

Hello,

so ater this message it gives 2 text links, one to click to login…after clicking this login link, the page reloads and i am presented with 2 more different error messages:

There is an error. Please report the message (Piwik 2.2.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined index: datatable_export_range_as_day in /home/wwwnspir/public_html/piwik/core/Config.php on line 220

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/home/wwwnspir/public_html/piwik/core/Config.php:220]
#1 Piwik\Config->getClientSideOptions(…) called at [/home/wwwnspir/public_html/piwik/core/Plugin/Controller.php:599]
#2 Piwik\Plugin\Controller->setBasicVariablesView(…) called at [/home/wwwnspir/public_html/piwik/plugins/Login/Controller.php:110]
#3 Piwik\Plugins\Login\Controller->configureView(…) called at [/home/wwwnspir/public_html/piwik/plugins/Login/Controller.php:97]
#4 Piwik\Plugins\Login\Controller->login(…) called at [/home/wwwnspir/public_html/piwik/plugins/Login/Controller.php:62]
#5 Piwik\Plugins\Login\Controller->index(…) called at [:]
#6 call_user_func_array(…) called at [/home/wwwnspir/public_html/piwik/core/FrontController.php:500]
#7 Piwik\FrontController->doDispatch(…) called at [/home/wwwnspir/public_html/piwik/core/FrontController.php:85]
#8 Piwik\FrontController->dispatch(…) called at [/home/wwwnspir/public_html/piwik/core/dispatch.php:34]
#9 require_once(…) called at [/home/wwwnspir/public_html/piwik/index.php:47]

There is an error. Please report the message (Piwik 2.2.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice: Undefined index: enable_measure_piwik_usage_in_idsite in /home/wwwnspir/public_html/piwik/core/Plugin/Controller.php on line 600

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/home/wwwnspir/public_html/piwik/core/Plugin/Controller.php:600]
#1 Piwik\Plugin\Controller->setBasicVariablesView(…) called at [/home/wwwnspir/public_html/piwik/plugins/Login/Controller.php:110]
#2 Piwik\Plugins\Login\Controller->configureView(…) called at [/home/wwwnspir/public_html/piwik/plugins/Login/Controller.php:97]
#3 Piwik\Plugins\Login\Controller->login(…) called at [/home/wwwnspir/public_html/piwik/plugins/Login/Controller.php:62]
#4 Piwik\Plugins\Login\Controller->index(…) called at [:]
#5 call_user_func_array(…) called at [/home/wwwnspir/public_html/piwik/core/FrontController.php:500]
#6 Piwik\FrontController->doDispatch(…) called at [/home/wwwnspir/public_html/piwik/core/FrontController.php:85]
#7 Piwik\FrontController->dispatch(…) called at [/home/wwwnspir/public_html/piwik/core/dispatch.php:34]
#8 require_once(…) called at [/home/wwwnspir/public_html/piwik/index.php:47]


#3

what are server specs?

php specs?


(Matthieu Aubry) #4

The config setting that we added in 2.2.1 is not found in your piwik. that’s because the file config/global.ini.php was not uploaded correctly, please reupload it


#5

Hello,

Where do i get this "config/global.ini.php’ from?

I didnt upload anything…All i did was click on the ‘update piwik’ button at top right of screen, and let piwik auto update as I always have…therefore, i have no input of how piwiks auto update process works.


(Matthieu Aubry) #6

Oh that’s strange, it should have worked. Then manually overwrite your config/global.ini.php with this one: https://raw.githubusercontent.com/piwik/piwik/master/config/global.ini.php


#7

hello,

should i not update that file with my database name, password etc??


#8

Hello,

I have done as you requested, now when i go to my piwik url i get this error:

Variable “sites” does not exist in “@CoreHome/_siteSelect.twig” at line 24


(Matthieu Aubry) #9

You should have uploaded it over your file config/global.ini.php


#10

as i said above, i followed your instructions (ie: i uploaded it OVER the old file)…if i had not done this, then i would still be receiving the old error messages that i started this thread with.

please advise


(Matthieu Aubry) #11

re-upload all files from 2.2.1