ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Module Won't Fully Install

October 25, 2005 7:52pm

Subscribe [2]
  • #1 / Oct 25, 2005 7:52pm

    Mr. Wilson's avatar

    Mr. Wilson

    131 posts

    What might cause this?

    I upload a module and it shows up as expected in the module list in the control panel. I click Install. The hamsters go to work and the friendly text “Module Installed: My Module” appears. Information about the module appears as expected in exp_modules, and the module’s tables are all created just fine. Yet the module’s status is still listed as “Not Installed” and the module’s name does not link to the module’s control panel.

    An earlier version of this module with an almost identical install routine worked fine. What might I be missing?

  • #2 / Oct 25, 2005 8:49pm

    Paul Burdick's avatar

    Paul Burdick

    480 posts

    What does your query look in the install function for the exp_modules table?

  • #3 / Oct 25, 2005 8:52pm

    Mr. Wilson's avatar

    Mr. Wilson

    131 posts

    It looks like:

    $sql[] = "INSERT INTO exp_modules (module_id,
                                               module_name,
                                               module_version,
                                               has_cp_backend)
                                               VALUES
                                               ('',
                                               'Family Ties',
                                               '$this->version',
                                               'y')";
  • #4 / Oct 25, 2005 8:59pm

    Paul Burdick's avatar

    Paul Burdick

    480 posts

    Instead of Family Ties, try the class name of your module.

  • #5 / Oct 25, 2005 9:05pm

    Mr. Wilson's avatar

    Mr. Wilson

    131 posts

    Aha, that was it. Thanks, Paul! The developer docs didn’t mention that “module_name” was the class name, not the full name of the module (if different). I should have noticed the underscores and capitalization patterns in the names of a few of the other modules in the exp_modules table (e.g. Metaweblog_api), but it never even dawned on me. I’ll blame it on my cold.

  • #6 / Jun 19, 2007 2:56pm

    Rutger's avatar

    Rutger

    25 posts

    I’m going nuts, i really have the same problem as described, but i don’t get the module listed as installed after it did all the work correctly;

    $sql[] = "INSERT INTO exp_modules (module_id,
                                               module_name,
                                               module_version,
                                               has_cp_backend)
                                               VALUES
                                               ('',
                                               'im_online',
                                               '$this->version',
                                               'n')";

    in the class named im_online_CP

    And the table exp_modules lists;

    33      im_online      1.0      n

    Anyone has an idea?

  • #7 / Jun 21, 2007 9:18am

    Rutger's avatar

    Rutger

    25 posts

    Pretty please? 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases