Fork me on GitHub

Can I Error Check Module Installation?  Bottom

  • Can someone suggest a way that I can test to see if a module has installed properly. Say for instance looking in msSQL for a table or something? I am simply trying to identify where the error is occuring.

    The problem I have is that the modules admin page says that the module has been activated but will not display it (this happens with ANY new modules I try to add).

    Is it possible that I have made a mistake at some point with the PN permissions system or on the folders themselves. In particular, what would cause the icon for the new module not to display in the administartion menu?
  • Okay, well, you can download a beta module called pnModDebug from http://pnflashgames.com. You may also want to verify that the module is in fact initialized and activated in your Modules list (Administration -> Modules). pnModDebug shows you all related permissions to a given module, as well as some filesystem permissions. It also shows you DB info.

    That module has evolved into pnSnapshot which will do autobackups anytime you initialize, update, or remove a module. pnSnapshot is not yet available, however.
  • Thanks very much. Think I'm getting somewhere now. I set-up pnModDebug and when I selected 'View PostNuke Info' from the main pnModDebug page, it gave me the following error:

    Failed to load module pnModDebug ( At function: "viewPN" )

    Do you think this might be the root of my problem when viewing other new modules? Any ideas what the message is telling me? I can offer more info if it wold be helpful... what would you need?
  • No tommy3, I apologize. That module is like in alpha stage (0.2) so some of the links don't work. That one and the "edit configuration" link is broken. What you need to do is click on "view modules" and then find the one you are worried about. Click "view" for that module and you should be able to see modt of the important information about it. All of those sub-menus should work fine. Just be sure to read the notes on all the screens as they explain what you are looking at.
  • Ahh OK. I have generated a dump and compared two modules and the only thing that appeared significant to me was "Error getting module variables. 0 found." I also had "Error getting module tables. 0 found." but that appeared on working modules which I do understand.

    If I sent you the dump would you be prepared to cast an eye over it?
  • First of all, what module are you having trouble with?

    Second, make sure to read the notes on the Module Vars and DB Information pages. If the module doesn't use any module variables or tables then you won't find any. It could also be that the variables are stored under some name other than the module name, in which case pnModDebug will not be able to find them. Same goes for the tables. I would be glad to look at the dump, just not sure if it would help.
  • Does the module have an admin function? If they have no admin functions then they won't show up.

    --
    Home Page | Find on Facebook | Follow on Twitter
  • The problem occurs with ANY new module that I try to install. Those I have tried to install do have admin functions and the installation runs fine on my test server at home. The problem is not with my web host, I checked. What would stop the admin icon being shown? Is there a set of core Postnuke files that handle all module installations and administration? Perhpas I could check those files or even install them again?

This list is based on users active over the last 60 minutes.