I've had 0.9.1 running without problems for about a month now, and I've also installed 1.0rc4 on its own an it worked fine.
The only problem I come across is when I try to upgrade 0.9.1 to 1.0rc4.
I configure 1.0rc4 to connect to the same database and table prefixes, upload the config.php and run upgrade.php.
But when I try to go to index.php I get the following error:
Fatal error: Call to a member function on a non-object in /var/www/html/phpbt104/inc/functions.php on line 40
Any ideas why this is happening?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
n/m I found the problem :-).
I had to put the DB_VERSION row in the database, run upgrade.php again with version set to 1, and then set it to 4 myself.
That seemed to work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Open inc/functions.php in a text editor and look at line 40. It should be the show_text function. Add these lines before the one reading $t->assign:
if (!is_object($t)) {
echo "<div class=\"error\">$text</div>";
exit;
}
You should now get an error message from phpBugTracker instead of the php system. Since it most likely is a database problem you should also add:
define('RAWERROR', 1);
at the beginning of include.php to be able to see the raw error messages from your database server.
Note: You should remove that define before you let users enter the system!
Please join the phpbt-users mailing list and post the full error message you receive with these changes together with some information on your system; what database server and version, web server and version, php version and whether you use the included pear/db files or a system wide install (and what version in that case).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
also had to add the following line to the top of include.php:
define('THEME', 'default');
Apparently THEME gets defined in install.php but it does not get defined in include.php so it gives an error because the directory "/themes/THEME/" does not exist.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've had 0.9.1 running without problems for about a month now, and I've also installed 1.0rc4 on its own an it worked fine.
The only problem I come across is when I try to upgrade 0.9.1 to 1.0rc4.
I configure 1.0rc4 to connect to the same database and table prefixes, upload the config.php and run upgrade.php.
But when I try to go to index.php I get the following error:
Fatal error: Call to a member function on a non-object in /var/www/html/phpbt104/inc/functions.php on line 40
Any ideas why this is happening?
n/m I found the problem :-).
I had to put the DB_VERSION row in the database, run upgrade.php again with version set to 1, and then set it to 4 myself.
That seemed to work.
I have the same problem and this solution did not resolve it. Please Help
Open inc/functions.php in a text editor and look at line 40. It should be the show_text function. Add these lines before the one reading $t->assign:
if (!is_object($t)) {
echo "<div class=\"error\">$text</div>";
exit;
}
You should now get an error message from phpBugTracker instead of the php system. Since it most likely is a database problem you should also add:
define('RAWERROR', 1);
at the beginning of include.php to be able to see the raw error messages from your database server.
Note: You should remove that define before you let users enter the system!
Please join the phpbt-users mailing list and post the full error message you receive with these changes together with some information on your system; what database server and version, web server and version, php version and whether you use the included pear/db files or a system wide install (and what version in that case).
also had to add the following line to the top of include.php:
define('THEME', 'default');
Apparently THEME gets defined in install.php but it does not get defined in include.php so it gives an error because the directory "/themes/THEME/" does not exist.