Getting below error on http://educationechosystem.com/admin/appearance/settings/marinelli

Fatal error: Call to undefined function menu_get_menus() in public_html/sites/all/themes/marinelli/theme-settings.php on line 157

Comments

mavimo’s picture

Assigned: Unassigned » mavimo

Can you give me more info? Other modules or patch do you use on your site?

Mandakini_Kumari’s picture

Thanks for your reply we upgraded from drupal 6 to 7 so default menu module was not enable. Once I enable menu module it work perfect for me.

I am getting below message frequently
Notice: Undefined index: addvalue in line 3

Please let me know what setting change need to do?

mavimo’s picture

I think is a problem with update path from D6 to D7 and not a Marinelli issue, try with other theme and let us know if problem persists.

Lioz’s picture

Status: Active » Postponed (maintainer needs more info)
cayenne’s picture

Status: Postponed (maintainer needs more info) » Active

Well, I am sorry to report the same error.

Fresh install of D7, I uploaded the theme to /sites/all/themes and get the error when going to

/admin/appearance/settings/marinelli

Other pages seem to be okay, but of course we need to set settings.

There are no other installed modules.

And later, after reinstalling (fail) I also enabled the menu module and it seems to work.

Perhaps one could make the dependency explicit?

tomcatuk’s picture

RE:Cayenne. Confirmed, just did a clean install using the "minimal" installation, and this error appears. Enabling the menu module fixes this right enough. Dependancies need to be made clear.

Lioz’s picture

Status: Active » Needs review

@tomcatuk unfortunately theme info files don't support dependecies. However this information could be placed in the documentation.

mavimo’s picture

Status: Needs review » Closed (duplicate)
vegantriathlete’s picture

Version: 7.x-3.0-beta7 » 7.x-3.0-beta11
Priority: Critical » Major
Status: Closed (duplicate) » Active

This is still an issue with this release. Even though most people probably enable the Menu module, the error could be confusing for new users. I would recommend a note on the Project page (yes, I know there is a link in the right sidebar under Resources) pointing people to the Handbook.

Note: the README.txt file does point people to the Handbook. But, many new users may not even know how to get to that file. The Installation and requirements page in the handbook does specify that the core menu module is required. But, many new users may have overlooked the link in the right sidebar to the handbook and won't have seen that page.

ChuckZ’s picture

Other modules do the following before calling:

if (module_exists('menu')) {
$menu_options = menu_get_menus();
}

goodarzi121’s picture

Hi to all.
yeh.
1) set default another theme.
2) enable Menu module on Core.
3) set default marinelli theme again.

It's Solve!