JoomFish / joomfish-2.5

Joom!Fish 2.5 core development
http://www.joomfish.net/
34 stars 27 forks source link

Fatal error (in com_menu) trying to translate a menu item #24

Closed quodo closed 12 years ago

quodo commented 12 years ago

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).