Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: 1 - 2 [+1]

Bottom
pn750 and multisite module
  • Posted: 18.11.2004, 12:09
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    Can anyone help please.

    After installing 750 to my local machine and setting up the multisite requirements e.g. folders and scripts the following error message appears.

    ADONewConnection: Unable to load database driver ''


    Fatal error: Call to a member function on a non-object in h:\inetpub\wwwroot\canines\includes\pnAPI.php on line 430

    I am presently running a multisite using pn723 on a non win machine with the same structure and this works fine.

    I have not tried to install 750/multisite yet on the linux server yet.
    (see below)

    Any pointers as to what may be causing this? apache config, hosts file etc

    I should also say that I access the database as user root with a blank password.


    Hope someone can help

    I have since tried on installing pn750 multisite enabled with the same result.
    ADONewConnection: Unable to load database driver ''


    Fatal error: Call to a member function on a non-object in h:\inetpub\wwwroot\canines\includes\pnAPI.php on line 430


    can naybody assist.
  • Posted: 23.11.2004, 19:52
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    [quote="mgarcia001"]Can anyone help please.

    After installing 750 fresh onto my server and setting up the multisite requirements e.g. folders and scripts etc the following error message appears.

    ADONewConnection: Unable to load database driver


    Help needed urgently
  • Posted: 24.11.2004, 03:18
     
    InvalidResponse
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    ..what's on line 430 in pnAPI.php? I'm not all that familiar with multi-sites.. but something is possibly missing or misplaced.

    --
    http://www.invalidresponse.com
  • Posted: 24.11.2004, 07:01
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110

    Quote

    what's on line 430 in pnAPI.php? I'm not all that familiar with multi-sites.. but something is possibly missing or misplaced.


    I thought I was a lone voice for a minute, thanks for the reply...
    I thought as multisite the module ships with the core there would be more support available alas not so.

    I might say that as a single site this does not occur in mulisites PN uses the config.php in the root directory to ascertain if a personal config exists and if so where (where_is_person) if it does, then the config.php which lives in folder parameters is used to access the database etc as is the pntables.php which has been set such that certain shared files are give the sitename in hard code as opposed to $prefix.

    I do hope you can assist

    Much appreciated

    Michael

    The following are the lines in question

    starting at line number # 409

    /**
    * Initialise DB connection
    * @return bool true if successful, false otherwise
    */
    function pnDBInit()
    {
    // Get database parameters
    $dbtype = $GLOBALS['pnconfig']['dbtype'];
    $dbhost = $GLOBALS['pnconfig']['dbhost'];
    $dbname = $GLOBALS['pnconfig']['dbname'];
    $dbuname = $GLOBALS['pnconfig']['dbuname'];
    $dbpass = $GLOBALS['pnconfig']['dbpass'];
    $pconnect = $GLOBALS['pnconfig']['pconnect'];

    // Start connection
    $GLOBALS['pndbconn'] =& ADONewConnection($dbtype);
    if ($pconnect) {
    $dbh =& $GLOBALS['pndbconn']->PConnect($dbhost, $dbuname, $dbpass, $dbname);
    } else {
    $dbh =& $GLOBALS['pndbconn']->PConnect($dbhost, $dbuname, $dbpass, $dbname);
    }
    if (!$dbh) {
    //$dbpass = "";
    //die("$dbtype://$dbuname:$dbpass@$dbhost/$dbname failed to connect" . $dbconn->ErrorMsg());
    die("\n\n\n\n\n\n\n<center>\n

    Problem in Database Connection

    \n

    \n
    This Website is powered by PostNuke
    \n\"Web \"ADODB\"PHP
    \n
    Although this site is running the PostNuke software
    it has no other connection to the PostNuke Developers.
    Please refrain from sending messages about this site or its content
    to the PostNuke team, the end will result in an ignored e-mail.
    \n</center>\n\n");
    }
    global $ADODB_FETCH_MODE;
    $ADODB_FETCH_MODE = ADODB_FETCH_NUM;

    // force oracle to a consistent date format for comparison methods later on
    if (strcmp($dbtype, 'oci8') == 0) {
    $GLOBALS['pndbconn']->Execute("alter session set NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS'");
    }

    return true;
    } [/quote]
  • Posted: 24.11.2004, 07:29
     
    InvalidResponse
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    So, this is line 429:
    global $ADODB_FETCH_MODE;

    and this is line 430?
    $ADODB_FETCH_MODE = ADODB_FETCH_NUM;

    ..seems odd to throw an error after the ADOdb lib has been initialized & the connection returned true.. I don't have any files in front of me, but I'm hoping Mark or someone else with experience in multisites can help you more than I can from a snippet of code..

    --
    http://www.invalidresponse.com
  • Posted: 24.11.2004, 09:03
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    This is line 428
    $dbh =& $GLOBALS['pndbconn']->PConnect($dbhost, $dbuname, $dbpass, $dbname);

    which is where the error is supposed to be:-

    Error message

    ADONewConnection: Unable to load database driver ''


    Fatal error: Call to a member function on a non-object in /var/www/www.animalactors.tv/includes/pnAPI.php on line 428

    So, this is line 429: No # 433
    global $ADODB_FETCH_MODE;

    and this is line 430? No #434
    $ADODB_FETCH_MODE = ADODB_FETCH_NUM;


    Thanks again
  • Posted: 24.11.2004, 19:59
     
    InvalidResponse
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    ..might be a silly question, but are persistent connections enabled in your PHP config file (php.ini)?

    --
    http://www.invalidresponse.com
  • Posted: 24.11.2004, 20:55
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    my php.ini shows persistence to be on.


    mysql.allow_persistent On On
    mysql.default_host no value no value
    mysql.default_password no value no value
    mysql.default_port no value no value
    mysql.default_socket no value no value
    mysql.default_user no value no value
    mysql.max_links Unlimited Unlimited
    mysql.max_persistent Unlimited Unlimited


    Michael
  • Posted: 25.11.2004, 08:00
     
    InvalidResponse
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    21.10.07
    Posts:
    2423
    > bump <

    ..does anybody else know what might be wrong here?

    --
    http://www.invalidresponse.com
  • Posted: 25.11.2004, 12:09
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    28.11.08
    Posts:
    13417
    Could try this topic: http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=13159&highlight=adonewconnection+multisites

    and maybe this: http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=16788&highlight=adonewconnection+multisites

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 28.11.2004, 05:00
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110

    HammerHead

    Could try this topic: http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=13159&highlight=adonewconnection+multisites

    and maybe this: http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=16788&highlight=adonewconnection+multisites


    Thanks for the comment but, been there done that, no joy.

    Come on guys lets put our collective heads together to resolve this issue its definatley a 750 issue and Multisite ships with the core release. .



    And pleeeeeeeeease no more RTFM suggestions

    Thanks again

    Mgarcia
  • Posted: 28.11.2004, 07:21
     
    Dr.No
    rank:
    Freshman Freshman
    registered:
     November 2004
    Status:
    offline
    last visit:
    29.11.04
    Posts:
    5
    !
    Hi, I believe I have found the answer to this problem. I have posted it here

    http://forums.postnu…pic&p=134817#134817


    Dr.No

    http://www.rickonslow.com
  • Posted: 01.12.2004, 17:26
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    Have resolved some issues the following has reared its ugly head, any ideas anyone?
    Call to undefined function: xanthia_skins_install() in /var/www/www.animalactors.tv/modules/Xanthia/pnadminapi.php on line 1053

    I am not convinced that things are what they should be, the variable $prefix in pntables.php which is set by the following:- $prefix = $pnconfig['prefix'];
    does not return any value if displayed.

    In which file are these variables contained?


    Mgarcia
  • Posted: 04.12.2004, 08:33
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    It has been some time since any help has been forthcoming on this how can I up this problem so that members of the core can assist.

    Multisites was a main reason for going the way of PostNuke and for me any way is a must.

    If any members of the PostNuke core team read this can I please receive a response.


    Mgarcia
  • Posted: 10.12.2004, 03:21
     
    mgarcia001
    rank:
    Helper Helper
    registered:
     June 2003
    Status:
    offline
    last visit:
    28.02.08
    Posts:
    110
    Thanks to everybody who assisted!
    this thread is now complete

    Mgarcia

Goto page: 1 - 2 [+1]

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula