Nog een probleempje! :(

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Ibot
Berichten: 234
Lid geworden op: 07 nov 2003, 22:07

Nog een probleempje! :(

Bericht door Ibot » 03 sep 2004, 21:26

Na het posten van een reply krijg ik deze foutmelding:

Code: Selecteer alles

Warning: Missing argument 7 for user_notification() in /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/functions_post.php on line 574

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/functions_post.php:574) in /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/posting.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/functions_post.php:574) in /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/page_header.php on line 471

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/functions_post.php:574) in /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/functions_post.php:574) in /usr/local/psa/home/vhosts/speelland-noordwolde.nl/httpdocs/Forum/includes/page_header.php on line 478
Erg vervelend! wat is het???[/code]

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 04 sep 2004, 07:29

Open posting.php in je editor en vind:

Code: Selecteer alles

user_notification(
Standaard staat dat rond lijn 574. Geef eens op welke regel hij bij jou staat een geef de functie ook.


btw: Die eerste fout gaat het om. Die andere 5 zijn 'resutaten' van de eerste fout.

Ibot
Berichten: 234
Lid geworden op: 07 nov 2003, 22:07

Bericht door Ibot » 04 sep 2004, 17:38

Code: Selecteer alles

	$return_message = '';
	$return_meta = '';

	switch ( $mode )
	{
		case 'editpost':
		case 'newtopic':
		case 'reply':
			$username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : '';
			$subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : '';
			$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
			$poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : '';
			$poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : '';
			$poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : '';
			$bbcode_uid = '';

			prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);

			if ( $error_msg == '' )
			{
				$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;

				submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
				if ( $error_msg == '' )
				{
					user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
				}
			}
			break;

		case 'delete':
		case 'poll_delete':
			delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id);
			break;
	}

Bedoel je dit?

Hij user_notification staat op regel 550

Ibot
Berichten: 234
Lid geworden op: 07 nov 2003, 22:07

Bericht door Ibot » 05 sep 2004, 21:06

en dan?

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 06 sep 2004, 02:02

Vervang

Code: Selecteer alles

               user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
eens voor

Code: Selecteer alles

               user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
?

Gesloten