Problems with customization of ChangeLog

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
romat

Problems with customization of ChangeLog

Post by romat »

I tried to customize ChangeLog according to Victor Boctor's recommendation (http://www.futureware.biz/blog/index.ph ... &tb=1&pb=1). I wanted to have listed also a reporter name, so I created custom_functions_inc.php with this content:

<?php
# Prints one entry in the changelog.
function custom_function_override_changelog_print_issue( $p_issue_id ) {
$t_bug = bug_get( $p_issue_id );
echo '- ', string_get_bug_view_link( $p_issue_id ), ': <b>[', $t_bug->category, ']</b> ', string_display( $t_bug->summary );

echo ' (', prepare_user_name( $t_bug->reporter_id );
if ( $t_bug->handler_id != 0 ) {
echo '/', prepare_user_name( $t_bug->handler_id );
}
echo ')<br />';
}
?>

It shows what I want in ChangeLog page but I have the following problems with other pages:

1. when I click on View Issues I get this message at the top of the page: 'SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at C:\Apache\Apache2\htdocs\mantis\custom_functions_inc.php:15)'. It does not happen i n any other page.

2. When I enter http:://myserver/mantis in my browser I get a blank page. Without a customization file I am redirected to main_page.php.

Thanks, Roman
Mantis 1.0.0a1
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Make sure that the files you edited don't have blank lines outside the php block. This can cause the sort of problems you are experiencing.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/
romat

Post by romat »

When I deleted one empty line both problems persisted. I was partially successful with another change. When I deleted EOL after closing ?> the first problem disappered.
Post Reply