XF 2.2 Unknown column 'definition_class'

Dkf

Active member
Hello,
Please help me!

I paid for the license renewal. I started the update from 2.2.13 to 2.2.17 and got an error.

The forum is down.
/install/index.php?upgrade/run-job shows an error.

Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'definition_class' in 'field list' in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 40
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 219
XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1526
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1258
XF\Mvc\Entity\Entity->save() in src/XF/AddOn/DataType/ActivitySummaryDefinition.php at line 74
XF\AddOn\DataType\ActivitySummaryDefinition->importAddOnData() in src/XF/Job/AddOnData.php at line 110
XF\Job\AddOnData->run() in src/XF/Job/Atomic.php at line 40
XF\Job\Atomic->run() in src/XF/Job/Manager.php at line 260
XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 202
XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 153
XF\Job\Manager->runUnique() in src/XF/Install/Controller/AbstractController.php at line 23
XF\Install\Controller\AbstractController->manualJobRunner() in src/XF/Install/Controller/Upgrade.php at line 266
XF\Install\Controller\Upgrade->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2513
XF\App->run() in src/XF.php at line 524
XF::runApp() in install/index.php at line 14

I cannot access the admin panel.
Error:
The site is currently being upgraded. Please check back later.

Please help me
 
Last edited:
Solution
Code:
# php /home/site/www/cmd.php xf:upgrade
Current version: 2021770
Upgrade target: 2021770 (2.2.17)
You are already running the latest version. Rebuild the master data? [y/n] y

In AbstractStatement.php line 230:

  MySQL statement prepare error [1054]: Unknown column 'definition_class' in 'field list'

xf:upgrade [--skip-statistics]

Exception query:

  INSERT  INTO `xf_activity_summary_definition` (`addon_id`, `definition_id`, `definition_class`) VALUES (?, ?, ?)
Code:
# php /home/site/www/cmd.php xf:upgrade
Current version: 2021770
Upgrade target: 2021770 (2.2.17)
You are already running the latest version. Rebuild the master data? [y/n] y

In AbstractStatement.php line 230:

  MySQL statement prepare error [1054]: Unknown column 'definition_class' in 'field list'

xf:upgrade [--skip-statistics]

Exception query:

  INSERT  INTO `xf_activity_summary_definition` (`addon_id`, `definition_id`, `definition_class`) VALUES (?, ?, ?)
 
Solution
Back
Top Bottom