XF 2.2 XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '3' for key 'PRIMARY' in src\XF\Db\AbstractStatement.php

Версия XenForo
2

butik

Проверенные
Сообщения
98
Реакции
36
Баллы
5,515
Подскажите пожалуйста решение.
Конвертирую ipb 4.1.10 в чистый xenforo 2.2.2
Если отметить пункт Retain content IDs, тогда на этапе начала конвертирования, появляется ошибка

Код:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '3' for key 'PRIMARY' in src\XF\Db\AbstractStatement.php at line 228
XF\Db\AbstractStatement->getException() in src\XF\Db\Mysqli\Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src\XF\Db\Mysqli\Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src\XF\Db\AbstractAdapter.php at line 94
XF\Db\AbstractAdapter->query() in src\XF\Db\AbstractAdapter.php at line 221
XF\Db\AbstractAdapter->insert() in src\XF\Import\Data\EntityEmulator.php at line 327
XF\Import\Data\EntityEmulator->insert() in src\XF\Import\Data\AbstractEmulatedData.php at line 71
XF\Import\Data\AbstractEmulatedData->write() in src\XF\Import\Data\AbstractData.php at line 127
XF\Import\Data\AbstractData->save() in src\addons\XFI\Import\Importer\IpsForums.php at line 406
XFI\Import\Importer\IpsForums->stepUserGroups() in src\XF\Import\Runner.php at line 242
XF\Import\Runner->runStep() in src\XF\Import\Runner.php at line 59
XF\Import\Runner->run() in src\XF\Admin\Controller\Import.php at line 234
XF\Admin\Controller\Import->actionRun() in src\XF\Mvc\Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 261
XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2300
XF\App->run() in src\XF.php at line 488
XF::runApp() in admin.php at line 13
 
Последнее редактирование:
Такая же ошибка если конвертировать ipb 3.4.6 в xenforo 1.4.7

Код:
Server Error
Mysqli statement execute error : Duplicate entry '3' for key 'PRIMARY'

Zend_Db_Statement_Mysqli->_execute() in D:\_openserver537\OpenServer\domains\xen1.loc\library\Zend\Db\Statement.php at line 297
Zend_Db_Statement->execute() in D:\_openserver537\OpenServer\domains\xen1.loc\library\Zend\Db\Adapter\Abstract.php at line 479
Zend_Db_Adapter_Abstract->query() in D:\_openserver537\OpenServer\domains\xen1.loc\library\Zend\Db\Adapter\Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\DataWriter.php at line 1624
XenForo_DataWriter->_insert() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\DataWriter.php at line 1613
XenForo_DataWriter->_save() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\DataWriter.php at line 1405
XenForo_DataWriter->save() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\Model\Import.php at line 599
XenForo_Model_Import->_importData() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\Model\Import.php at line 637
XenForo_Model_Import->importUserGroup() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\Importer\IPBoard.php at line 352
XenForo_Importer_IPBoard->stepUserGroups() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\Importer\Abstract.php at line 97
XenForo_Importer_Abstract->runStep() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\ControllerAdmin\Import.php at line 187
XenForo_ControllerAdmin_Import->_runStep() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\ControllerAdmin\Import.php at line 239
XenForo_ControllerAdmin_Import->_startStep() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\ControllerAdmin\Import.php at line 182
XenForo_ControllerAdmin_Import->actionStartStep() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\FrontController.php at line 347
XenForo_FrontController->dispatch() in D:\_openserver537\OpenServer\domains\xen1.loc\library\XenForo\FrontController.php at line 134
XenForo_FrontController->run() in D:\_openserver537\OpenServer\domains\xen1.loc\admin.php at line 13
 
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу