XF 2.0 Recieving error on chrome (not incognito or other browsers.)

AsyJax

New member
Some of my users have been encountering errors when trying to access the site, I have virtually no experience with anything but the English language so i'm a little concerned. Incognito seems to work when the error shows in the general chrome browser and it isn't everyone who gets it I don't think (unless that's to do with their cache?

Any help would be greatly appreciated.

thanks.

https://www.secretsrp.com

An exception occurred: [ErrorException] [E_WARNING] Invalid argument supplied for foreach() in src\XF\Criteria\User.php on line 231
  1. XF::handlePhpError() in src/XF/Criteria/User.php at line 231
  2. XF\Criteria\User->_matchConnectedAccounts() in src/XF/Criteria/AbstractCriteria.php at line 53
  3. XF\Criteria\AbstractCriteria->isMatched() in src/XF/Repository/Trophy.php at line 68
  4. XF\Repository\Trophy->updateTrophiesForUser() in src/XF/Pub/App.php at line 182
  5. XF\Pub\App->updateUserCaches() in src/XF/Pub/App.php at line 122
  6. XF\Pub\App->start() in src/XF/App.php at line 1927
  7. XF\App->run() in src/XF.php at line 328
  8. XF::runApp() in index.php at line 13
Code:
protected function _matchConnectedAccounts(array $data, \XF\Entity\User $user)
    {
        foreach ($data['provider_Ids'] AS $providerId)
        {
            if (isset($user->Profile->connected_accounts[$providerId]))
            {
                return true;
 
Top Bottom