Jump to content
Sign in to follow this  
JustCoral

PHPBB2 contribution Fatal error:

Recommended Posts

when i try to load the forum or enter the administer site i get this eror

Fatal error: Cannot instantiate non-existent class: sql_db in /home/justco2/public_html/includes/modules/phpbb2/includes/db.php on line 60

<?php
/***************************************************************************
*                                 db.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : support@phpbb.com
*
*   $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}

switch($dbms)
{
case 'mysql':
 include($phpbb_root_path . 'db/mysql.'.$phpEx);
 break;

case 'mysql4':
 include($phpbb_root_path . 'db/mysql4.'.$phpEx);
 break;

case 'postgres':
 include($phpbb_root_path . 'db/postgres7.'.$phpEx);
 break;

case 'mssql':
 include($phpbb_root_path . 'db/mssql.'.$phpEx);
 break;

case 'oracle':
 include($phpbb_root_path . 'db/oracle.'.$phpEx);
 break;

case 'msaccess':
 include($phpbb_root_path . 'db/msaccess.'.$phpEx);
 break;

case 'mssql-odbc':
 include($phpbb_root_path . 'db/mssql-odbc.'.$phpEx);
 break;
}

// Make the database connection.
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
if(!$db->db_connect_id)
{
  message_die(CRITICAL_ERROR, "Could not connect to the database");
}

?>

 

Can someone please advise me of my error!

thanks

scott

Share this post


Link to post
Share on other sites

Hi Scott,

 

I have been working on this contribution for a couple of days now. After going through all the forums, I have found the fix to your error.

 

In catalog/includes/configure.php

 

Change:

  define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

TO:

 

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Good Luck,

David

Share this post


Link to post
Share on other sites
Hi Scott,

 

I have been working on this contribution for a couple of days now. After going through all the forums, I have found the fix to your error.

 

In catalog/includes/configure.php

 

Change:

 ?define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

TO:

 

 ?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

Good Luck,

David

nope still have the same problem

Share this post


Link to post
Share on other sites

There is no class defined for sql_db you need to define the class sql_db in classes.

 

I have my phpbb installed using seperate db and hyperlinks so have not used a contribution thus do not know the layout of the contribution.

 

so you either point this in the direction of where the class is defined or define the class.

 

Is the contribution using the osc configure.php for the defines or is it using phpbb config or are you using osc configure.php and defining the phpbb setup by using a require to the phpbb config


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×