Fatal error: Call to undefined method mosMenu::mosDBTable()

ARUN Post in ERROR
0

This mostly happens after updating php to 5.3.X

You need to edit file named :   database.php which will be under includes folder  and add

EG :  /home/username/public_html/includes/database.php

===========================================================================

 class mosDBTable extends mosDBAbstractRow {

/** @var mosDatabase Database connector */
var $_db = null;

// ADD THIS FUNCTION….
    function mosDBTable($table=”, $keyname=’id’, $db=”) {
        $this->mosDBAbstractRow ($table, $keyname, $db);
}

===========================================================================

If it still shows a warning in some lines like :  /home/username/public_html/includes/Cache/Lite/Function.php

Edit the error line mentioned and add that as below :

line 100:
$result = call_user_func_array($target, $arguments);
to
$result = call_user_func_array($target, &$arguments);

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.