MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT rev_id FROM `mwi_revision` WHERE rev_page = '1' AND (rev_id < 3167) ORDER BY rev_id DESC LIMIT 1
Function: Title::getPreviousRevisionID
Error: 1226 User 'fonlineamod4' has exceeded the 'max_questions' resource (current value: 40000) (fonlineamod4.mysql.db)
' in /home/fonlinea/www/wiki/includes/db/Database.php:918
Stack trace:
#0 /home/fonlinea/www/wiki/includes/db/Database.php(885): DatabaseBase->reportQueryError('User 'fonlineam...', 1226, 'SELECT rev_id ...', 'Title::getPrevi...', false)
#1 /home/fonlinea/www/wiki/includes/db/Database.php(1358): DatabaseBase->query('SELECT rev_id ...', 'Title::getPrevi...')
#2 /home/fonlinea/www/wiki/includes/db/Database.php(1105): DatabaseBase->select('revision', 'rev_id', Array, 'Title::getPrevi...', Array)
#3 /home/fonlinea/www/wiki/includes/Title.php(3925): DatabaseBase->selectField('revision', 'rev_id', Array, 'Title::getPrevi...', Array)
#4 /home/fonlinea/www/wiki/includes/Article.php(1132): Title->getPreviousRevisionID('3167')
#5 /home/fonlinea/www/wiki/includes/Article.php(543): Article->setOldSubtitle('3167')
#6 /home/fonlinea/www/wiki/includes/actions/ViewAction.php(40): Article->view()
#7 /home/fonlinea/www/wiki/includes/Wiki.php(484): ViewAction->show()
#8 /home/fonlinea/www/wiki/includes/Wiki.php(278): MediaWiki->performAction(Object(Article))
#9 /home/fonlinea/www/wiki/includes/Wiki.php(593): MediaWiki->performRequest()
#10 /home/fonlinea/www/wiki/includes/Wiki.php(503): MediaWiki->main()
#11 /home/fonlinea/www/wiki/index.php(61): MediaWiki->run()
#12 {main}

Exception caught inside exception handler: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT value,exptime FROM `mwi_objectcache` WHERE keyname = 'fonlineamod4-mwi_:resourceloader:filter:minify-css:7:c88e2bcd56513749bec09a7e29cb3ffa' LIMIT 1
Function: SqlBagOStuff::get
Error: 1226 User 'fonlineamod4' has exceeded the 'max_questions' resource (current value: 40000) (fonlineamod4.mysql.db)
' in /home/fonlinea/www/wiki/includes/db/Database.php:918
Stack trace:
#0 /home/fonlinea/www/wiki/includes/db/Database.php(885): DatabaseBase->reportQueryError('User 'fonlineam...', 1226, 'SELECT value,e...', 'SqlBagOStuff::g...', false)
#1 /home/fonlinea/www/wiki/includes/db/Database.php(1358): DatabaseBase->query('SELECT value,e...', 'SqlBagOStuff::g...')
#2 /home/fonlinea/www/wiki/includes/db/Database.php(1444): DatabaseBase->select('objectcache', Array, Array, 'SqlBagOStuff::g...', Array, Array)
#3 /home/fonlinea/www/wiki/includes/objectcache/SqlBagOStuff.php(124): DatabaseBase->selectRow('objectcache', Array, Array, 'SqlBagOStuff::g...')
#4 /home/fonlinea/www/wiki/includes/resourceloader/ResourceLoader.php(149): SqlBagOStuff->get('fonlineamod4-mw...')
#5 /home/fonlinea/www/wiki/includes/resourceloader/ResourceLoader.php(783): ResourceLoader->filter('minify-css', 'a:lang(ar), a:l...')
#6 /home/fonlinea/www/wiki/includes/OutputPage.php(2594): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array)
#7 /home/fonlinea/www/wiki/includes/OutputPage.php(3310): OutputPage->makeResourceLoaderLink(Array, 'styles')
#8 /home/fonlinea/www/wiki/includes/OutputPage.php(2407): OutputPage->buildCssLinks()
#9 /home/fonlinea/www/wiki/includes/SkinTemplate.php(461): OutputPage->headElement(Object(SkinAopSkin))
#10 /home/fonlinea/www/wiki/includes/OutputPage.php(1982): SkinTemplate->outputPage()
#11 /home/fonlinea/www/wiki/includes/Exception.php(182): OutputPage->output()
#12 /home/fonlinea/www/wiki/includes/Exception.php(209): MWException->reportHTML()
#13 /home/fonlinea/www/wiki/includes/Exception.php(490): MWException->report()
#14 /home/fonlinea/www/wiki/includes/Exception.php(569): MWExceptionHandler::report(Object(DBQueryError))
#15 /home/fonlinea/www/wiki/includes/Wiki.php(506): MWExceptionHandler::handle(Object(DBQueryError))
#16 /home/fonlinea/www/wiki/index.php(61): MediaWiki->run()
#17 {main}