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

Support Forum

Start ::  Extensions and Distributions Support ::  Modules ::  Problem Initilializing module

Moderated by: Support Team

Bottom
Problem Initilializing module

  • Link to this postingPosted: 15.07.2003, 07:19
    Profile
    Destruct
    rank:
    Freshman Freshman
    registered:
     July 2003
    Status:
    offline
    last visit:
    17.07.03
    Posts:
    4
  • Link to this postingPosted: 15.07.2003, 15:26
    Profile
    Infopro
    rank:
    Professional Professional
    registered:
     November 2001
    Status:
    offline
    last visit:
    17.06.04
    Posts:
    2122
    uhm, what module?

    -----
    Friends rock, bullshit walks
  • Link to this postingPosted: 15.07.2003, 15:40
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    @infopro It's a coding question... I'll field this one.

    @destruct It's fairly difficult to read code of the forums. What I would do as a debug is to put an echo $SQL after each SQL statement is formed. This will give you the SQL that is being executed. This will allow you to either spot an instant problem with the pntables array or your forming of the SQL. If you can't spot anything at this stage then you've got the SQL so paste this into phpMyAdmin and you may get some extra information here.

    -Mark

    -Mark
  • Link to this postingPosted: 16.07.2003, 01:02
    Profile Homepage
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    03.10.08
    Posts:
    13410
    -Mark

    -Mark

    ????

    didnt know you were skitzophrenic mate icon_wink

    -----
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Link to this postingPosted: 16.07.2003, 04:47
    Profile
    Destruct
    rank:
    Freshman Freshman
    registered:
     July 2003
    Status:
    offline
    last visit:
    17.07.03
    Posts:
    4
    Well I had tried that Mark but the problem was I wasn't getting an error, it was telling me it was initializing just fine although tables weren't appearing. I figured out problem was I missing the // on a line which should have been commented and that at least got me to the stage where I could view the SQL. I player around with the SQL and fgiured out that this line:
    Code
    PRIMARY key($rulescolumn[rid]))";

    was causing me problems. I changed it to:
    Code
    PRIMARY key(rid))";

    And it worked fine. What I do find confusing is that before making this change, the SQL statement was executing just fine in phpMyAdmin but it just wouldn't work on site. WOnder why that is.
  • Link to this postingPosted: 16.07.2003, 04:55
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    HammerHead-Mark

    -Mark

    ????

    didnt know you were skitzophrenic mate icon_wink


    Who me?

    Who Him?

    -Mark squared.....
  • Link to this postingPosted: 16.07.2003, 04:58
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    DestructWell I had tried that Mark but the problem was I wasn't getting an error, it was telling me it was initializing just fine although tables weren't appearing. I figured out problem was I missing the // on a line which should have been commented and that at least got me to the stage where I could view the SQL. I player around with the SQL and fgiured out that this line:
    Code
    PRIMARY key($rulescolumn[rid]))";

    was causing me problems. I changed it to:
    Code
    PRIMARY key(rid))";

    And it worked fine. What I do find confusing is that before making this change, the SQL statement was executing just fine in phpMyAdmin but it just wouldn't work on site. WOnder why that is.


    Reallly dificult to tell without having your code in front of me. The text wrapping on these forums really doesn't make this kind of diagnostic easy.

    Feel free to shoot be a copy of the code to markwest at PostNuke dot com as i'll take a further look.

    -Mark

Start ::  Extensions and Distributions Support ::  Modules ::  Problem Initilializing module

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula