Call to undefined method Fuel_advanced_module::info()
Hello,
I created the projects module by following this guide:
http://www.getfuelcms.com/blog/2010/12/19/learning-fuel-cms-part-3-creating-modulesEarlier I also had the same error after creating another module.
When I create or edit a project and hit the save button I get the error:
Fatal error: Call to undefined method Fuel_advanced_module::info() in /*/fuel/modules/fuel/models/base_module_model.php on line 1470
So I have been looking into my base_module_model model at the following function:
public function display_name($values)
{
$module =& $this->get_module();
$key = $module->info('display_field');
if(isset($values[$key]))
{
return (is_array($values[$key])) ? json_encode($values[$key]) : $values[$key];
}
else
{
return "";
}
}
The $module->info() doesn't seem to exist, so I looked into the $module object, and it seems to be filled correctly.
Any idea what causes this error?
Comments
public function get_module() { return $this->fuel->modules->get(strtolower(get_class($this)), FALSE); }
Edit: It worked for me so I should keep this change in the core file correct?