Unable to modify $g_tc_status_for_ui

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Dan82
TestLink user
Posts: 4
Joined: Fri Feb 01, 2008 4:13 pm
Location: Toulouse (France)

Unable to modify $g_tc_status_for_ui

Post by Dan82 »

Hello,

I'm currently testing TL 1.7.0 and I have a problem if I try to modify the $g_tc_status_for_ui variable in the const.inc.php file.

Initial source is :

// Used to generate radio and buttons at user interface level.
// Order is important, because this will be display order on User Interface
//
// key => verbose status as defined in $g_tc_status
// value => string id defined in the strings.txt file,
// used to localize the strings.
//
// $g_tc_status_for_ui = array(
// "not_run" => "test_status_not_run",
// "passed" => "test_status_passed",
// "failed" => "test_status_failed",
// "blocked" => "test_status_blocked"
// );

$g_tc_status_for_ui = array(
"passed" => "test_status_passed",
"failed" => "test_status_failed",
"blocked" => "test_status_blocked"
);

If I try to (re)introduce "not_run" => "test_status_not_run", line in the array, I receive the following message (in a blank window) when loging:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\testlink\cfg\const.inc.php:1) in C:\xampp\htdocs\testlink\lib\functions\common.php on line 187

Is there a problem with this status?

Thank's for your help.

Dan
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

1. update to 1.7.3 anyway.
2. return to your old configuration.
3. test that all is up and running
4.make your changes on custom_config.inc.php
5. let me know
Dan82
TestLink user
Posts: 4
Joined: Fri Feb 01, 2008 4:13 pm
Location: Toulouse (France)

Unable to modify const.inc.php

Post by Dan82 »

Hello fman,

The problem happened each time I tried to edit this file.

I migrate to 1.7.3 version but I still had the same issue.

I used Notepad to edit the file and I noticed the size of the file was not the same after modifying it and remove modification.

So I used emacs to edit it and it worked, but I can't explain that.

Best regards,

Dan
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

Now is all up and running ???
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

sometimes having an space after: ?> causes problems.
Please check this
Dan82
TestLink user
Posts: 4
Joined: Fri Feb 01, 2008 4:13 pm
Location: Toulouse (France)

Post by Dan82 »

Hello,

Even if I'm not sure, in my opinion, the issue is due to end of line formatting (return/line feed) characters.

After editing the original file with emacs, when I open it with notepad, I get an unformatted text (all the source is concateneted with squares for end of line characters).

Perhaps this file was created on an Unix/Linux computer without Windows end of line settings (to be verified).

Best regards,

Dan
Post Reply