PDA

View Full Version : Fatal error: Call to a member function on a non-object in .........


diesel08
11-26-2005, 06:04 AM
i just upgraded to 3.5.1 and now im getting this error.. wasnt getting it with 3.0.7

the line bold is the one getting called for the error.

// ---------------------------------------------------
// Start Set PHP Environment
// ---------------------------------------------------

error_reporting(E_ALL & ~E_NOTICE);

// ---------------------------------------------------
// End Set PHP Environment
// ---------------------------------------------------

// ---------------------------------------------------
// Start Define Important Constants
// ---------------------------------------------------

define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vbchat');

// ---------------------------------------------------
// Start Require Globalized Settings
// ---------------------------------------------------

require_once('./global.php');
require_once('./includes/functions_user.php');
require_once('./includes/functions_bbcodeparse.php');
require_once('./includes/functions_newpost.php');

$DB = $DB_site; // What? Its easier to write ^_^;
$chat_page = ""; // Template Variable

$Chat_Options = $DB->query_first("select * from ".TABLE_PREFIX."vbchat_datastore where did='1'");
$Group_Perms = unserialize($Chat_Options['d_groupperms']);

Marco van Herwaarden
11-26-2005, 06:22 AM
This is a vB3.0 script. By doing the $DB = $DB_site, you will mess up everything.

Please use a real vB3.5 script.