Помогите с SQL ERROR [ mysql4 ]
Додано: 16 вересня 2008, 13:05
Пожалуйста помогите с SQL ERROR [ mysql4 ]
Ситуация: обновил с 3.01 до 3.02, появилось следующее: когда заходишь под своим ником, и смотришь старое сообщение, выдает ошибку:
Критична помилка
SQL ERROR [ mysql4 ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_id = 19' at line 4 [1064]
SQL
SELECT notify_status FROM phpbb_topics_watch WHERE topic_id = AND user_id = 19
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal_mysql->sql_error()
FILE: includes/functions_display.php
LINE: 1003
CALL: dbal_mysql->sql_query()
FILE: viewtopic.php
LINE: 456
CALL: watch_topic_forum()
Когда смотришь свое новое сообщение, его показывает, но в самом вверху форума появляется
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 982: Missing argument 6 for watch_topic_forum()
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3545: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3547: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3548: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3549: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
Если же просматривать форум как гость, то все сообщения просматриваются абсолютно нормально. Пожалуйста, подскажите что это такое и как это исправить. Заранее спасибо! )
Ситуация: обновил с 3.01 до 3.02, появилось следующее: когда заходишь под своим ником, и смотришь старое сообщение, выдает ошибку:
Критична помилка
SQL ERROR [ mysql4 ]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND user_id = 19' at line 4 [1064]
SQL
SELECT notify_status FROM phpbb_topics_watch WHERE topic_id = AND user_id = 19
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal_mysql->sql_error()
FILE: includes/functions_display.php
LINE: 1003
CALL: dbal_mysql->sql_query()
FILE: viewtopic.php
LINE: 456
CALL: watch_topic_forum()
Когда смотришь свое новое сообщение, его показывает, но в самом вверху форума появляется
[phpBB Debug] PHP Notice: in file /includes/functions_display.php on line 982: Missing argument 6 for watch_topic_forum()
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3545: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3547: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3548: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3549: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2975)
Если же просматривать форум как гость, то все сообщения просматриваются абсолютно нормально. Пожалуйста, подскажите что это такое и как это исправить. Заранее спасибо! )