Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHPBB2 contribution Fatal error:


Guest

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                : [email protected]
*
*   $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

Link to comment
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

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...