Опубликовано: 21 августа 20205 г Добрый! Пробую создать подраздел, в ответ ошибка. С чем может быть связанная ? INSERT INTO `conv_forums_forums` ( `parent_id`, `forums_bitoptions`, `position` ) VALUES ( '324', 0, 461 ) IPS\Db\Exception: Field 'post_rules_on' doesn't have a default value (1364) #0 /var/www/vhosts//httpdocs/forums/system/Db/Db.php(937): IPS\_Db->preparedQuery('/*IPS\\Node\\_Mod...', Array) #1 /var/www/vhosts//httpdocs/forums/system/Patterns/ActiveRecord.php(487): IPS\_Db->insert('forums_forums', Array) #2 /var/www/vhosts//httpdocs/forums/system/Node/Model.php(2335): IPS\Patterns\_ActiveRecord->save() #3 /var/www/vhosts//httpdocs/forums/applications/forums/sources/Forum/Forum.php(1229): IPS\Node\_Model->save() #4 /var/www/vhosts//httpdocs/forums/system/Node/Controller.php(413): IPS\forums\_Forum->formatFormValues(Array) #5 /var/www/vhosts//httpdocs/forums/applications/forums/modules/admin/forums/forums.php(127): IPS\Node\_Controller->form() #6 /var/www/vhosts//httpdocs/forums/system/Dispatcher/Controller.php(85): IPS\forums\modules\admin\forums\_forums->form() #7 /var/www/vhosts//httpdocs/forums/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute() #8 /var/www/vhosts//httpdocs/forums/applications/forums/modules/admin/forums/forums.php(39): IPS\Node\_Controller->execute() #9 /var/www/vhosts//httpdocs/forums/system/Dispatcher/Dispatcher.php(152): IPS\forums\modules\admin\forums\_forums->execute() #10 /var/www/vhosts//httpdocs/forums/admin/index.php(14): IPS\_Dispatcher->run() #11 {main}
Опубликовано: 21 августа 20205 г Field 'post_rules_on' doesn't have a default value (1364) Поле "post_rules_on" не имеет значение по умолчанию, если оно не определенно при вставке. Нужно задать ему DEFAULT значение типа пустой строки или NULL.
Опубликовано: 21 августа 20205 г Автор 54 минуты назад, siv1987 сказал: Field 'post_rules_on' doesn't have a default value (1364) Поле "post_rules_on" не имеет значение по умолчанию, если оно не определенно при вставке. Нужно задать ему DEFAULT значение типа пустой строки или NULL. Спасибо.
Добрый! Пробую создать подраздел, в ответ ошибка. С чем может быть связанная ?
INSERT INTO `conv_forums_forums` ( `parent_id`, `forums_bitoptions`, `position` ) VALUES ( '324', 0, 461 ) IPS\Db\Exception: Field 'post_rules_on' doesn't have a default value (1364) #0 /var/www/vhosts//httpdocs/forums/system/Db/Db.php(937): IPS\_Db->preparedQuery('/*IPS\\Node\\_Mod...', Array) #1 /var/www/vhosts//httpdocs/forums/system/Patterns/ActiveRecord.php(487): IPS\_Db->insert('forums_forums', Array) #2 /var/www/vhosts//httpdocs/forums/system/Node/Model.php(2335): IPS\Patterns\_ActiveRecord->save() #3 /var/www/vhosts//httpdocs/forums/applications/forums/sources/Forum/Forum.php(1229): IPS\Node\_Model->save() #4 /var/www/vhosts//httpdocs/forums/system/Node/Controller.php(413): IPS\forums\_Forum->formatFormValues(Array) #5 /var/www/vhosts//httpdocs/forums/applications/forums/modules/admin/forums/forums.php(127): IPS\Node\_Controller->form() #6 /var/www/vhosts//httpdocs/forums/system/Dispatcher/Controller.php(85): IPS\forums\modules\admin\forums\_forums->form() #7 /var/www/vhosts//httpdocs/forums/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute() #8 /var/www/vhosts//httpdocs/forums/applications/forums/modules/admin/forums/forums.php(39): IPS\Node\_Controller->execute() #9 /var/www/vhosts//httpdocs/forums/system/Dispatcher/Dispatcher.php(152): IPS\forums\modules\admin\forums\_forums->execute() #10 /var/www/vhosts//httpdocs/forums/admin/index.php(14): IPS\_Dispatcher->run() #11 {main}