Quote:
Originally Posted by SON240SX
I tried installing vbGarage 3.1.1 on vBulletin v3.6.7 and I get this error:
What's going on?
EDIT:
I guess this doesn't work with vBulletin 3.6.7
Waiting paitently for 4.x.x
Fatal error: Call to a member function query_first() on a non-object in /home/xxxxx/forums/admincp/install_vbgarage.php on line 321
In the code it points to this:
Code:
if (!$preexists = $DB_site->query_first("SELECT templateid FROM " . TABLE_PREFIX . "template WHERE title = '" . addslashes($title) . "' AND styleid = $styleid")){
$result = $DB_site->query("
INSERT INTO " . TABLE_PREFIX . "template
(styleid, title, template, template_un, dateline, username, version)
VALUES
($styleid,
'" . addslashes("$title") . "',
'" . addslashes("$template") . "',
'" . addslashes("$template_un") . "',
" . TIMENOW . ",
'" . addslashes($bbuserinfo['username']) . "',
'" . addslashes($vboptions['templateversion']) . "')
");
}
|
I get the same error. Anyone know a fix for this? Looks like WtwSkippy managed to install this on the same ver. I'm using.
As for the error above, I think I found it.
In your vbgarage.php find
$pagenav = construct_page_nav($garagecount[garages],"vbgarage.php?$session[sessionurl]do=$_REQUEST[do]&perpage=$perpage");
and change to
$pagenav = construct_page_nav($garagecount[garages],"vbgarage.php?$session[sessionurl]do=$_REQUEST['do']&perpage=$perpage");