Menu Lists

Create flexible menus straight from October CMS admin

Back to Menu Lists Support

CianH
CianH

Hi There,

Ive just installed Menu Lists but im gettting an error on the front end:

Call to a member function getDefaultSettings() on null /var/www/public_html/plugins/flynsarmy/menu/components/Menu.php line 45

* @return void
 */
public function onRender()
{
    $menu = MenuModel::find($this->property('menu_id', 0));
    // Grab a list of menu settings
    $settings = $menu->getDefaultSettings();

    // Update $settings with any inline paramters they specified on their {% component %}
    foreach ( $settings as $key => $setting )
        $settings[$key] = $this->property($key, $setting);
    $settings['menu'] = $menu;
    $settings['selected_item'] = $this->property('selected_item', '');
Flynsarmy
Flynsarmy

Hey Cian,

Have you selected a menu from the menu component attached to your layout?

1-2 of 2