Hi, 
I am replicating a site on my local computer using Backup and migrate

screenshot

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

Accepted answer

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:
 

Most helpful answers

You're welcome! And good job sorting it. 

I've found in the past that FTP transfers will silently fail, resulting in this sort of failure. So I've learned to have multiple backups, but still do fresh install of core and extra modules and themes before adding my custom code and bringing in the database.

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:
 

@onyx, thanks a lot! 
I checked code in /core/modules/layout and was VERY surprised that one file where this function is called was missing. I copied this file and was able to import my backup 

core/modules/layout/layout.entity.admin.inc

 

Thanks a lot!!

You're welcome! And good job sorting it. 

I've found in the past that FTP transfers will silently fail, resulting in this sort of failure. So I've learned to have multiple backups, but still do fresh install of core and extra modules and themes before adding my custom code and bringing in the database.