1
I'm just starting out with Xoops and on a steep learning curve, but this problems got me completely stalled, so I'd be grateful for advice.
I wasn't able to view the newbb forum on my website, and when I activated the bug detection, I got this message:
"Fatal error: Call to a member function addJS() on a non-object in /-/-/-/-/-/-/-/-/-/-/-/htdocs/modules/newbb/header.php on line 57"
Here's what I reckon is the relevant bit of the script:
$xTheme->addJS(XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/include/js/newbb_toggle.js");
$xTheme->addJS(null, null, 'var toggle_cookie="'.$forumCookie['prefix'].'G'.'";');
I've checked, and newbb_toggle.js does exist and seems to be in the right place (include/js), but I don't even know where to begin looking for the forumCookie thing.
All help (in extremely simple language) greatly appreciated.
Thanks
PS I found two posts from 2008 with the identical problem, but they weren't resolved. Hope I have better luck