1
I'm using the XOOPS 2.0.5.1 and i got this notices (i have E_ALL in my php.ini) when i load the homepage:
Warning: Undefined index: default_theme in /home/httpd/html/portal.ee.teiath.gr/class/smarty/plugins/resource.db.php on line 71
Warning: Undefined index: default_theme in /home/httpd/html/portal.ee.teiath.gr/class/smarty/plugins/resource.db.php on line 74
Warning: Undefined variable: file_path in /home/httpd/html/portal.ee.teiath.gr/class/smarty/plugins/resource.db.php on line 96
I don't know if this notices appear in v2.0.5.2.
Also the third notice is a bug...
To fix 'em you must correct this lines:
In class/smarty/plugins/resource.db.php on line 71:
It says:
if ($GLOBALS['xoopsConfig']['default_theme'] != 'default') {
Change to:
if (isset($GLOBALS['xoopsConfig']['default_theme']) && $GLOBALS['xoopsConfig']['default_theme'] != 'default') {
In class/smarty/plugins/resource.db.php on line 96
It says:
if ($file_path != "" && file_exists($filepath)) {
Change to:
if ($filepath != "" && file_exists($filepath)) {