Seite 1 von 1
Bekomme immer diese Fehlermeldung
Verfasst: 23.05.2003 10:14
von Eclipse16V
Bekomme immer wenn ich ein neues Thema erstelle dies Fehlermeldung im Header der Bestätigungsseite:
Code: Alles auswählen
Warning: Missing argument 7 for user_notification() in /home/www/web3/html/phpBB2/includes/functions_post.php on line 580
Warning: Cannot add header information - headers already sent by (output started at /home/www/web3/html/phpBB2/includes/functions_post.php:580) in /home/www/web3/html/phpBB2/posting.php on line 655
Warning: Cannot add header information - headers already sent by (output started at /home/www/web3/html/phpBB2/includes/functions_post.php:580) in /home/www/web3/html/phpBB2/includes/page_header.php on line 647
Warning: Cannot add header information - headers already sent by (output started at /home/www/web3/html/phpBB2/includes/functions_post.php:580) in /home/www/web3/html/phpBB2/includes/page_header.php on line 649
Warning: Cannot add header information - headers already sent by (output started at /home/www/web3/html/phpBB2/includes/functions_post.php:580) in /home/www/web3/html/phpBB2/includes/page_header.php on line 650
Was hab ich falsch gemacht oder wo liegt der Fehler?
Verfasst: 23.05.2003 11:55
von iron_wulf
Schau mal nach ob die Dateien Schreibgeschützt sind .

Verfasst: 23.05.2003 11:59
von Eclipse16V
Nein sind sich nicht.

Verfasst: 23.05.2003 17:33
von Mister_X
du hast entweder einen Mod eingebaut (vielleicht sogar den notification Mod von davil ?)
oder du hast nur "halbherzig" von phpBB 2.0.3 auf 2.0.4 upgedatet ?
Verfasst: 23.05.2003 17:44
von Eclipse16V
Nix von beiden
Habe zwar ein paar Mods eingebaut nur dieser war nicht dabei und ein Update habe ich auch nicht gemacht sondern gleich das phpBB 2.0.4 genommen.
Verfasst: 23.05.2003 20:43
von Mister_X
dann brauche ich ein paar Zeilen Code von dir

öffne functions_post.php
suche nach
und schreibe hier was danach noch in der Klammern kommt (am besten die gesamte Zeile kopieren)
öffne posting.php
suche nach
und schreibe hier was danach noch in Klammern steht
Verfasst: 23.05.2003 20:52
von Eclipse16V
posting.php
Code: Alles auswählen
{
$user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
if ($error_msg == '' && $mode != 'poll_delete')
{
// forum notification mod
$post_data['subject'] = $subject;
$post_data['username'] = ( $userdata['user_id'] == ANONYMOUS ) ? $username : $userdata['username'];
$post_data['message'] = $message;
if ( $post_data['first_post'] )
{
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
else
{
if ( $setbm )
{
set_bookmark($topic_id);
}
user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
if( $mode != "editpost" )
{
top_smilies($message);
}
$attachment_mod['posting']->insert_attachment($post_id);
}
}
if ( $mode == 'newtopic' || $mode == 'reply' )
{
$tracking_topics = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array();
$tracking_forums = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array();
if ( count($tracking_topics) + count($tracking_forums) == 100 && empty($tracking_topics[$topic_id]) )
{
asort($tracking_topics);
unset($tracking_topics[key($tracking_topics)]);
}
functions_post.php
Code: Alles auswählen
if ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post'])
{
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $forum_id) . '">';
$message = $lang['Deleted'];
}
else
{
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id) . '">';
$message = (($mode == 'poll_delete') ? $lang['Poll_delete'] : $lang['Deleted']) . '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
}
$message .= '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
return;
}
//
// Handle user notification on new post
//
function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$post_id, &$notify_user)
{
global $HTTP_SERVER_VARS, $HTTP_ENV_VARS;
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
$current_time = time();
if ( $mode == "delete" )
{
$delete_sql = ( !$post_data['first_post'] && !$post_data['last_post'] ) ? " AND user_id = " . $userdata['user_id'] : "";
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE topic_id = $topic_id" . $delete_sql;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't change topic notify data", "", __LINE__, __FILE__, $sql);
}
}
else
{
if ( $mode == "reply" )
{
Verfasst: 23.05.2003 21:26
von Mister_X
also ich lese da was vom Notification Mod ? Naja egal...
posting.php
suche nach
Code: Alles auswählen
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
und ersetze dies mit
Code: Alles auswählen
user_notification('newtopic', $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
Verfasst: 24.05.2003 08:15
von Eclipse16V
Besten Dank
Geht wieder.
