19
Quote:
But a new bug is introduced. Try to open the control panel home results in a whitepage and following fatal error:
Fatal error: Call to a member function getVar() on a non-object in /www/htdocs/vccaste/modules/news/admin/menu.php on line 73
I am having a problem here.
I have created a conditional Tab in /admin/menu.php:
global $xoopsModule;
//...
if ($xoopsModule->getVar('version') != 167) {
$i++;
$adminmenu[$i]['title'] = _MI_NEWS_UPGRADE;
$adminmenu[$i]['link'] = "admin/upgrade.php";
$adminmenu[$i]['icon'] = "images/icons/update.png";
$adminmenu[$i]['icon_small'] = "images/update.png";
}
and it works fine there, as it should.
However, somehow when we go to Control Panel:
http://localhost/xtest4/admin.phpit generates the error reported by fdeconiac.
I guess, the Core is checking for something and is getting confused.
Any Core expert who could help solving it?
You can download the News for testing
here