Configure TestLink to interface with Mantis

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
Carlos
TestLink user
Posts: 4
Joined: Tue May 16, 2006 12:12 pm

Configure TestLink to interface with Mantis

Post by Carlos »

Hi,

I am running

TestLink 1.6.2
Mantis 1.0.3
PHP 5.1.4
MySQL 5.0.21

I have configured TestLink to interface with Mantis. However, when I try to execute a test and navigate to a test case I get the following fatal error:

Fatal error: Call to a member function isConnected() on a non-object in c:\\\\Inetpub\\\\wwwroot\\\\testlink-1.6.2\\\\gui\\\\templates_c\\\\%%B9^B95^B954D1F4%%execSetResults.tpl.php on line 29

I did the following configurations:

In TestLink mantis.cfg.php:

//Set the bug tracking system Interface to MANTIS 0.19.1
//also tested with MANTIS 1.0.0.a3
/** The DB host to use when connecting to the mantis db */
define(\\\'BUG_TRACK_DB_HOST\\\', \\\'localhost\\\');
/** The name of the database that contains the mantis tables */
define(\\\'BUG_TRACK_DB_NAME\\\', \\\'mantis\\\');
/** The DB type being used by mantis */
define(\\\'BUG_TRACK_DB_USER\\\', \\\'mantis\\\');
/** The DB password to use for connecting to the mantis db */
define(\\\'BUG_TRACK_DB_PASS\\\', \\\'mantis\\\');
/* link of the web server for mantis*/
/* anonymous login into mantis has to be turned on, and a mantis user has to created with viewer rights to all public projects
/* Change the following in your mantis config_inc.php (replace dummy with your created user)
# --- anonymous login -----------
# Allow anonymous login
$g_allow_anonymous_login = ON;
$g_anonymous_account = \\\'dummy\\\';
*/
define(\\\'BUG_TRACK_HREF\\\', \\\"http://localhost/mantis-1.0.3/view.php?id=\\\");
/** link to the bugtracking system, for entering new bugs */
define(\\\'BUG_TRACK_ENTER_BUG_HREF\\\', \\\"http://localhost/mantis-1.0.3/bug_report_page.php\\\");

In TestLink config.inc.php:

define(\\\'TL_INTERFACE_BUGS\\\', \\\'MANTIS\\\');
require_once(TL_ABS_PATH . \\\'cfg/mantis.cfg.php\\\');

In Mantis config.inc.php:

$g_allow_anonymous_login = ON;
$g_anonymous_account = \\\'mantis\\\';

Do you have any hint what I could try to make it running?

Thank you in advance!
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

1. Never tested on PHP 5.x
2. Please enable Testlink LOG (see on config.inc.php)
this will create a log file in the template_c dir
3. try to give a look to sources regarding mantis (added some echos
in the interesting points)
Carlos
TestLink user
Posts: 4
Joined: Tue May 16, 2006 12:12 pm

Post by Carlos »

I could only activate the DEBUG level. The log file is attached. When I tried to activate the EXTENDED logging I got this:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\\\\\\\\Inetpub\\\\\\\\wwwroot\\\\\\\\testlink-1.6.2\\\\\\\\lib\\\\\\\\functions\\\\\\\\logging.inc.php:84) in c:\\\\\\\\Inetpub\\\\\\\\wwwroot\\\\\\\\testlink-1.6.2\\\\\\\\lib\\\\\\\\functions\\\\\\\\common.php on line 369
Carlos
TestLink user
Posts: 4
Joined: Tue May 16, 2006 12:12 pm

Post by Carlos »

Forgot the attachment.

[quote=\\\\\\\\\\\\\"Carlos\\\\\\\\\\\\\"]I could only activate the DEBUG level. The log file is attached. When I tried to activate the EXTENDED logging I got this:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Inetpub\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\wwwroot\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\functions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\common.php on line 369[/quote]
viljar_p
TestLink user
Posts: 3
Joined: Tue May 30, 2006 1:16 pm
Location: Tallinn

Post by viljar_p »

yes, I have the same problem with

Mysql 5.0
Apache 2.2.2
PHP 5.1.4

Any solutions so far?
viljar_p
TestLink user
Posts: 3
Joined: Tue May 30, 2006 1:16 pm
Location: Tallinn

Post by viljar_p »

I changed my PHP configuration to 4.4.2 and got the same error when trying to execute a test:
Fatal error: Call to a member function on a non-object in blaablaa\\testlink-1.6.2\\gui\\templates_c\\%%B9^B95^B954D1F4%%execSetResults.tpl.php on line 29

TestLink 1.6.2
Mantis 1.0.3
PHP 4.4.2
MySQL 5.0.21
viljar_p
TestLink user
Posts: 3
Joined: Tue May 30, 2006 1:16 pm
Location: Tallinn

solution

Post by viljar_p »

heh, was that so hard to give the link to the solution ...

http://www.testlink.org/mantis/file_dow ... 2&type=bug

Carlos, your configuration was wrong!
agawam
TestLink user
Posts: 1
Joined: Fri Jul 07, 2006 12:56 pm

Post by agawam »

I\'m getting a similar error message, when clicking a test case under Execute:
Fatal error: Call to a member function on a non-object in c:program fileseasyphp1-8wwwtestlinkguitemplates_c%%B9^B95^B954D1F4%%execSetResults.tpl.php on line 29
My environment is:

TestLink 1.6.2
Apache 1.3.33
PHP 4.3.10
MySQL 4.1.9
JIRA 3.6.2 professional

I read the whole thread and the PDF, but I still don\'t see what caused this error for Carlos... could someone kindly point out what would make a difference?

config.inc.php
define(\'TL_INTERFACE_BUGS\', \'JIRA\');
require_once(TL_ABS_PATH . \'cfg/jira.cfg.php\');

jira.cfg.php
define(\'BUG_TRACK_DB_HOST\', \'127.0.0.1:3307\');
define(\'BUG_TRACK_DB_NAME\', \'jiradb\');
define(\'BUG_TRACK_DB_USER\', \'jirauser\');
define(\'BUG_TRACK_DB_PASS\', \'jirauser\');
define(\'BUG_TRACK_HREF\', \"http://localhost:8080/secure/Dashboard.jspa\");
define(\'BUG_TRACK_ENTER_BUG_HREF\',\"http://localhost:8080/jira/secure/Creat ... fault.jspa\");

The only difference from the PDF is I didn\'t set the anonymous access for JIRA... Since the \"jirauser\" I set up is a public account I thought it was not needed. Could this be the cause???
Post Reply