Not a bug InvalidArgumentException: Batch install error: Table 'xf_mrs_reputation' does not exist so cannot be altered


New member
Jun 22, 2021
Reaction score
This error appear upon installation of the software. My Advanced Reputation System for XF1 was installed previously.
  • InvalidArgumentException: Batch install error: Table 'xf_mrs_reputation' does not exist so cannot be altered
  • src/XF/Db/Schema/Alter.php:38
  • Generated by: Alpha1
  • Jul 15, 2021 at 12:30 PM

Stack trace​

#0 src/XF/Db/SchemaManager.php(223): XF\Db\Schema\Alter->__construct(Object(XF\Db\Mysqli\Adapter), Object(XF\Db\SchemaManager), 'xf_mrs_reputati...')
#1 src/XF/Db/SchemaManager.php(144): XF\Db\SchemaManager->newAlter('xf_mrs_reputati...')
#2 src/addons/MMO/ReputationSystem/Setup.php(75): XF\Db\SchemaManager->alterTable('xf_mrs_reputati...', Object(Closure))
#3 src/XF/AddOn/StepRunnerUpgradeTrait.php(122): MMO\ReputationSystem\Setup->upgrade2001070Step1(Array)
#4 src/XF/AddOn/StepRunnerUpgradeTrait.php(71): MMO\ReputationSystem\Setup->upgradeStepRunner(2001070, 1, Array, 2001670)
#5 src/XF/Job/AddOnInstallBatch.php(297): MMO\ReputationSystem\Setup->upgrade(Array)
#6 src/XF/Job/AddOnInstallBatch.php(89): XF\Job\AddOnInstallBatch->stepAction(Object(XF\Timer))
#7 src/XF/Job/Manager.php(258): XF\Job\AddOnInstallBatch->run(8)
#8 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 8)
#9 src/XF/Job/Manager.php(116): XF\Job\Manager->runJobEntry(Array, 8)
#10 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#11 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\Tools), NULL)
#13 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\Tools), NULL)
#14 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#16 src/XF.php(512): XF\App->run()
#17 admin.php(13): XF::runApp('XF\\Admin\\App')
#18 {main}

Request state​

array(4) {
["url"] => string(33) "/admin.php?tools/run-job"
["referrer"] => string(61) "/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
["_POST"] => array(3) {
["_xfRedirect"] => string(97) "/admin.php?add-ons/install-from-archive-complete&batch_id=23"
["_xfToken"] => string(8) "********"
["only_ids"] => string(3) "493"

And how did you do it. Have you decided to just update your old plugin? Can you find out what kind of add-on? Because I see the update steps, but these update steps were made for my add-on back on version 1.x, which was not on sale or public. As I understand it, you were asked to update the add-on?
It was a new install of your addon. Not an update.
The Advanced Reputation System addon that I used for XF1 is my own. But I did not get any prompt to update it.
I was a little surprised to see this error, as its logical that the table doesn't exists on a new install.
Last edited:
But this is not an installation, but an update. Was it installed and was in an outdated add-on?
Bring this in mind in the addition.json file.
"legacy_addon_id": "ReputationSystem",
Replace with "legacy_addon_id": "",
Thanks for fixing this for me though private support.