Fork me on GitHub

Block Error When Module Not Active  Bottom

  • Hi there...

    I've built a module and now I want to display statistics in a block. The block is hacked version of 'first' from ExampleDB. I simply return the last 5 entries from the modules and display it in a block. Easy enough except that the block gives an error if the module is not in use. Go to the main module and it works fine...

    Any ideas how to fix this?

    (sorry if i've missed something obvious!)
  • What's the error, and on what version of Zikula/PostNuke? I'd guess you're missing your pntables information, in which case you'll have to do a pnModDBInfoLoad('yourmodname') before doing any database queries.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Thanks for the quick response, the error was "Invalid table-key[table name] passed to _getAllColumns Stacktrace"

    Adding pnModDBInfoLoad('yourmodname') as you suggested has fixed it.

    Thank you icon_biggrin

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