Tickets Fixed Undefined index: callback

• ErrorException: Batch install error: [E_NOTICE] Undefined index: callback
• src/XF/Repository/AbstractField.php:125
• Generated by: Alfa
• Sep 8, 2019 at 5:23 PM
Stack trace
#0 src/XF/Repository/AbstractField.php(125): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nginx/dom...', 125, Array)
#1 src/XF/Repository/AbstractField.php(142): XF\Repository\AbstractField->getFieldCacheData()
#2 src/addons/NF/Tickets/Setup.php(779): XF\Repository\AbstractField->rebuildFieldCache()
#3 src/XF/AddOn/AddOn.php(574): NF\Tickets\Setup->postUpgrade(2000041, Array)
#4 src/XF/Job/AddOnInstallBatch.php(378): XF\AddOn\AddOn->postUpgrade(Array)
#5 src/XF/Job/AddOnInstallBatch.php(98): XF\Job\AddOnInstallBatch->stepFinalize(Object(XF\Timer))
#6 src/XF/Job/Manager.php(253): XF\Job\AddOnInstallBatch->run(G)
#7 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#8 src/XF/Job/Manager.php(111): XF\Job\Manager->runJobEntry(Array, G)
#9 src/XF/Admin/Controller/Tools.php(120): XF\Job\Manager->runByIds(Array, 8)
#10 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\Tools), NULL)
#12 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Admin\Controller\Tools), NULL)
#13 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#14 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#15 src/XF.php(390): XF\App->run()
#16 admin.php(13): XF::runApp('XF\\Admin\\App')
#17 {main}

array(4) {
["url"] => string(34) "/admin.php?tools/run-job"
["referrer"] => string(62) " /admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(98) "/admin.php?add-ons/install-from-archive-complete&batch_id=16"
["_xfToken"] => string(8) "********"
["only_ids"] => string(3) "581"
}
}
 
Ah, good catch. Looks like a weird edge case where if you had PHP callback fields beforehand, the default XF2 cache rebuilder for custom fields doesn't play nice. Let me put a workaround for it.
 
Back
Top