Title: Fatal error: Uncaught Error
Last modified: December 10, 2018

---

# Fatal error: Uncaught Error

 *  [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/)
 * Hello,
 * After having updated the theme, my website front-end is showing this error message:
 * Fatal error: Uncaught Error: Call to undefined function generate_do_element_classes()
   in /home/adoptpro/public_html/adoptprof.be/wp-content/themes/generatepress_child/
   index.php:20 Stack trace: #0 /home/adoptpro/public_html/adoptprof.be/wp-includes/
   template-loader.php(74): include() #1 /home/adoptpro/public_html/adoptprof.be/
   wp-blog-header.php(19): require_once(‘/home/adoptpro/…’) #2 /home/adoptpro/public_html/
   adoptprof.be/index.php(17): require(‘/home/adoptpro/…’) #3 {main} thrown in /
   home/adoptpro/public_html/adoptprof.be/wp-content/themes/generatepress_child/
   index.php on line 20
 * Could you help me to resolve that please?
 * Thank you in advance!
 * Regards,
    Issam

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

 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10966691)
 * Hi there,
 * `generate_do_element_classes()` is a new function in GP 2.2.
 * If your child theme is using it, you need to make sure your parent theme is running
   at least 2.2.
 * Let me know if that helps or not 🙂
 *  Thread Starter [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10967645)
 * Thank you for your answer.
 * I did check the parent theme version installed, and indeed it is 2.2.1
 * Thank you for help!
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10970072)
 * In that case, the function should be defined: [https://github.com/tomusborne/generatepress/blob/2.2.1/inc/markup.php#L20](https://github.com/tomusborne/generatepress/blob/2.2.1/inc/markup.php#L20)
 * Perhaps your server has caching which is still serving the old files?
 *  Thread Starter [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10970888)
 * I renamed the child theme and re installed it through the zip file. Then I copied
   functions.php and styles.css from the last child version and things seem to be
   right.
 * Could this be a solution?
 * Thank you!
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10971580)
 * As long as the parent theme is installed correctly, you should be good to go.
 * Make sure your child theme `functions.php` file only has your custom functions
   in it. It shouldn’t have anything from the parent theme `functions.php` file.
 *  Thread Starter [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10972032)
 * Thank you. Yes, my child theme functions.php file contains only the custom functions.
 * I have one last question about the child theme please, is it possible that it
   doesn’t contain any index.php file?
 * Thank you in advance!
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10976572)
 * Yes, it doesn’t have to. You would only need an `index.php` file if you need 
   to overwrite the one that exists in the parent theme.
 *  Thread Starter [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10977318)
 * Thank you so much for your support!
 * Best regards,
    Issam
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-10982083)
 * No problem! 🙂
 *  Thread Starter [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-11160783)
 * Hello Tom,
    I hope you’re doing well. Is it possible to delete this thread from
   your forum please because it is appearing on the first searching page on Google.
 * Thank you for your comprehension!
    Regards.
 *  Theme Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-11161113)
 * Hi there,
 * Unfortunately, I don’t have control over topics here on WordPress.org. You could
   try asking the moderators, but I don’t believe they delete topics for that reason.
 *  Thread Starter [issami1](https://wordpress.org/support/users/issami1/)
 * (@issami1)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-11162836)
 * Okay I will try with them. Thank you

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

The topic ‘Fatal error: Uncaught Error’ 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/)

 * 12 replies
 * 2 participants
 * Last reply from: [issami1](https://wordpress.org/support/users/issami1/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-19/#post-11162836)
 * Status: not a support question