Error After Upgrade PIWIK to 2.0.3 from 2.0.2


#1

Dear Support,

We have a error after upgrade piwik to 2.0.3, can someone help?

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

Notice: Undefined index: visit_total_events in /website/piwik/plugins/Live/Visitor.php on line 208

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/website/piwik/plugins/Live/Visitor.php:208]
#1 Piwik\Plugins\Live\Visitor->getNumberOfEvents(…) called at [/website/piwik/plugins/Live/Visitor.php:68]
#2 Piwik\Plugins\Live\Visitor->getAllVisitorDetails(…) called at [/website/piwik/plugins/Live/API.php:555]
#3 Piwik\Plugins\Live{closure}(…) called at [:]
#4 call_user_func_array(…) called at [/website/piwik/core/DataTable.php:411]
#5 Piwik\DataTable->filter(…) called at [/website/piwik/core/DataTable.php:456]
#6 Piwik\DataTable->applyQueuedFilters(…) called at [/website/piwik/core/API/ResponseBuilder.php:319]
#7 Piwik\API\ResponseBuilder->handleDataTable(…) called at [/website/piwik/core/API/ResponseBuilder.php:90]
#8 Piwik\API\ResponseBuilder->getResponse(…) called at [/website/piwik/core/API/Request.php:222]
#9 Piwik\API\Request->process(…) called at [/website/piwik/plugins/Live/Controller.php:115]
#10 Piwik\Plugins\Live\Controller->getLastVisitsStart(…) called at [/website/piwik/plugins/Live/Controller.php:41]
#11 Piwik\Plugins\Live\Controller->widget(…) called at [:]
#12 call_user_func_array(…) called at [/website/piwik/core/FrontController.php:117]
#13 Piwik\FrontController->dispatch(…) called at [/website/piwik/index.php:62]

Best Regards,
Andy


#2

what php version are you running? pyhton version?


#3

Here is the version:

php -v
PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
Copyright © 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.14, Copyright © 2002-2011, by ionCube Ltd.

python
Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)


(Matthieu Aubry) #4

does your table piwik_log_visit have a field called “visit_total_events” ?
if not then there was a problem with your update. Your database may not be up to date. this was added in matomo/2.0-b3.php at master · matomo-org/matomo · GitHub

See also this faq: After the update, I get sql errors, I would like to try the update again. How do I force Piwik to re-upgrade the database from a past version? - Analytics Platform - Matomo