Title: Basic Form Cause critical Error
Last modified: July 10, 2024

---

# Basic Form Cause critical Error

 *  Resolved [iperez_genius](https://wordpress.org/support/users/iperez_genius/)
 * (@iperez_genius)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/)
 * When I submit my basic contact form I receive a “critical error has occurred 
   on your site”.
 * In the developer window I can see that its returning a 500 Error.
 * Any idea what the cause might be,

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

 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17884303)
 * Hi [@iperez_genius](https://wordpress.org/support/users/iperez_genius/),
 * Thanks for reaching out! And I’m sorry to hear about the error.
 * When you get a chance, could you please share the URL to access your form? This
   way, I can investigate the issue.
 * In case it helps, I recommend checking if you’re using [the latest version of WPForms](https://wordpress.org/plugins/wpforms-lite/#developers).
   Besides adding new features and enhancements, plugin updates also fix known issues.
 * And WPBeginner has a [guide on how to fix the critical error in WordPress here](https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-critical-error-in-wordpress/).
 * Thanks!
 *  Thread Starter [iperez_genius](https://wordpress.org/support/users/iperez_genius/)
 * (@iperez_genius)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17884328)
 * if you submit the this contact form you will see the issue
 * [https://learn.pyramidanalytics.com/contact](https://learn.pyramidanalytics.com/contact)
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17886272)
 * Hi [@iperez_genius](https://wordpress.org/support/users/iperez_genius/),
 * Thanks for the information!
 * I could reproduce the issue after submitting your form.
 * When you get a chance, could you please enable debugging in WordPress and share
   the errors reported there? In case it helps, we have a [guide here](https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/)
   with details on how to do this.
 * Also, please share the details from **WPForms > Tools > System Info** ([screenshot](https://a.supportally.com/i/pYiTDC)).
 * I recommend adding all this information to a link, which you can delete later(
   after we get it), since all the information on this topic is public. For example,
   you could add the details to a Google Docs, share the link here, and delete after
   we have saved the details.
 * With those details, we will be able to investigate the issue.
 * Thanks!
 *  Thread Starter [iperez_genius](https://wordpress.org/support/users/iperez_genius/)
 * (@iperez_genius)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17888426)
 * ![](https://wordpress.org/5ecfa508-7158-4c62-8e02-8f21967e0515)
 * **Fatal error**: Uncaught Error: Class ‘DOMDocument’ not found in /var/www/html/
   wp-content/plugins/wpforms-lite/vendor_prefixed/tijsverkoyen/css-to-inline-styles/
   src/CssToInlineStyles.php:92 Stack trace: #0 /var/www/html/wp-content/plugins/
   wpforms-lite/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.
   php(33): WPForms\Vendor\TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->createDomDocumentFromHtml()#
   1 /var/www/html/wp-content/plugins/wpforms-lite/src/Emails/Styler.php(113): WPForms\
   Vendor\TijsVerkoyen\CssToInlineStyles\CssToInlineStyles->convert() #2 /var/www/
   html/wp-content/plugins/wpforms-lite/src/Emails/Styler.php(131): WPForms\Emails\
   Styler->process_markup() #3 /var/www/html/wp-content/plugins/wpforms-lite/src/
   Emails/Templates/General.php(417): WPForms\Emails\Styler->get() #4 /var/www/html/
   wp-content/plugins/wpforms-lite/src/Emails/Templates/General.php(447): WPForms\
   Emails\Templates\General->save_styled() #5 /var/www/html/wp-content/plugins/wpforms-
   lite/src/Emails/Templates/General.php(461): WPFo in **/var/www/html/wp-content/
   plugins/wpforms-lite/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.
   php** on line **92**
 *  Thread Starter [iperez_genius](https://wordpress.org/support/users/iperez_genius/)
 * (@iperez_genius)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17888587)
 * I can confirm that DOM is installed and running in php.
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17893169)
 * Hi [@iperez_genius](https://wordpress.org/support/users/iperez_genius/),
 * Thank you for sharing those details!
 * The issue might be due to the fact that the `/wp-content/plugins/wpforms/vendor_prefixed/`
   directory is empty, and it should contain some third-party libraries, such as`/
   tijsverkoyen/`.
 * When you get a chance, could you please re-upload the entire WPForms Lite plugin?
   This should resolve the issue.
 * Thanks!
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17898994)
 * Hi [@iperez_genius](https://wordpress.org/support/users/iperez_genius/),
 * We haven’t heard back from you in a few days, so I’m going to go ahead and close
   this thread for now. But if you’d like us to assist further, please feel welcome
   to continue the conversation.
 * Thanks!

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

The topic ‘Basic Form Cause critical Error’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/basic-form-cause-critical-error/#post-17898994)
 * Status: resolved