Joomla Мост

ranaza12

Участники
Сообщения
4
Реакции
0
Баллы
3,298
Когда хочу начать переписку, выскакивает вот такая ошибка.
Использовал интеграцию joomla - xenforo с помощью Jfusion

Missing following state for user ID 1 in user 96700

  1. XenForo_Model_User->passesPrivacyCheck() in XenForo/Model/Conversation.php at line 1215
  2. XenForo_Model_Conversation->canStartConversationWithUser() in XenForo/ControllerPublic/Conversation.php at line 500
  3. XenForo_ControllerPublic_Conversation->actionAdd() in XenForo/FrontController.php at line 347
  4. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
  5. XenForo_FrontController->run() in /www/forum.com/index.php at line 13
 
Последнее редактирование:
Функцию подключений?
Там всё нормально. Авторизация и выход работают нормально.
думаю часть кода нужно изменить которая отвечает за импорт пользователей

Где копать уже поняла
Пользователи не импортируются в таблицу xf_user_profile

Может кто то поможет добавить запрос в xf_user_profile
helper.php
после
// Insert user record
//insertid() to get id from last insertion
if (!$this->db->insertObject('xf_user', $user, 'user_id')) {
//return the error
$status['error'][] = JText::_('USER_CREATION_ERROR') . $this->db->stderr();
return;
} else {
//return the good news
$status['debug'][] = JText::_('USER_CREATION');
$userinfo->user_id = $user->user_id;
// TODO $status['userinfo'] = $this->getUser($userinfo);
}

Мои действия:
helper.php после кода
Код:
 // Create authentication record
       
        if (!$this->db->insertObject('xf_user_authenticate', $this->createAuthObject($userinfo))) {
            //return the error
            $status['error'][] = JText::_('USER_CREATION_ERROR') . $this->db->stderr();
            return;
        } else {
            //return the good news
            //$status['debug'][] = JText::_('USER_CREATION');
            // TODO $status['userinfo'] = $this->getUser($userinfo);
        }
Добавила
Код:
    // user profile create
        $profeuser = new stdClass
        $profeuser->dob_day = 0;
        $profeuser->dob_month = 0;
        $profeuser->dob_year = 0;
        $profeuser->status = 0;
        $profeuser->status_date = 0;
        $profeuser->status_profile_post_id = 0;
        $profeuser->signature = '';
        $profeuser->homepage = '';
        $profeuser->location = '';
        $profeuser->occupation = '';
        $profeuser->following = '';
        $profeuser->ignored = '';
        $profeuser->csrf_token = '';
        $profeuser->avatar_crop_x = 0;
        $profeuser->avatar_crop_y = 0;
        $profeuser->about = '';
        $profeuser->custom_fields = '';
        $profeuser->external_auth = '';
        $profeuser->password_date = 1;
       
        if (!$this->db->insertObject('xf_user_profile', $profeuser, 'user_id')) {
            //return the error
            $status['error'][] = JText::_('USER_CREATION_ERROR') . $this->db->stderr();
            return;
        } else {
            //return the good news
            //$status['debug'][] = JText::_('USER_CREATION');
            // TODO $status['userinfo'] = $this->getUser($userinfo);
        }

Но не проходит =( подскажите что делать?

Вот сам код базы
Код:
  `user_id` int(10) unsigned NOT NULL,
  `dob_day` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `dob_month` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `dob_year` smallint(5) unsigned NOT NULL DEFAULT '0',
  `status` text NOT NULL,
  `status_date` int(10) unsigned NOT NULL DEFAULT '0',
  `status_profile_post_id` int(10) unsigned NOT NULL DEFAULT '0',
  `signature` text NOT NULL,
  `homepage` text NOT NULL,
  `location` varchar(50) NOT NULL DEFAULT '',
  `occupation` varchar(50) NOT NULL DEFAULT '',
  `following` text NOT NULL COMMENT 'Comma-separated integers from xf_user_follow',
  `ignored` text NOT NULL COMMENT 'Comma-separated integers from xf_user_ignored',
  `csrf_token` varchar(40) NOT NULL COMMENT 'Anti CSRF data key',
  `avatar_crop_x` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'X-Position from which to start the square crop on the m avatar',
  `avatar_crop_y` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Y-Position from which to start the square crop on the m avatar',
  `about` text NOT NULL,
  `custom_fields` mediumblob NOT NULL,
  `external_auth` mediumblob NOT NULL,
  `password_date` int(10) unsigned NOT NULL DEFAULT '1',
 

Вложения

  • helper.zip
    4.8 KB · Просмотры: 0
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу