We've moved to a new web server, migrated from php4 to php5, and we're having a few issues with phpBugTracker.
For some reason $_SESSION['uid'] is not getting copied to $smarty.session.uid so that there is a message "You must be logged in to modify this bug" in the place where you would typically click to make a modification to a bug. Using an echo() I can confirm that uid is a valid value.
There must be some php setting that I need to change?
I can't tell what version of phpBugTracker we are using. I can't get to the Admin page.
What to do?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The version of phpbt that I was running was really old, so I went and go the most recent version. I installed the required portions of PEAR and Smarty. I moved my db constants over from the old install.
Now the application is failing silently (no output in the error log) on line 60 of include.php:
$db = DB::Connect($dsn);
Any ideas?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Installation of PEAR:DB is outside of the scope of phpBugTracker.
Normally PEAR:DB is installed as part of the OS, and it just works by magic. Under linux this may be by a package manager. Else the pear command line tool.
/usr/bin/pear
bryce@buccaneer:~/cvs/tools/phpBugTracker$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.2 stable
DB 1.7.12 stable
OLE 0.5 beta
PEAR 1.5.4 stable
Spreadsheet_Excel_Writer 0.9.1 beta
Structures_Graph 1.0.2 stable
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Installation of PEAR:DB is outside of the scope of phpBugTracker.
Normally PEAR:DB is installed as part of the OS, and it just works by magic. Under linux this may be by a package manager. Else the pear command line tool.
/usr/bin/pear
bryce@buccaneer:~/cvs/tools/phpBugTracker$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.2 stable
DB 1.7.12 stable
OLE 0.5 beta
PEAR 1.5.4 stable
Spreadsheet_Excel_Writer 0.9.1 beta
Structures_Graph 1.0.2 stable
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We've moved to a new web server, migrated from php4 to php5, and we're having a few issues with phpBugTracker.
For some reason $_SESSION['uid'] is not getting copied to $smarty.session.uid so that there is a message "You must be logged in to modify this bug" in the place where you would typically click to make a modification to a bug. Using an echo() I can confirm that uid is a valid value.
There must be some php setting that I need to change?
I can't tell what version of phpBugTracker we are using. I can't get to the Admin page.
What to do?
Thanks
Under Admin "Configuration", look at DB_VERSION. The current version is 5, and that version works perfectly with php5.
The version of phpbt that I was running was really old, so I went and go the most recent version. I installed the required portions of PEAR and Smarty. I moved my db constants over from the old install.
Now the application is failing silently (no output in the error log) on line 60 of include.php:
$db = DB::Connect($dsn);
Any ideas?
Thanks!
I'd recommend that you start by deleting config.php, and set a test database up from scratch.
Then, bring in your old database, and run "upgrade.php".
Your connect error is most certainly a PHP/PEAR thing, having little to do with phpBugTracker:
// PEAR::DB
require_once(PEAR_PATH.'DB.php');
$dsn = array(
'phptype' => DB_TYPE,
'hostspec' => DB_HOST,
'database' => DB_DATABASE,
'username' => DB_USER,
'password' => DB_PASSWORD
);
$db = DB::Connect($dsn);
if (DB::isError($db)) {
die($db->message.'<br>'.$db->userinfo);
}
Hopefully your "PEAR_PATH" is set to '' (null).
I was having some trouble getting the require Pear to work. I had to change two things to get it to load:
I had to change the 'PEAR_PATH' to './inc/pear/', because that's were I put it inside of phpbt.
Then in db.php, I had to insert PEAR_PATH in the call to require PEAR.php:
require_once PEAR_PATH.'PEAR.php';
So probably PEAR isn't installed correctly. Where should I have installed it?
Thanks.
Installation of PEAR:DB is outside of the scope of phpBugTracker.
Normally PEAR:DB is installed as part of the OS, and it just works by magic. Under linux this may be by a package manager. Else the pear command line tool.
/usr/bin/pear
bryce@buccaneer:~/cvs/tools/phpBugTracker$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.2 stable
DB 1.7.12 stable
OLE 0.5 beta
PEAR 1.5.4 stable
Spreadsheet_Excel_Writer 0.9.1 beta
Structures_Graph 1.0.2 stable
Remember you near the PEAR:DB module. If possible test PEAR:DB before getting frustrated with phpBugTracker.
How should I go about testing PEAR:DB? Thanks!
Installation of PEAR:DB is outside of the scope of phpBugTracker.
Normally PEAR:DB is installed as part of the OS, and it just works by magic. Under linux this may be by a package manager. Else the pear command line tool.
/usr/bin/pear
bryce@buccaneer:~/cvs/tools/phpBugTracker$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.2 stable
DB 1.7.12 stable
OLE 0.5 beta
PEAR 1.5.4 stable
Spreadsheet_Excel_Writer 0.9.1 beta
Structures_Graph 1.0.2 stable