XF 2.2 Error on upgrade 2.2.12 Undefined array key "cookieConsent"

Mr Lucky

Well-known member
I got this error

ErrorException: [E_WARNING] Undefined array key "cookieConsent" src/XF/Pub/App.php:675
Generated by: Unknown account Dec 9, 2022 at 3:33 PM
Stack trace
#0 src/XF/Pub/App.php(675): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/caf/publi...', 675)
#1 src/XF/Pub/App.php(606): XF\Pub\App->addDefaultNotices(Object(XF\NoticeList), Array)
#2 src/XF/Pub/App.php(547): XF\Pub\App->getNoticeList(Array)
#3 src/XF/App.php(2151): XF\Pub\App->renderPageHtml('<div class="blo...', Array, Object(XF\Mvc\Reply\Message), Object(XF\Mvc\Renderer\Html))
#4 src/XF/Mvc/Dispatcher.php(404): XF\App->renderPage('<div class="blo...', Object(XF\Mvc\Reply\Message), Object(XF\Mvc\Renderer\Html))
#5 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Message), 'html')
#6 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
  ["url"] => string(29) "/threads/amprobot.30447?amp=1"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["amp"] => string(1) "1"
  ["_POST"] => array(0) {

Jeremy P

XenForo developer
Staff member
This should just be a transient error that may occur before the upgrade has been fully completed, but I've made some changes to handle this better going forward.