MG 2.0 Media gallery upgrade issues

Kirux

Member
Have a bunch of issues:
When I run the file health check, I get this: "src/addons/XFMG/Setup.php Unexpected contents "
When I proceed to upgrade, I get a bunch of error adding index(es) error, too many to list all of them. This is one example.server error 2.webpPage count.webpserver error.webp
Code:
XF\Db\InvalidQueryException: XFMG: Error adding index(es) (xengallery_user_tag): MySQL query error [1061]: Duplicate key name 'media_id' src/XF/Db/AbstractStatement.php:212

ALTER TABLE xengallery_user_tag ADD INDEX media_id (media_id)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1061, '42000')
#1 src/XF/Db/Mysqli/Statement.php(78): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1061, '42000')
#2 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#3 src/addons/XFMG/Setup.php(368): XF\Db\AbstractAdapter->query('ALTER TABLE xen...')
#4 src/XF/AddOn/StepRunnerUpgradeTrait.php(122): XFMG\Setup->upgrade901000470Step1(Array)
#5 src/XF/AddOn/StepRunnerUpgradeTrait.php(71): XFMG\Setup->upgradeStepRunner(901000470, 1, Array, 901000570)
#6 src/XF/Admin/Controller/AddOn.php(449): XFMG\Setup->upgrade(Array)
#7 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\AddOn->actionUpgrade(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'upgrade', 'html', Object(XF\Mvc\ParameterBag), 'listAddOns', Object(XF\Admin\Controller\AddOn), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
 
I had also some issues with upgrading XMFG. What I did is first update to latest 1.x release, and then upgraded tot latest XFMG and then the upgrade to XMG.
 
Back
Top Bottom