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

Dizkus

Bottom
"Error: Xanthia not initialised" during New Installation
  • Posted: 27.09.2007, 17:35
     
    BladeBlade
    rank:
    Freshman Freshman
    registered:
     September 2007
    Status:
    offline
    last visit:
    01.10.07
    Posts:
    2
    I'm trying to do a clean installation of PN 0.764, but I get the following error after the database is created:

    Quote

    Uploaded Data
    pn_headlines updated.
    pn_module_vars updated.
    pn_users updated.
    pn_groups updated.
    pn_modules updated.
    pn_user_property updated.
    pn_admin_category updated.
    pn_admin_modules updated.
    pn_users updated.
    pn_group_membership updated.
    Settings successfully installed
    pnRender successfully installed
    Error: Xanthia not initialised


    This happens on WinXP with Apache 2.0.x, PHP5, Mysql 5.0, and clean empty databases. I'm working on a local machine, so no problems with FTP uploads that are missing files. I extracted the full zip-file with the code, so all files must be present.

    What else could possibly cause this?
  • Posted: 27.09.2007, 18:16
     
    pheski
    rank:
    Professional Professional
    registered:
     February 2005
    Status:
    offline
    last visit:
    09.04.08
    Posts:
    1480
    As you are using PHP5, you need to disable strict mode.

    Perhaps that would help?

    Peter

    --
    Peace
    ______________________________________
    The commonest cause of problems is solutions.
  • Posted: 27.09.2007, 20:09
     
    nestormateo
    rank:
    Professional Professional
    registered:
     September 2006
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    1450
    Or debugging the Xanthia initialization:


    in the modules/Xanthia/pninit.php file replace:

    Code

    if ($dbconn->ErrorNo() != 0) {
            pnSessionSetVar('errormsg', _XA_CREATETABLEFAIL." on $table...");
            return false;
        }


    with:

    Code

    if ($dbconn->ErrorNo() != 0) {
            echo $dbconn->ErrorMsg();
            echo " SQL: $create ";
            pnSessionSetVar('errormsg', _XA_CREATETABLEFAIL." on $table...");
            return false;
        }


    You'll get on the screen the error message returned by the MySQL server and the SQL code to detect what's wrong with it.


    If you want can post them here and get a disgnostic.


    --
    - Mateo T. -
    Mis principios... son mis fines
  • Posted: 01.10.2007, 14:29
     
    BladeBlade
    rank:
    Freshman Freshman
    registered:
     September 2007
    Status:
    offline
    last visit:
    01.10.07
    Posts:
    2
    It seems my problem here was indeed due to MySQL5 Strict mode being enabled. Thanks for the pointer.

    BTW, since this is a known issue, it seems strange that the installation script doesn't check for it... just like it checks for problematic PHP settings.
  • Posted: 01.10.2007, 18:12
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2975

    BladeBlade

    BTW, since this is a known issue, it seems strange that the installation script doesn't check for it... just like it checks for problematic PHP settings.


    I would suggest a Feature Request, but .7 is no longer being developed.. .8 does check, IIRC.


    --
    David Pahl
    Zikula Support Team

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula