1
Seraph23
ADONewConnection: Unable to load database driver ''
  • 2005/11/18 10:47

  • Seraph23

  • Just popping in

  • Posts: 2

  • Since: 2005/11/17


Hi helpers! :)

I installed XOOPS CMS: all perfect.
I installed module ZenTrack (helpdesk). Module installation: perfect.
Want to start zentrack module itself:

Eroor message:
ADONewConnection: Unable to load database driver "

I googled along and find out that it has to be a general problem. Many users had it with postnuke, oracle php etc.

Because XOOPS itself is working fine I can say: php configurations as also apache2 config has been done super.

I cannot find any solution on this issue and maybe anyone of you knows the golden anwer already?

Thankful for EVERY serious support!
:]

Seraph

2
Anonymous
Re: ADONewConnection: Unable to load database driver ''
  • 2009/1/1 22:35

  • Anonymous

  • Posts: 0

  • Since: 0


Hello,

Do we need ADONewConnection with XOOPS ? any alternative solution ?


3
ghia
Re: ADONewConnection: Unable to load database driver ''
  • 2009/1/2 2:10

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The ADONewConnection is a general message and given for any type of db driver. Of course with XOOPS MySQL is used.

Three files starting with adodb-mysql should be existant in /modules/zentrack/includes/adodb/drivers and check also that dirname(__FILE__) returns a correct value.
Check with phpmyadmin, that all tables and records from the sql file exists.

4
Anonymous
Re: ADONewConnection: Unable to load database driver ''
  • 2009/1/2 12:44

  • Anonymous

  • Posts: 0

  • Since: 0


Hello Ghia,

How to clean some module to work with MySQL without ADODB abstraction layer ?

Example:

// this is the setup for the ADODB library
include($config['basepath'].'/include/adodb/adodb.inc.php');
$conn = &ADONewConnection($db_type);
$conn->PConnect($db_server, $db_user, $db_password, $db_database);

global $conn;
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
$sql = "SELECT ID from ".$config['table_prefix']."_members ORDER BY rank";
$recordSet = $conn->Execute($sql);

5
ghia
Re: ADONewConnection: Unable to load database driver ''
  • 2009/1/2 16:29

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


XOOPS has also it own abstraction layer for MySQL.
I am not sure if in the light of a possible further updating of the module, limiting it to the use of MySQL is a good thing.

6
Anonymous
Re: ADONewConnection: Unable to load database driver ''
  • 2009/1/2 20:57

  • Anonymous

  • Posts: 0

  • Since: 0


Sure, but what I'm looking for is how to clean the module ( above code as example ) from ADOD library.

The aim is this library must be include in Frameworks not inside each module that need it.



Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!