#001054 Unknown column 'is_draft' in 'field list'
INSERT INTO bb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_vote, is_draft, topic_last_post_time) VALUES ('IBM сократила штат на 12 %', -746, 1425213143, 24, 0, 0, 0, 0, 0,1425213143)
Source : cron/NewsGrab.php(120) :: db1.game
IP : 128.75.131.248
Date : 2015-03-01 16:32:23
Agent : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Req_URI : /cron/index.php
Referer :
Method : GET
PID : 30935
Request : Array
(
[01-Mar-2015 12:57:52 UTC] PHP Notice: Undefined index: network_news in /var/www/***/data/www/***/cron/NewsGrab.php on line 124
#001136 Column count doesn't match value count at row 1
INSERT INTO bb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_vote, topic_last_post_time) VALUES ('Реклама приходит в Google Play', -746, 1425213983, 24, 0, 0, 0, 0, 0,1425213983)
Source : cron/NewsGrab.php(120) :: db1.game
IP : 128.75.131.248
Date : 2015-03-01 16:46:23
Agent : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Req_URI : /cron/index.php
Referer :
Method : GET
PID : 31746
Request : Array
(
Удалить удалил в одном месте, а рядом столбик-то еще есть. Попробуй:Удалил (тест) - is_draft / появилось в логах
$topic_sql = "INSERT INTO bb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_vote, topic_last_post_time) VALUES ('" . $data['title'] . "', " . BOT_UID . ", " . time() . ", " . $bb_cfg['network_news_forum_id'] . ", 0, 0, 0, 0," . time() . ")";
DB()->sql_query($topic_sql);
$topic_sql = "INSERT INTO bb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_last_post_time) VALUES ('" . $data['title'] . "', " . BOT_UID . ", " . time() . ", " . $bb_cfg['network_news_forum_id'] . ", 0, 0, 0, " . time() . ")";
Ок. постить начал - только заголовки.vitalix, а так
PHP:$topic_sql = "INSERT INTO bb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_last_post_time) VALUES ('" . $data['title'] . "', " . BOT_UID . ", " . time() . ", " . $bb_cfg['network_news_forum_id'] . ", 0, 0, 0, " . time() . ")";
Кстати - ща заново проверил этот вариант - тоже постит только заголовки.Удалить удалил в одном месте, а рядом столбик-то еще есть. Попробуй:
PHP:$topic_sql = "INSERT INTO bb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_dl_type, topic_vote, topic_last_post_time) VALUES ('" . $data['title'] . "', " . BOT_UID . ", " . time() . ", " . $bb_cfg['network_news_forum_id'] . ", 0, 0, 0, 0," . time() . ")"; DB()->sql_query($topic_sql);
$post_sql = "INSERT INTO bb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip) VALUES (" . $topic_id . ", " . $bb_cfg['network_news_forum_id'] . ", " . BOT_UID . ", 'Bot', " . time() . ", '127.0.0.1')";
DB()->sql_query($post_sql);
$post_sql = "INSERT INTO bb_posts (topic_id, forum_id, poster_id, post_time, poster_ip) VALUES (" . $topic_id . ", " . $bb_cfg['network_news_forum_id'] . ", " . BOT_UID . ", " . time() . ", '127.0.0.1')";
DB()->sql_query($post_sql);