my45ru
Проверенные
- Сообщения
- 190
- Решения
- 1
- Реакции
- 28
- Баллы
- 170
При создании темы выдает ошибку
плагины отключил все ничего не изменилось
Код:
Журнал ошибки сервера
XF\Db\Exception: MySQL query error [1364]: Field 'md_thread_password' doesn't have a default value src/XF/Db/AbstractStatement.php:217
Код:
INSERT INTO `xf_thread` (`node_id`, `user_id`, `username`, `discussion_state`, `title`, `discussion_open`, `sticky`, `post_date`, `last_post_date`, `last_post_user_id`, `last_post_username`, `thread_id`, `reply_count`, `view_count`, `discussion_type`, `first_post_id`, `last_post_id`, `first_post_reaction_score`, `first_post_reactions`, `prefix_id`, `custom_fields`, `tags`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(89): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(169): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1446): XF\Db\AbstractAdapter->insert('xf_thread', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1178): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Service/Thread/Creator.php(285): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\Thread\Creator->_save()
#8 src/XF/Pub/Controller/Forum.php(750): XF\Service\Thread\Creator->save()
#9 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Forum), NULL)
#11 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Forum), NULL)
#12 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#14 src/XF.php(392): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
Код:
Содержимое запроса
array(4) {
["url"] => string(24) "/forums/my45/post-thread"
["referrer"] => string(39) "https://my45.ru/forums/my45/post-thread"
["_GET"] => array(0) {
}
["_POST"] => array(11) {
["title"] => string(10) "Welcome to"
["message_html"] => string(11) "<p>test</p>"
["attachment_hash"] => string(32) "c464206142f6226b9ee8037720339097"
["attachment_hash_combined"] => string(81) "{"type":"post","context":{"node_id":2},"hash":"c464206142f6226b9ee8037720339097"}"
["_xfSet"] => array(3) {
["watch_thread"] => string(1) "1"
["discussion_open"] => string(1) "1"
["sticky"] => string(1) "1"
}
["discussion_open"] => string(1) "1"
["poll"] => array(5) {
["question"] => string(0) ""
["new_responses"] => array(1) {
[0] => string(0) ""
}
["max_votes_type"] => string(6) "single"
["change_vote"] => string(1) "1"
["view_results_unvoted"] => string(1) "1"
}
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(24) "/forums/my45/post-thread"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
плагины отключил все ничего не изменилось