Menu

Problem Upgrading from 0.9.1 to 1.0rc4

Help
2004-07-14
2013-04-16
  • Nobody/Anonymous

    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?

     
    • Nobody/Anonymous

      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.

       
      • Nobody/Anonymous

        I have the same problem and this solution did not resolve it. Please Help

         
        • Nobody/Anonymous

          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).

           
    • Nobody/Anonymous

      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.

       

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.