Problem mit meinem PhPBB Forum

09/23/2010 19:50 Rynundu#1
Hallo,

also ich habe ein PhPBB Forum für meinen WoW Privatserver. Als forendesign habe ich das von PbWoW. Das ist sozusagen eine 1:1 Kopie vom offizziellen Forum. Nun, wenn ich einen BEitrag schreibe, und dann auf absenden klicke kommt folgender Fehler:

PHP Code:
General Error
SQL ERROR 
mysqli ]

Field 'topic_first_poster_rank_img' 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, 1285263100, 1285263100, 2, 0, 1, '
fadsf', 'Rynundu', '00BFFF', 0, 0, 0)

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/functions_posting.php
LINE: 1964
CALL: dbal_mysqli->sql_query()

FILE: posting.php
LINE: 1108
CALL: submit_post() 
Da ich mich mit PhP, HTML und sowas überhauptnicht auskenne, wollte ich fragen, ob mir hier jemand helfen kann.
09/26/2010 09:07 ExChill#2
Hast du irgendwelche AddOns im Forum installiert?
09/27/2010 17:30 Deadlift#3
Öffne Datei:

/forum/includes/functions_posting.php

Finde:
PHP Code:
$post_approved $sql_data[POSTS_TABLE]['sql']['post_approved'];
$topic_row = array(); 
Danach adden:

PHP Code:
get_user_rank_4others($user->data['user_rank'], $user->data['user_posts'], $rankx_title$rankx_img$rankx_img_src); // for PBWoW
$rankx_img_src pathinfo($rankx_img_src); // for PBWoW
$rankx_img_src $rankx_img_src['basename']; // for PBWoW 
Finde:

PHP Code:
'topic_first_poster_colour'   => $user->data['user_colour'], 
Danach adden:

PHP Code:
'topic_first_poster_rank_img'   => (isset( $rankx_img_src )) ? $rankx_img_src ''// for PBWoW
'topic_first_poster_rank_title'   => (isset( $rankx_title )) ? $rankx_title ''// for PBWoW 
Sollte es beheben, der Fehler liegt im Style selbst.
09/29/2010 23:12 Rynundu#4
Many thanks an dich. Nur leider finde ich das letzte nicht. Ich habe alle 2617 Zeilen ziemlich genau durchsucht, und nicht mit 'topic first poster gefunden. Das einzige was ich gefunden habe war das:

PHP Code:
$sql_data[TOPICS_TABLE]['sql'] = array(
                
'topic_poster'                => (int) $user->data['user_id'],
                
'topic_time'                => $current_time,
                
'topic_last_view_time'        => $current_time,
                
'forum_id'                    => ($topic_type == POST_GLOBAL) ? $data['forum_id'],
                
'icon_id'                    => $data['icon_id'],
                
'topic_approved'            => $post_approval,
                
'topic_title'                => $subject,
                
'topic_first_poster_name'    => (!$user->data['is_registered'] && $username) ? $username : (($user->data['user_id'] != ANONYMOUS) ? $user->data['username'] : ''),
                
'topic_first_poster_colour'    => $user->data['user_colour'],
                
'topic_type'                => $topic_type,
                
'topic_time_limit'            => ($topic_type == POST_STICKY || $topic_type == POST_ANNOUNCE) ? ($data['topic_time_limit'] * 86400) : 0,
                
'topic_attachment'            => (!empty($data['attachment_data'])) ? 0
Da steht ja was von Topic_first_poster colour. Soll ich das einfach da ranhängen? Oder ist dass das falsche?
09/30/2010 10:32 Deadlift#5
Japp das ist exakt die Zeile
01/13/2011 17:59 Rynundu#6
Hallo!

Da jetzt wieder ein Problem aufgetreten ist, pushe ich diesen Beitrag einfach.

Also, das oben genannte Problem habe ich behoben, einen riesen Dank hier nochmal an Deadlift!

Nun habe ich aber ein neues Problem. Undzwar wenn ich ich Thema verschieben will, in ein anderes Forum beispielsweise, bekomme ich folgenden Fehlercode angezeigt:

Code:
Allgemeiner Fehler
SQL ERROR [ mysqli ]

Field 'topic_first_poster_rank_img' doesn't have a default value [1364]

SQL

INSERT INTO phpbb_topics (forum_id, icon_id, topic_attachment, topic_approved, topic_reported, topic_title, topic_poster, topic_time, topic_time_limit, topic_views, topic_replies, topic_replies_real, topic_status, topic_type, topic_first_post_id, topic_first_poster_colour, topic_first_poster_name, topic_last_post_id, topic_last_poster_id, topic_last_poster_colour, topic_last_poster_name, topic_last_post_subject, topic_last_post_time, topic_last_view_time, topic_moved_id, topic_bumped, topic_bumper, poll_title, poll_start, poll_length, poll_max_options, poll_last_vote) VALUES (4, 0, 0, 1, 0, '08/01 Technische Probleme: Accounterstellung', 53, 1294494719, 0, 6, 0, 0, 2, 0, 7, '00BFFF', 'Ryokon', 7, 53, '00BFFF', 'Ryokon', '08/01 Technische Probleme: Accounterstellung', 1294494719, 1294937742, 4, 0, 0, '', 0, 0, 1, 0)

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/mcp/mcp_main.php
LINE: 716
CALL: dbal_mysqli->sql_query()

FILE: includes/mcp/mcp_main.php
LINE: 93
CALL: mcp_move_topic()

FILE: includes/functions_module.php
LINE: 507
CALL: mcp_main->main()

FILE: includes/functions_module.php
LINE: 802
CALL: p_master->load_active()

FILE: mcp.php
LINE: 169
CALL: p_master->load()
Nachdem ich dann die Seite neu geladen habe, ist das Thema dann aber trotz Fehler verschoben und im anderen Forum zu finden.

Bitte helft mir :(