ErrorException: [E_WARNING] Trying to access array offset on null src/XF/ConnectedAccount/ProviderData/XenForoProviderData.php:22

GameNet

Active member
Affected version
2.3.0
Hi

I am receiving errors in my adminCP

Error code:
Code:
ErrorException: [E_WARNING] Trying to access array offset on null src/XF/ConnectedAccount/ProviderData/XenForoProviderData.php:22
Generated by: NICK97 Jul 5, 2024 at 5:46 PM
Stack trace
#0 src/XF/ConnectedAccount/ProviderData/XenForoProviderData.php(22): XF::handlePhpError(2, '[E_WARNING] Try...', '/home/citiesmod...', 22)
#1 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(175): XF\ConnectedAccount\ProviderData\XenForoProviderData->getProviderKey()
#2 src/XF/ConnectedAccount/ProviderData/AbstractProviderData.php(196): XF\ConnectedAccount\ProviderData\AbstractProviderData->offsetGet('provider_key')
#3 src/XF/Repository/ConnectedAccountRepository.php(91): XF\ConnectedAccount\ProviderData\AbstractProviderData->__get('provider_key')
#4 src/XF/Pub/Controller/RegisterController.php(137): XF\Repository\ConnectedAccountRepository->getUserConnectedAccountFromProviderData(Object(XF\ConnectedAccount\ProviderData\XenForoProviderData))
#5 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\RegisterController->actionConnectedAccount(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'ConnectedAccoun...', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\RegisterController), NULL)
#7 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\RegisterController), NULL)
#8 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2777): XF\Mvc\Dispatcher->run()
#10 src/XF.php(798): XF\App->run()
#11 index.php(23): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
  ["url"] => string(37) "/register/connected-accounts/xenforo/"
  ["referrer"] => string(24) "https://cities-mods.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Safari Screenshot 2024-07-05 17.50.04.webp
 
This seems to imply that the connected account provider is not returning a valid response from the API endpoint. It's worth ensuring the board URL, client ID, and secret, are all set properly.
 
Back
Top Bottom