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

Dizkus

Bottom
pnBlocks error when calling block directly from "Blank" module
  • Posted: 22.02.2008, 03:52
     
    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...
  • Posted: 22.02.2008, 10:17
     
    AmmoDump
    rank:
    Team Member Team Member
    registered:
     December 2003
    Status:
    offline
    last visit:
    04.12.08
    Posts:
    2992
    Hi Nate.

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

    --
    David Pahl
    Zikula Support Team
  • Posted: 23.02.2008, 21:32
     
    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...

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula