Menu

#204 install - step 2

open
nobody
5
2004-09-01
2004-09-01
Anonymous
No

Name: raffa
Email: info@eroskit.com

Array ( [0] => stdClass [1] => __PHP_Incomplete_Class [2] => Directory [3] => adofieldobject [4] => adoconnection [5] => adofetchobj [6] => adorecordset_empty [7] => adodb_base_rs [8] => adorecordset [9] => adorecordset_array [10] => poc_installer ) Syntax error in file: /domains/eroskit.com/www/phpopenchat/include/adodb/drivers/adodb-mysql.inc.php

ADONewConnection: Unable to load database driver ''

Fatal error: Call to a member function on a non-object in /domains/eroskit.com/www/phpopenchat/include/class.Installer.inc on line 330

Discussion

  • jmhowitt

    jmhowitt - 2004-09-02

    Logged In: YES
    user_id=243198

    I had this problem and editied adodb-mysql.inc.php file as there were
    errors
    i changed PUBLIC to var in the following
    var $databaseType = 'mysql';
    var $dataProvider = 'mysql';
    var $hasInsertID = true;
    var $hasAffectedRows = true;
    var $metaTablesSQL = "SHOW TABLES";
    var $metaColumnsSQL = "SHOW COLUMNS FROM %s";
    var $fmtTimeStamp = "'Y-m-d H:i:s'";
    var $hasLimit = true;
    var $hasMoveFirst = true;
    var $hasGenID = true;
    var $isoDates = true; // accepts dates in ISO format
    var $sysDate = 'CURDATE()';
    var $sysTimeStamp = 'NOW()';
    var $hasTransactions = false;
    var $forceNewConnect = false;
    var $poorAffectedRows = true;
    var $clientFlags = 0;
    var $substr = "substring";
    var $nameQuote = '`'; /// string to use to quote identifiers and
    names
    and further down

    // Reference on Last_Insert_ID on the recommended way to simulate
    sequences
    var $_genIDSQL = "update %s set id=LAST_INSERT_ID(id+1);";
    var $_genSeqSQL = "create table %s (id int not null)";
    var $_genSeq2SQL = "insert into %s values (%s)";
    var $_dropSeqSQL = "drop table %s";
    This got rid of the problem above and got me furthere but i still can log
    in as there are problems with the database

    I am getting the message
    phpopenchat/include/adodb/drivers/adodb-mysql.inc.php:338
    [2] Wrong parameter count for mysql_connect()
    and i cannot see why as the schema has been set up ok and the relevant
    changes made in the config file

     
  • Nobody/Anonymous

    Logged In: NO

    there are on 523/524 two more lines to change from public to
    var :

    class ADORecordSet_mysql extends ADORecordSet{

    var $databaseType = "mysql";
    var $canSeek = true;

    so if you change this to the install STEP 2 will work ;o)

    bye alex

     
  • Nobody/Anonymous

    Logged In: NO

    Also, if you don't have current version of adodb, step 2
    won't work sometimes.. I got current and installed it in
    place of old one and I managed to get passed that to have
    template issues.. Which was merely a link issue in config file..

    Now?? I can't log in as admin..lmbo..
    One thing after another..

    xts

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.