Jeremy_Clarks Posted February 21, 2017 Share Posted February 21, 2017 Текст ошибки: INSERT INTO `core_admin_login_logs` ( `admin_ip_address`, `admin_username`, `admin_time`, `admin_success`, `admin_request` ) VALUES ( '95.26.210.222', 'Nick', 1487717441, 1, '{"adsess":"mpioiofoigd6hmeugrm10fk3d1","app":"core","module":"system","controller":"login","ref":"","login__standard_submitted":"1","csrfKey":"5855c947a7cd09bbf567995e052fd89a","MAX_FILE_SIZE":"103809024","plupload":"f8da3744d5cfad3c112d4a42ba43bff8","auth":"Nick","password":"***s"}' ) IPS\Db\Exception: Duplicate entry '0' for key 'PRIMARY' (1062) #0 /home/admin/web/forum.masype.ru/public_html/system/Db/Db.php(787): IPS\_Db->preparedQuery('INSERT INTO `co...', Array) #1 /home/admin/web/forum.masype.ru/public_html/applications/core/modules/admin/system/login.php(243): IPS\_Db->insert('core_admin_logi...', Array) #2 /home/admin/web/forum.masype.ru/public_html/applications/core/modules/admin/system/login.php(179): IPS\core\modules\admin\system\_login->log('ok') #3 /home/admin/web/forum.masype.ru/public_html/applications/core/modules/admin/system/login.php(58): IPS\core\modules\admin\system\_login->_doLogin(Object(IPS\Member)) #4 /home/admin/web/forum.masype.ru/public_html/system/Dispatcher/Controller.php(96): IPS\core\modules\admin\system\_login->manage() #5 /home/admin/web/forum.masype.ru/public_html/system/Dispatcher/Dispatcher.php(129): IPS\Dispatcher\_Controller->execute() #6 /home/admin/web/forum.masype.ru/public_html/admin/index.php(14): IPS\_Dispatcher->run() #7 {main} Quote Link to comment Share on other sites More sharing options...
Sipsb Posted February 21, 2017 Share Posted February 21, 2017 4-ка или 3-ка? Quote Link to comment Share on other sites More sharing options...
Jeremy_Clarks Posted February 21, 2017 Author Share Posted February 21, 2017 Только что, Sipsb сказал: 4-ка или 3-ка? 4ка Quote Link to comment Share on other sites More sharing options...
Sipsb Posted February 21, 2017 Share Posted February 21, 2017 Опишите подробнее, что делали перед появлением данной ошибки. Quote Link to comment Share on other sites More sharing options...
Jeremy_Clarks Posted February 21, 2017 Author Share Posted February 21, 2017 Перенес форум с одного хостинга на другой, сам форум полностью функционирует, а вот в АЦ зайти не могу Quote Link to comment Share on other sites More sharing options...
Sipsb Posted February 21, 2017 Share Posted February 21, 2017 В ЛС доступ от АС, посмотрю. leon0295 1 Quote Link to comment Share on other sites More sharing options...
Sipsb Posted February 21, 2017 Share Posted February 21, 2017 Jeremy_Clarks, Какя версия php? Quote Link to comment Share on other sites More sharing options...
Jeremy_Clarks Posted February 21, 2017 Author Share Posted February 21, 2017 2 минуты назад, Sipsb сказал: Jeremy_Clarks, Какя версия php? 5.6.30 Quote Link to comment Share on other sites More sharing options...
Sipsb Posted February 21, 2017 Share Posted February 21, 2017 Пробовали менять на 7.0? Quote Link to comment Share on other sites More sharing options...
Jeremy_Clarks Posted February 21, 2017 Author Share Posted February 21, 2017 Только что, Sipsb сказал: Пробовали менять на 7.0? До этого работало, поэтому причина не в php Quote Link to comment Share on other sites More sharing options...
WOLF Posted February 22, 2017 Share Posted February 22, 2017 9 часов назад, Jeremy_Clarks сказал: До этого работало, поэтому причина не в php вас спросили пробывали или нет, а не работало или нет. Что мешает просто поменять и узнать? Megalex 1 Quote Link to comment Share on other sites More sharing options...
Jeremy_Clarks Posted February 22, 2017 Author Share Posted February 22, 2017 Проблема решена, была разность версий в папке datastore и БД Quote Link to comment Share on other sites More sharing options...
Seconds Posted December 3, 2017 Share Posted December 3, 2017 Такая проблема тоже появилась при переносе. Могли бы подробнее описать решение? Quote Link to comment Share on other sites More sharing options...
WOLF Posted December 3, 2017 Share Posted December 3, 2017 1 минуту назад, Seconds сказал: проблема тоже появилась при переносе куда, чего, версии форума/ php спасибо не надо информации мы погадаем Seconds 1 Quote Link to comment Share on other sites More sharing options...
Seconds Posted December 3, 2017 Share Posted December 3, 2017 7 минут назад, WOLF сказал: куда, чего, версии форума/ php спасибо не надо информации мы погадаем Было: php 7.0.22, mysql-5.7.18. Стало: php 7.0.19, mysql-10.1.26 Про версию форума точно не смогу сказать либо 4.1, либо 4.2 Переносил весь форума с хостинга на хостинг Проблема решена, перезалил БД и норм стало Quote Link to comment Share on other sites More sharing options...
Aleksey_antonyuk Posted February 19, 2019 Share Posted February 19, 2019 Всем привет. Такая же проблема, появилась после обновления форума. Ничего не переносил. БД выгружал и перезливал - результата нет. Подскажите где в Базе копать? Quote Link to comment Share on other sites More sharing options...
Aleksey_antonyuk Posted February 19, 2019 Share Posted February 19, 2019 1 час назад, Aleksey_antonyuk сказал: Всем привет. Такая же проблема, появилась после обновления форума. Ничего не переносил. БД выгружал и перезливал - результата нет. Подскажите где в Базе копать? Заменил в файле system\Login\Handler\LDAP\LDAP.PHP В фунции public function authenticateUsernamePassword( \IPS\Login $login, $usernameOrEmail, $password ) INSERT на REPLACE catch ( \IPS\Login\Exception $exception ) { if ( $exception->getCode() === \IPS\Login\Exception::MERGE_SOCIAL_ACCOUNT ) { \IPS\Db::i()->insertreplace( 'core_login_links', array( 'token_login_method' => $this->id, 'token_member' => $exception->member->member_id, 'token_identifier' => $attrs[ $this->settings['uid_field'] ][0], 'token_linked' => 0, ) ); } throw $exception; и все заработало Проблема скорее всего появилась после того как изменился пароль на сервере LDAP. После всего этого в профиле пользователя появилась надпись, reauthorization required. Ну и сама ошибка EX1062 при попытке авторизации. После исправления, которое написано выше, форум запросил опять объединить записи. Теперь необходимо найти где указан срок действия LDAP записи. Через какой период он устанавливает требование на reauthorization required. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.