XF 2.2 Ошибка форума

Версия XenForo
2.2.8 patch 1

fletcher

Участники
Сообщения
44
Решения
1
Реакции
1
Баллы
10
При создании темы вылазит ошибка, вот как она выглядит в журнале ошибок
  • XF\Db\Exception: MySQL query error [1364]: Field 'md_thread_password' doesn't have a default value
  • src/XF/Db/AbstractStatement.php:230

Трассировка стека​

INSERT INTO `xf_thread` (`node_id`, `user_id`, `username`, `discussion_state`, `type_data`, `discussion_type`, `title`, `prefix_id`, `discussion_open`, `sticky`, `is_sticky_first_post`, `post_date`, `last_post_date`, `last_post_user_id`, `last_post_username`, `thread_id`, `reply_count`, `view_count`, `first_post_id`, `last_post_id`, `first_post_reaction_score`, `first_post_reactions`, `custom_fields`, `tags`, `vote_score`, `vote_count`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(220): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1514): XF\Db\AbstractAdapter->insert('xf_thread', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1246): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Service/Thread/Creator.php(496): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\Creator->_save()
#8 src/XF/Pub/Controller/Forum.php(919): XF\Service\Thread\Creator->save()
#9 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\ModeratorEssentials\XF\Pub\Controller\Forum), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ModeratorEssentials\XF\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#14 src/XF.php(517): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Содержимое запроса​

array(4) {
["url"] => string(111) "/index.php?forums/%D0%9D%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8-%D1%84%D0%BE%D1%80%D1%83%D0%BC%D0%B0.8/post-thread"
["referrer"] => string(130) " "
["_GET"] => array(1) {
["forums/Новости-форума_8/post-thread"] => string(0) ""
}
["_POST"] => array(15) {
["_xfToken"] => string(8) "********"
["prefix_id"] => string(1) "1"
["title"] => string(30) "Открывать форум?"
["discussion_type"] => string(4) "poll"
["message_html"] => string(1100) "<p style="text-align: center;"><strong><span style="font-size: 18px;">Открывать форум?</span></strong></p><p style="text-align: center;"><br></p><p style="text-align: center;"><strong><span style="font-size: 18px;">На форуме будут темы, связанные с RP и сампом. Много всего планируем. Конечно, если будет активность.</span></strong></p><p style="text-align: center;"><br></p><p style="text-align: center;"><strong><span style="font-size: 18px;">Самый главный вопрос, интересно вам это? Тыкните на быстрый ответ сверху или напишите ваш ответ.4</span></strong></p><p style="text-align: center;"><br></p><p style="text-align: center;"><strong><span style="font-size: 18px;">Мы будем ждать! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1 fr-fic fr-dii" alt=":)" title="Smile&nbsp; &nbsp; :)" data-shortname=":)"></span></strong></p>"
["attachment_hash"] => string(32) "809d03f92bdafe678bbb01fc62a7f272"
["attachment_hash_combined"] => string(81) "{"type":"post","context":{"node_id":8},"hash":"809d03f92bdafe678bbb01fc62a7f272"}"
["poll"] => array(5) {
["question"] => string(25) "Быстрый ответ"
["new_responses"] => array(3) {
[0] => string(4) "Да"
[1] => string(6) "Нет"
[2] => string(0) ""
}
["max_votes_type"] => string(6) "single"
["change_vote"] => string(1) "1"
["view_results_unvoted"] => string(1) "1"
}
["watch_thread"] => string(1) "1"
["watch_thread_email"] => string(1) "1"
["_xfSet"] => array(3) {
["watch_thread"] => string(1) "1"
["discussion_open"] => string(1) "1"
["sticky"] => string(1) "1"
}
["discussion_open"] => string(1) "1"
["_xfRequestUri"] => string(111) "/index.php?forums/%D0%9D%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8-%D1%84%D0%BE%D1%80%D1%83%D0%BC%D0%B0.8/post-thread"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Как убрать?
 
Если был плагин [MD] Thread Password и вы его удаляли, то удалите и остальное за ним:
Запросом в БД
SQL:
ALTER TABLE `xf_thread` DROP `md_thread_password`;

Upd: в принципе здесь это уже было, https://xenforo.info/search/593708/?q=md_thread_password&o=relevance
 
Последнее редактирование:
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу