Error
Fatal error: Call to a member function load() on a non-object in ...\administrator\components\com_menus\models\item.php on line 613
Reproduce
Translation: Language = Dutch, Content elements = Menus
Select a menu item, e.g. Add a recipe (from the sample contents), and edit it
Results in Fatal error (in non-JoomFish file)
This is the function for the error up to and including line 613:
public function getItem($pk = null){// Initialise variables.$pk = (!empty($pk)) ? $pk : (int)$this->getState('item.id');// Get a level row instance.$table = $this->getTable();// Attempt to load the row.
``` $table->load($pk);
Functions gets called with $pk = Null, after initialising it's "(int) 462". Value for $table is "(boolean) false".
The menu.xml content has a line
<field type="params" name="params" translate="1" prehandler="fetchUrlRequest" >Params</field>
(the #__menu table has a field "params"). When you remove this params line from the content element, the fatal error is gone. (But it's no solution).
Error Fatal error: Call to a member function load() on a non-object in ...\administrator\components\com_menus\models\item.php on line 613
Reproduce
This is the function for the error up to and including line 613:
public function getItem($pk = null)
{
// Initialise variables.
$pk = (!empty($pk)) ? $pk : (int)$this->getState('item.id');
// Get a level row instance.
$table = $this->getTable();
// Attempt to load the row.
``` $table->load($pk);
Functions gets called with $pk = Null, after initialising it's "(int) 462". Value for $table is "(boolean) false".
The menu.xml content has a line
<field type="params" name="params" translate="1" prehandler="fetchUrlRequest" >Params</field>
(the #__menu table has a field "params"). When you remove this params line from the content element, the fatal error is gone. (But it's no solution).