1
srmcatee
How is &xoops_getmodulehandler called?
  • 2006/8/19 11:02

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Hello,

I'm developing a PDF report for a XOOPS Module. I call a seperate LabelPDF.php page from one of my XOOPS screens. I'm trying to substantiate an object to build the labels.

I'm getting the error message:
Fatal error: Call to a member function on a non-object in

It's reffering to the &xoops_getmodulehandler function. What file do I need to include to have access to this. I've searched and cannot find the function.

Thanks in advance for your help!!!
Steve
ChurchLedger.com - A Xoops Module Developer

2
Dave_L
Re: How is &xoops_getmodulehandler called?
  • 2006/8/19 13:37

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If you're including mainfile.php, then that function should be defined.

Maybe the parameters you're passing to the function are not correct.

3
srmcatee
Re: How is &xoops_getmodulehandler called?
  • 2006/8/20 13:51

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Ok,

My Mainfile line is:

include_once "../../mainfile.php";


And I'm getting this error:
Notice [PHP]: Undefined variable: xoopsUser in file modules/oscmembership/PDFLabels.php line 74

So how is xoopsUser defined???

Thanks in advance for your time and assistance on this.
Steve
ChurchLedger.com - A Xoops Module Developer

4
srmcatee
Re: How is &xoops_getmodulehandler called?
  • 2006/9/2 17:06

  • srmcatee

  • Just popping in

  • Posts: 63

  • Since: 2005/8/22


Ahh,

I figured it out. Including the mainfile does do everything.

I had a function that was calling a nonGlobal variable and making everything break.

My bad :(

Thanks for the Assist!!!
Steve
ChurchLedger.com - A Xoops Module Developer

Login

Who's Online

182 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits