Failed to load module  Bottom

  • I'm trying to create a new module using the module template. It's a simple module that stores a list of info, and you can add items or delete, etc.

    I keep running into the same problem. Everything works great except when I try to add or modify an entry. I keep getting: "Failed to load module staff ( At function: "create" )"

    This is where the module is called, after some one presses submit to record a new entry..

    Code

    $output->FormStart(pnModURL('staff', 'admin', 'create'));



    Any ideas as to what could be causing this problem??

    please? :D
  • There's some syntax error in the Create function, such as a misplaced/unclosed { or " or ' that invalidates the function, so it's not registering as a function. It could even be in a function appearing above it, in the case of an unclosed bracket or quote, which makes it see it all as part of one big function. Try moving the function to the top of the file and try it there, if it works then, then the problem must be in one of the functions that was above it. A text editor highlighting pairs of matching brackets helps, such as EditPad Pro, or Gedit or Kword (I think) under Linux.
  • What version of postnuke are you using? I'm using .75 and when trying to install 3rd party modules, this happens to me sometimes. The simple solution that I found to solve this problem for me is the "[" instead of "{" when I added a link in the "Main Menu" for "Blocks".

    Hope that helps.
  • 0 users

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