Ticket #8 (defect)

Opened 2 years ago

Last modified 2 years ago

Install() produces fatal error

Status: closed (worksforme)

Reported by: Mav Assigned to: somebody
Priority: minor Milestone:
Component: component1 Version:
Keywords: install() Cc:

Not sure if this is the right place to post, but... I've been trying to get the tag engine to run, but I can't get it to install the database tables. Either the coding I used for this is wrong, or the install() function has a bug. I've used this code to try and get the database tables installed:

<?php
require_once('adodb/adodb.inc.php');
$DB = NewADOConnection('mysql');
$DB->Connect('localhost', 'user', 'pass', 'db');
require_once('phptagengine.class.inc.php');
$pte = new phptagengine;
$pte->install();
?>

I think that should have worked... But it produces the following fatal error:

Dictionary driver '/usr/share/php/adodb/datadict/datadict-.inc.php' not available

Fatal error: Call to a member function ExecuteSQLArray() on a non-object in /var/www/testzone.dev/phptagengine/phptagengine.class.inc.php on line 1177

I know it should be a driver like datadict-mysql.php, and have tried to change line 1172 to $dict = NewDataDictionary($this->db, 'mysql'); to force it to mysql. But that didn't help.

I don't really need the install thing, but I suppose others do. But I think a .sql file with the database tables for manual adding them to the database would be nice too.

Change History

02/28/07 22:06:03: Modified by aking

  • status changed from new to closed.
  • resolution set to worksforme.

It works in my apps, so I don't think it's a bug in the code - perhaps a "include path" issue or something?

.sql files are a fine idea - if someone would like to be in charge of generating them for each DB that would be great.

Until then, the benefits of using ADOdb's SQL generation mandate it's usage.