Title: Fatal error: Call to undefined function generate_get_layout()
Last modified: August 22, 2016

---

# Fatal error: Call to undefined function generate_get_layout()

 *  Resolved [liambatkins](https://wordpress.org/support/users/liambatkins/)
 * (@liambatkins)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/)
 * Hi there – I absolutely love this theme.
 * I recently moved a site from one host to another, but on the same domain.
 * It’s now however throwing up a host of strange errors.
 * The homepage was slightly modified, but the errors it’s throwing up are beyond
   me.
 * Fatal error: Call to undefined function generate_get_layout() in /home/themg/
   public_html/XXXXXX/wp-content/themes/generatepress/inc/extras.php on line 33
 * Could anyone help, I would be so grateful!
 * Liam

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905215)
 * Hi Liam,
 * generate_get_layout() is a new function found in functions.php – has this file
   been modified? Did you update the theme completely?
 * Let me know 🙂
 *  Thread Starter [liambatkins](https://wordpress.org/support/users/liambatkins/)
 * (@liambatkins)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905218)
 * Hi Tom,
 * Thanks so much for making contact.
 * Umm, I don’t *think* so. We had someone who helped to modify the homepage to 
   add some further widgets and we can’t make contact with him.
 * Can I copy n paste the functions code into this page to show you?
 * Liam
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905219)
 * That may be messy.
 * I would try re-updating the site.
 * 1. Download a fresh copy of GeneratePress from this site.
    2. Replace all files
   in “wp-content/themes/generatepress” via FTP with your newly downloaded version.
 * Let me know how it goes.
 *  Thread Starter [liambatkins](https://wordpress.org/support/users/liambatkins/)
 * (@liambatkins)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905221)
 * Thanks Tom.
 * Will I not lose any customisations made before hand if I did this?
 * Liam
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905222)
 * Have you made any customizations to the core theme files?
 * Any changes made using the theme options in the Dashboard won’t be touched by
   replacing the files.
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905336)
 * Were you able to get this fixed?
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905506)
 * Going to go ahead and mark this as resolved.
 * Let me know if you’re still having troubles with it.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal error: Call to undefined function generate_get_layout()’ is closed
to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-generate_get_layout/#post-5905506)
 * Status: resolved