1
hafez
$xoopsModule , blank page
  • 2007/9/27 6:58

  • hafez

  • Just popping in

  • Posts: 3

  • Since: 2007/1/24


Hi all,
I have an problem with the article module that on one of the admin pages, I get the blank page, I debug the problem and I found this error

Call to a member function getVar() on a non-object


that happened when I try to use $xoopsModule to call getVar() function, if I need to this object($xoopsModule) to be available what the files that I need to include, is it only the mainfile.php or there anything else.

Thanks for help.
hafez

2
kaotik
Re: $xoopsModule , blank page
  • 2007/9/27 8:47

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


first try:
global $xoopsModule;

You will need to check if $xoopsModule is being called from inside a function or not.
If not check to see if $xoopsModule is being called before xoops_cp_header();
Which version of XOOPS are you using?
$xoopsModule is declared either at line:
xoops_cp_header();
or at:
require_once '../../../include/cp_header.php';
I don't remember which so you will have to test.

Login

Who's Online

325 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 325


more...

Donat-O-Meter

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

Latest GitHub Commits