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

Support Forum

Start ::  PostNuke 0.7 Support ::  Core Modules & Blocks ::  pnBlocks error when calling block directly from "Blank" module

Moderated by: Support Team

Bottom
pnBlocks error when calling block directly from "Blank" module

  • Link to this postingPosted: 22.02.2008, 03:52
    Profile Homepage
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    I get a "member non object" error when trying to call blocks from a "blank" module I created. It works fine when I call the module directly, but when I set that module as the home page, I get the error. The pnBlocks seems like it's not getting the table names...

    Module is an "index.php" style module with no "main" function that just includes "header.php" then some output, then "footer.php". Any tips on to why this is "breaking" when it is called as the homepage (in settings) vs calling it directly?

    -----
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Link to this postingPosted: 22.02.2008, 10:17
    Profile Homepage
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    25.08.08
    Posts:
    2917
    Hi Nate.

    Welcome back! Just a thought but could it be an issue with your home.htm (theme)?

    -----
    David Pahl
    Zikula Support Team

  • Link to this postingPosted: 23.02.2008, 21:32
    Profile Homepage
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    Thanks 0 I guess I should mention, I should mention I'm using "classic" themes (non-Xanthia) and it's on a slightly older version of PN (.75)...

    I've tries both the pnuser.php and index.php style of "blank" themes which work if I call via index.php?module=Blank or module.php?name=Blank&file=index, but not if I set that Blank module as the homepage under settings. It's having a problem getting the blocks. An echo of the query it's getting hung up on reveals it's not finding the table names in pnBlocks.php.

    (I have my enhanced blocks mod installed, but that does not make significant changes to the query - only adds an extra field, etc..)

    -----
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...

Start ::  PostNuke 0.7 Support ::  Core Modules & Blocks ::  pnBlocks error when calling block directly from "Blank" module

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula