Fixed Undefined index: xfmgMaxTitleLength when upgrading XFMG 2.0.5 to XFMG 2.1.0 Beta 1

Bob

Well-known member
Affected version
XFMG 2.1.0 Beta 1
As per title, hitting an error while attempting up upgrade XFMG 2.0.5 to XFMG 2.1.0 Beta 1

Code:
ErrorException: [E_NOTICE] Undefined index: xfmgMaxTitleLength in src/addons/XFMG/Entity/Album.php at line 1189

    XF::handlePhpError() in src/addons/XFMG/Entity/Album.php at line 1189
    XFMG\Entity\Album::getStructure() in src/XF/Install/InstallHelperTrait.php at line 38
    XF\AddOn\AbstractSetup->entityColumnsToJson() in src/addons/XFMG/Setup.php at line 2402
    XFMG\Setup->upgrade902010010Step1() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 122
    XFMG\Setup->upgradeStepRunner() in src/XF/AddOn/StepRunnerUpgradeTrait.php at line 71
    XFMG\Setup->upgrade() in src/XF/Admin/Controller/AddOn.php at line 575
    XF\Admin\Controller\AddOn->actionUpgrade() in src/XF/Mvc/Dispatcher.php at line 321
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 248
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
    XF\App->run() in src/XF.php at line 392
    XF::runApp() in admin.php at line 13
 
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XFMG release (2.1.0 B2/RC1).

Change log:
Avoid an undefined index error when accessing the new max title/description length options in XFMG.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom