db_sql Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akiy
    Senior Member
    • Apr 2000
    • 157

    db_sql Error

    I seem to be having problems with a db_sql error during installation.

    The first wall I've reached was step 3 of install.php. It fails with the error, "Fatal error: Cannot instantiate non-existent class: db_sql in /path/to/forums/admin/install.php on line 102." Line 100 calls include("db_mysql.php") (after interpolation) but it looks like db_mysql.php contains db_sql_vb but not db_sql.

    Am I missing something?

    Also, should I be changing my include_path at all for installation?

    I'm trying to install the latest development version of vbulletin (1.1.1 + the patched files).

    Thanks!
    AikiWeb Aikido Information
  • akiy
    Senior Member
    • Apr 2000
    • 157

    #2
    The second wall...

    [QUOTE][i]Originally posted by akiy [/i]
    [B]The first wall I've reached was step 3 of install.php. It fails with the error, "Fatal error: Cannot instantiate non-existent class: db_sql in /path/to/forums/admin/install.php on line 102." Line 100 calls include("db_mysql.php") (after interpolation) but it looks like db_mysql.php contains db_sql_vb but not db_sql.
    [/B][/QUOTE]

    I feel like an idiot replying to my own post minutes after I posted it, but here goes.

    I got by this wall by renaming db_sql_vb to db_sql during step 3 and then changing it back to db_sql_vb so that the control panel loads up.

    Now, the control panel seems to be working OK with all of the features accessible, but when I try to load up the forums themselves, I get "Fatal error: Call to undefined function: gettemplate() in /path/to/forums/index.php on line 102".

    My include_path right now has /path/to/forums/admin and /path/to/forums in it in that order. If I swap the order, the above error goes away but now all of the admin features die. If I remove the path to the admin page, it comes up blank. If I remove the path to the forums, it comes up with the above error. If I remove both paths, both sections come up blank.

    I'm guessing that due to the ordering of the paths for the require() statement and due to there being two global.php files in the two directories, one of the global.php files gets called in place of the other.

    I guess I could go and edit the .php files in the forums directory to explicitly state require("./global.php") but that seems like a gross workaround.

    Can anyone help me out here?

    Thanks!
    AikiWeb Aikido Information

    Comment

    • John
      Senior Member
      • Apr 2000
      • 4042

      #3
      Which code set are you using? Is it the latest development version? The installation should be run with just the basic 1.1.1 code, and then upgraded. I obviously need to make myself more clear in the installation instructions.

      The paths called in the code are just relative paths, so there should not be a problem there. However I will look into the include_path setting in PHP to see if I can reproduce your problems.

      John
      John Percival

      Artificial intelligence usually beats real stupidity ;)

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎