1
Spiguy
Blank page in sections module
  • 2004/3/6 1:19

  • Spiguy

  • Just popping in

  • Posts: 18

  • Since: 2002/3/19


Got a small issue...
Version 2.0.5.2
Module with problem is sections (standard version)

php debug gives this:

Notice: Undefined variable: xoopsUserIsAdmin in /home/fantasya/public_html/header.php on line 91

Fatal error: Call to a member function on a non-object in /home/fantasya/public_html/templates_c/site^theme.html on line 6

Everything else works fine. I have checked that line in header.php on another site and it is the same...
$xoopsTpl->assign(array('xoops_isuser' => true, 'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin));


I have deleted the file in the templates_c directory. What could be the problem here?? Where else would I look for the xoopsUserIsAdmin variable?

Thanks

2
Spiguy
Re: Blank page in sections module
  • 2004/3/6 3:25

  • Spiguy

  • Just popping in

  • Posts: 18

  • Since: 2002/3/19


UPDATE:
the fatal error on line 6 refers to this line in my theme.html file:

$GLOBALS['xoopsTpl']->assign( 'xoops_cmod', $dirname );

Thougths on what is wrong with this?

Login

Who's Online

222 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 222


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