Menu

DB.inc ?

Help
Rob Allen
2002-04-12
2002-04-14
  • Rob Allen

    Rob Allen - 2002-04-12

    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?

     
    • Rob Allen

      Rob Allen - 2002-04-12

      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?

       
    • Benjamin Curtis

      Benjamin Curtis - 2002-04-12

      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.

       
    • Yves Raymaekers

      Yves Raymaekers - 2002-04-14

      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

       
      • Benjamin Curtis

        Benjamin Curtis - 2002-04-14

        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.

         
        • Benjamin Curtis

          Benjamin Curtis - 2002-04-14

          You can test this by adding

          if (DB::isError($db)) {    die($db->message); }
          after line 48 (which has been done in CVS).

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.