Trying to upgrade addons

giorgino

Well-known member
Code:
XF\Db\Exception: MySQL query error [1061]: Duplicate key name 'rating_id' in src/XF/Db/AbstractStatement.php at line 183
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 66
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 67
XF\Db\AbstractAdapter->query() in src/XF/Db/Schema/AbstractDdl.php at line 137
XF\Db\Schema\AbstractDdl->apply() in src/XF/Db/SchemaManager.php at line 128
XF\Db\SchemaManager->alterTable() in src/addons/XFMG/Setup.php at line 600
XFMG\Setup->upgrade901011170Step1() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 143
XFMG\Setup->upgradeStepRunner() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 79
XFMG\Setup->upgrade() in src/XF/Admin/Controller/AddOn.php at line 424
XF\Admin\Controller\AddOn->actionUpgrade() in src/XF/Mvc/Dispatcher.php at line 232
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 85
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1771
XF\App->run() in src/XF.php at line 319
XF::runApp() in admin.php at line 13

Trying to upgrade XFMG out this error... 🤔
Any help?
I searched the "uninstall" option for reinstall the addon from scratch but I don't found it...
 
Bash:
# php cmd.php xf:addon-upgrade XFMG
Please confirm that you want to upgrade the following add-on: (XenForo Media Gallery 1.1.9) (y/n)y
Upgrading
                                                            
  [XF\Db\Exception]                                         
  MySQL query error [1061]: Duplicate key name 'rating_id' 
                                                            

xf:addon-upgrade [-f|--force] [--] <id>
 
You do realise that uninstalling it would delete all of the content, right? I'm not sure if that's desirable if this is an existing installation, though maybe you don't have any content in there that you wish to keep.

I'm just looking into the cause now so perhaps a good idea to hold off trying to do anything else until I respond ;)
 
You can't uninstall an upgradeable add-on, hence why I asked you to delete that directory first which will make it no longer upgradeable.
 
Top Bottom