Undefined index: schema in /home/inparent/public_html/analytics/core/Db/Schema.php on line 113


#1

Hi, I was trying to upgrade from 2.03 to 2.10 and got fatal error! please help!!!
do i need to do a specific database update or something for this version?

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

Notice: Undefined index: schema in /home/inparent/public_html/analytics/core/Db/Schema.php on line 113

Backtrace -->

#0 Piwik\Error::errorHandler(…) called at [/home/inparent/public_html/analytics/core/Db/Schema.php:113]
#1 Piwik\Db\Schema->loadSchema(…) called at [/home/inparent/public_html/analytics/core/Db/Schema.php:131]
#2 Piwik\Db\Schema->getSchema(…) called at [/home/inparent/public_html/analytics/core/Db/Schema.php:249]
#3 Piwik\Db\Schema->hasTables(…) called at [/home/inparent/public_html/analytics/core/DbHelper.php:72]
#4 Piwik\DbHelper::isInstalled(…) called at [/home/inparent/public_html/analytics/plugins/CoreUpdater/Controller.php:340]
#5 Piwik\Plugins\CoreUpdater\Controller->doWelcomeUpdates(…) called at [/home/inparent/public_html/analytics/plugins/CoreUpdater/Controller.php:300]
#6 Piwik\Plugins\CoreUpdater\Controller->runUpdaterAndExit(…) called at [/home/inparent/public_html/analytics/plugins/CoreUpdater/Controller.php:270]
#7 Piwik\Plugins\CoreUpdater\Controller->index(…) called at [:]
#8 call_user_func_array(…) called at [/home/inparent/public_html/analytics/core/FrontController.php:521]
#9 Piwik\FrontController->doDispatch(…) called at [/home/inparent/public_html/analytics/core/FrontController.php:84]
#10 Piwik\FrontController->dispatch(…) called at [/home/inparent/public_html/analytics/core/dispatch.php:30]
#11 require_once(…) called at [/home/inparent/public_html/analytics/index.php:47]

A fatal error occurred

The following error just broke Piwik (v2.1.0):

Class ‘\Piwik\Db\Schema’ not found

in

/home/inparent/public_html/analytics/core/Db/Schema.php line 120


(Matthieu Aubry) #2

Thanks for the report. Try replace your core/Db/Schema.php file
by this file: https://raw.github.com/piwik/piwik/d040733f50c62726066d40947f9b9f529d8e342a/core/Db/Schema.php

This should fix it. Cheers


#3

Thank matt for the new file,
I can log in now but every page and each widget has a different error message…


(Matthieu Aubry) #4

Make sure you update the file config/global.ini.php from the Piwik 2.1.0


#5

yay! it’s working perfectly now! Thanks so much :slight_smile: