•Ето как изглежда бъга:
Code: Select all
Върни се на главната страница
Главна грешка
SQL ERROR [ mysql4 ]
Field 'topic_first_poster_avatar' doesn't have a default value [1364]
SQL
INSERT INTO phpbb_topics (topic_poster, topic_time, topic_last_view_time, forum_id, icon_id, topic_approved, topic_title, topic_first_poster_name, topic_first_poster_colour, topic_type, topic_time_limit, topic_attachment) VALUES (2, 1361725936, 1361725936, 33, 0, 1, 'gjgj', 'Chuck', 'AA0000', 0, 0, 0)
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()
FILE: [ROOT]/includes/db/mysql.php
LINE: 175
CALL: dbal->sql_error()
FILE: [ROOT]/includes/functions_posting.php
LINE: 1989
CALL: dbal_mysql->sql_query()
FILE: [ROOT]/posting.php
LINE: 1134
CALL: submit_post()
+++++++++++++++++++++++++++++++++++++++++++++++
•Във файла намерете: ( Намира се на ред 157 )
Code: Select all
// On add, add empty forum_options... else do not consider it (not updating it)
•Над него добавяте този код:
Code: Select all
//-- mod : apiv ----------------------------------------------------------------
//-- add
$forum_data += array('forum_last_poster_avatar' => '');
//-- fin mod : apiv ------------------------------------------------------------