Mamboo CMS – Fatal error: Call to undefined method mosMenu::mosDBTable()
Fatal error: Call to undefined method mosMenu::mosDBTable() in /home/user/public_html/mambo/includes/core.classes.php on line XXX
Resolution:
1. Open /include/database.php in an editor
2. Add the given function just after “var $_db = null;”
function mosDBTable($table=”, $keyname=’id’, $db=”) {
$this->mosDBAbstractRow ($table, $keyname, $db);
}
3. Save and upload database.php
4. If you getting any warning now on /includes/Cache/Lite/Function.php
Replace
$result = call_user_func_array($target, $arguments);
with
$result = call_user_func_array($target, &$arguments);
The issue should be completely fixed now. :)
Resolution:
1. Open /include/database.php in an editor
2. Add the given function just after “var $_db = null;”
function mosDBTable($table=”, $keyname=’id’, $db=”) {
$this->mosDBAbstractRow ($table, $keyname, $db);
}
3. Save and upload database.php
4. If you getting any warning now on /includes/Cache/Lite/Function.php
Replace
$result = call_user_func_array($target, $arguments);
with
$result = call_user_func_array($target, &$arguments);
The issue should be completely fixed now. :)
Comments
Post a Comment