Pagina 1 van 1

Nog een probleempje! :(

Geplaatst: 03 sep 2004, 21:26
door Ibot
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]

Geplaatst: 04 sep 2004, 07:29
door WebSiteNet
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.

Geplaatst: 04 sep 2004, 17:38
door Ibot

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

Geplaatst: 05 sep 2004, 21:06
door Ibot
en dan?

Geplaatst: 06 sep 2004, 02:02
door mosymuis
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);
?