Hi,
I am replicating a site on my local computer using Backup and migrate
and I am getting the following error
call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "layout_entity_menu_title" not found or invalid function name
Documentation says that this function is used in two places listed below. I am trying to figure out where my error could be coming from - is it from backupAndMigrate or from my theme layout?
Thank you in advance for any pointers.
call to layout_entity_menu_title()
-
layout_entity_admin_add_form
in core/modules/layout/
layout.entity.admin.inc
-
Render the form for adding a layout for an entity.
string reference to 'layout_entity_menu_title'
-
layout_menu
in core/modules/layout/
layout.module
-
Implements
hook_menu
().
Comments
Ok, so hard to tell where that error is coming from given the information we have here, but as an aid to diagnostics, and because you cannot guarantee that the docs are 100% correct, you may want to learn about the tool called 'grep'.
It is a linux command line tool that can quickly scan your codebase.
Like such:
user@server.com
blahblah/web : grep "function layout_entity" * -R
Which means starting from the web folder (the current folder ), run grep over all files and folders recursively, looking for "function layout_entity". It should return with the singular file being layout.module.
Anyhow, back to the problem at hand; your system is not finding the layout module. Check that the code is there under core/modules/layout. Check the database, system table to see it looks like this, where the 1 is in status column, to enable the module: