Title: archive template returning uncaught error when published
Last modified: December 17, 2019

---

# archive template returning uncaught error when published

 *  [symm](https://wordpress.org/support/users/symm/)
 * (@symm)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/archive-php-not-working/)
 * Hi,
 * I have created an archive template and have applied it to my categories but I
   am getting the following error:
    Fatal error: Uncaught Error: Call to undefined
   function generate_do_element_classes() in /nas/content/live/ablefuture/wp-content/
   themes/astra-child/archive.php:14 Stack trace: #0 /nas/content/live/ablefuture/
   wp-includes/template-loader.php(78): include() #1 /nas/content/live/ablefuture/
   wp-blog-header.php(19): require_once(‘/nas/content/li…’) #2 /nas/content/live/
   ablefuture/index.php(17): require(‘/nas/content/li…’) #3 {main} thrown in /nas/
   content/live/ablefuture/wp-content/themes/astra-child/archive.php on line 14 
   The site is experiencing technical difficulties.
 * Can anyone pls assist?
 * Thanks in advance
    -  This topic was modified 6 years, 5 months ago by [symm](https://wordpress.org/support/users/symm/).
    -  This topic was modified 6 years, 5 months ago by [symm](https://wordpress.org/support/users/symm/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Farchive-php-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [6 years, 5 months ago](https://wordpress.org/support/topic/archive-php-not-working/#post-12246408)
 * Looking at your site, you are an Elementor Pro user. The author can’t have a 
   conversation with customers here. That’s not permitted for anyone.
 * For pro or commercial product support please contact the author directly on their
   site. This includes any pre-sales topics as well.
 * As the author is aware, commercial products are [not supported in these forums](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
   I am sure they will have no problem supporting you there.

Viewing 1 replies (of 1 total)

The topic ‘archive template returning uncaught error when published’ is closed to
new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [archive.php](https://wordpress.org/support/topic-tag/archive-php/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

 * 1 reply
 * 1 participant
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/archive-php-not-working/#post-12246408)
 * Status: not resolved