PDA


View Full Version : vba_cmps_include_top.php on line 63


hiscl
11-28-2005, 12:08 PM
My Problems is ..

Fatal error: Call to a member function on a non-object in /home/descarga/public_html/foros/includes/vba_cmps_include_top.php on line 63



......


Line 63 SAY....

$pages = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "adv_pages WHERE name = '" . addslashes($getpage) . "'");

KW802
11-28-2005, 12:44 PM
Positive that you installed the correct version (CMPS for 3.5 on vB 3.5) and did the edits to /global.php?

hiscl
11-28-2005, 01:52 PM
Yes brother :)


// identify where we are
define('VB_AREA', 'Forum');
if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_template.php');
}


and

if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_top.php');
}
// #############################################################################
// ######################## START TEMPLATES & STYLES ###########################


and

if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_bottom.php');
}
// #############################################################################
// ######################### END TEMPLATES & STYLES ##

Brian
11-30-2005, 02:35 PM
You've downloaded the vB 3.0 files. If you go back to the download page, make sure to select the vB 3.5 version, and upload the files over your current ones that should take care of the problem.

hiscl
12-01-2005, 04:29 PM
the version is ... 3.51
and cmps for 3.5

Brian
12-01-2005, 04:52 PM
That line is not in the vB 3.5 version. I promise you that if you go back to the download page, be sure to select the vB 3.5 version (vB 3.0 is the default, so you have to change the option), and then take a look at that line you will see that it has "$db->query" instead of "$DB_site->query".

hornstar85
01-14-2006, 03:15 AM
I get the same error and the name of my rar file is vbadvanced_cmps_2_0_0_(vb_3_5)_

and im using 3.5.2


Just uploaded all the files again and everything is working this time. I think it must not have over written all the old files when i uploaded them.

All good now, and the problem is fixed.




Either download the correct version or try uploading them again.