Problem with integreating TestLink with Bugzilla.

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
neelay
TestLink user
Posts: 6
Joined: Thu Oct 23, 2008 6:32 pm

Problem with integreating TestLink with Bugzilla.

Post by neelay »

I get the following error on my screen
Connection to your Bug Tracking System has failed:
Please check your configuration.
Be careful this problem will degrade TestLink performance.
I have done the following things in my setup.
Changed bugzilla.cfg file (my buzilla db is mysql)
Changed config.inc.php ($g_interface_bugs='BUGZILLA';)

Bugzilla is 3.0.5 running on mysql
Testlink 1.7.4 running on postgres

Could anyone suggest what else should i change to fix the issue

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

Post by fman »

with this sort of information is impossible to help.

you need to check that you can connect to bugzilla with a simple php
that uses same TL server
neelay
TestLink user
Posts: 6
Joined: Thu Oct 23, 2008 6:32 pm

Post by neelay »

Well both TL and Bugzilla are using Apache server, and individually both work fine. Could you please give a sample template script for testing what you have suggested.
neelay
TestLink user
Posts: 6
Joined: Thu Oct 23, 2008 6:32 pm

Post by neelay »

This is the script I wrote to connect to bugzilla, and it works fine. However, it doesnt work with testlink. Is this script a good test for checking bugzilaa connection, or should i add something else.
my configuration is as this
TestLink 1.7.4
Bugzilla:3.0.5
Apace 2.2
Windows Server

Is there any error log generated somewhere, I am not too familiar with php, so its hard for me to wade through the code, and make changes. So some suggestions would greatly be appreciated.

Code: Select all

<?php
$dbhost = 'localhost';
$dbuser = 'user';
$dbpass = 'password';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die        
      ('Error connecting to mysql');

$dbname = 'bug';
mysql_select_db($dbname);

header("Location: http://localhost/bugzilla/show_bug.cgi?id=1");
?>

neelay
TestLink user
Posts: 6
Joined: Thu Oct 23, 2008 6:32 pm

Post by neelay »

Ooops sorry I didnt add the correct script

Code: Select all

<?php
$dbhost = 'localhost';
$dbuser = 'user';
$dbpass = 'password';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die        
      ('Error connecting to mysql');



if (!$conn)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("bug", $conn);

$result = mysql_query("select assigned_to from bugs where bug_id =1");


while($row = mysql_fetch_array($result))
  {
  echo $row['assigned_to'] . " ";
  echo "<br />";
  }


?>

  
Post Reply