[問題] 簡易子版面版面管理問題
發表於 : 2005-07-03 12:05
問題外掛:簡易子版面v1.0
參考連結:http://www.phpbb-tw.net/phpbb/viewtopic.php?t=33019
使用版本:phpBB 2.0.13
網站位置:test\r
狀況描述:
一新建一個版面就這樣......
562-568
參考連結:http://www.phpbb-tw.net/phpbb/viewtopic.php?t=33019
使用版本:phpBB 2.0.13
網站位置:test\r
狀況描述:
代碼: 選擇全部
Couldn't insert row in forums table
DEBUG MODE
SQL Error : 1136 Column count doesn't match value count at row 1
INSERT INTO phpbb_forums (forum_id, forum_name, cat_id, forum_desc, forum_announcement, forum_assign_posts, forum_order, forum_status, forum_icon, forum_access, prune_enable, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate, auth_attachments, auth_download) VALUES ('25', 'test', 1, 'test', '', '', '', '', 40, 0, '', 0, 0, 0, 0, 0, 0, 1, 1, 3, 3, 1, 1, 1, 1)
Line : 567
File : admin_forums.php
562-568
代碼: 選擇全部
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_announcement, forum_assign_posts, forum_order, forum_status, forum_icon, forum_access, prune_enable" . $field_sql . ")
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', '".$HTTP_POST_VARS['forum_portal_start']."', '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_portal_logo']) . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_announcement']) . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_assign_posts']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "', " . intval($HTTP_POST_VARS['forumaccess']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
if( !$result = $db->sql_query($sql) )
{
567->>> message_die(GENERAL_ERROR, "Couldn't insert row in forums table", "", __LINE__, __FILE__, $sql);
}