JoomFish/jf-future — Issue #24: Fatal error (in com_menu) trying to translate a menu item
Author: quodo
Created: 2012-02-02 14:08:29+00:00
State: open

**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
```Params```
(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).