Ok, have got a little further and found DB.inc in "/usr/local/lib/php". I have altered my php.ini file to include this directory in the include_path and we get a bit further.
Problems: $db->setOption() is unrecognised, as is $db->modifyLimitQuery().
I'm guessing that this might be because the version of PHP I'm using is fairly old (4.0.3pl1). What version do I need in order to use phpbt?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yup, that's probably too old. Try grabbing pear from pear.php.net or upgrading PHP. Pear doesn't have a convenient download, so upgrading PHP might actually be easier. :) Of course, 4.0.3pl1 has a security hole too, which is a good reason to upgrade it too. :) I would go with at least 4.0.6, but personally I've found 4.1.2 to be solid and a good upgrade. Note that I personally haven't tested the new code on 4.0.6, just 4.1.x.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This could be a failure to connect to the database. $db->setoption won't be defined if $db isn't correctly set up with a valid db connection on line 48.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't seem to upgrade to 0.8.0 as it is throwing the error "Failed opening required 'DB.php' (include_path='') in ...../include.php"
Am I right in assuming that PEAR needs to be installed first before phpbt will run now? or are the relevant files missing in the "_smarty.zip" file?
Ok, have got a little further and found DB.inc in "/usr/local/lib/php". I have altered my php.ini file to include this directory in the include_path and we get a bit further.
Problems: $db->setOption() is unrecognised, as is $db->modifyLimitQuery().
I'm guessing that this might be because the version of PHP I'm using is fairly old (4.0.3pl1). What version do I need in order to use phpbt?
Yup, that's probably too old. Try grabbing pear from pear.php.net or upgrading PHP. Pear doesn't have a convenient download, so upgrading PHP might actually be easier. :) Of course, 4.0.3pl1 has a security hole too, which is a good reason to upgrade it too. :) I would go with at least 4.0.6, but personally I've found 4.1.2 to be solid and a good upgrade. Note that I personally haven't tested the new code on 4.0.6, just 4.1.x.
I've got the same problem. I had the error with php 4.1.1. and I still have the error after upgrading to php 4.1.2
Fatal error: Call to undefined function: setoption() in c:\mydoc\mysite\phpbt\include.php on line 49
WinXP,php 4.1.2, mysql 3.23.47-nt
This could be a failure to connect to the database. $db->setoption won't be defined if $db isn't correctly set up with a valid db connection on line 48.
You can test this by adding
if (DB::isError($db)) { die($db->message); }
after line 48 (which has been done in CVS).