Title: Fatal Error
Last modified: March 6, 2023

---

# Fatal Error

 *  Resolved [Jason Houge](https://wordpress.org/support/users/jasonhouge/)
 * (@jasonhouge)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4384/)
 *     ```wp-block-code
       [276621] [172.71.254.251:33616:HTTP2-3#catsanonymous.org] [STDERR] PHP Fatal error: Uncaught Error: Class name must be a valid object or a string in /***/wp-content/plugins/give/src/Form/Templates.php:120
       Stack trace:
       #0 /***/wp-content/plugins/give/src/Form/Templates.php(104): Give\Form\Templates->getTemplateObject()
       #1 /***/wp-content/plugins/give/src/Controller/Form.php(139): Give\Form\Templates->getTemplate()
       #2 /***/wp-includes/class-wp-hook.php(308): Give\Controller\Form->loadDonationFormView()
       #3 /***/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
       #4 /***/wp-includes/plugin.php(517): WP_Hook->do_action()
       #5 /***/wp-includes/template-loader.php(13): do_action()
       #6 /***/wp-blog-header.php(19): require_once('/home/catsanony...')
       #7 /***/public_html/index.php(17): require('/...')
       #8 {main}
       thrown in /***/wp-content/plugins/give/src/Form/Templates.php on line 120
       ```
   
 * Unsure what happened. 
   Caused a 20 minute blackout of the entire site over night.
   The above is the server error log that printed several times during this period.
   Thoughts?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-4384%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [stephanieliy](https://wordpress.org/support/users/stephanieliy/)
 * (@stephanieliy)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4384/#post-16536477)
 * Hi [@jasonhouge](https://wordpress.org/support/users/jasonhouge/),
   Glad you reached
   out, we’ll definitely want to get you sorted.That error ( Fatal error: Uncaught
   Error: Class name must be a valid object or a string in /***/wp-content/plugins/
   give/src/Form/Templates.php:120 ) is usually the result of caching, but I won’t
   be able to verify that until I get a quick look at your system information. You
   can send this by navigating to Donations > Tools > System Info (tab) and click
   the button to “Get System Report” and copy/paste that in your reply here.I’ll
   go ahead and include GiveWP’s caching recommendations for now, but once I have
   the system information I’ll do more digging in case this doesn’t help. If you’re
   not familiar with caching, it’s a method of saving server resources by storing
   copies of a page or site, so that the next visitor’s visit doesn’t trigger a 
   call to the server at all, they just get the copy that was saved. Basically instead
   of the site needing to recreate the page from scratch, it sends up a copy which
   allows it to load faster.We put together this deep dive into what caching is 
   and how it can cause problems: [https://givewp.com/documentation/resources/caching/](https://givewp.com/documentation/resources/caching/)
   Caching works really well for speeding up sites, but when a saved copy of the
   site has sensitive information in it (like donor info) it’s important that GiveWP
   not share that with the next visitor. If GiveWP is not convinced that the browser
   requesting the data is the correct one, it defaults to not showing the data.Caching
   is handled differently on various sites and web hosts. This could mean a caching
   plugin, or caching could be in a security solution. Hosting providers also have
   settings for caching at the server level, and they can help make adjustments 
   for you there. Most caching solutions have a setting or section for excluding
   specific URLs or parts of URLs (called “slugs”) from caching. At the very least,
   you should exclude the following slugs from caching:/donations//donation-confirmation//
   donor-dashboard/*any page with a donation form on itAlso, the following query
   strings (if your caching solution has a setting for them):give-embed=donor-dashboardgiveDonationFormInIframe
   =1Your host or the caching plugin/solution you are using can help with that. 
   Some of them may require what’s called a “wildcard” like /donations/* to capture
   all subdirectories under the /donations/ folder.Some folks prefer to customize
   the URLs to their site pages, so you may find that your URLs don’t have the slugs
   mentioned above, even though they contain the same content. In cases like those,
   we recommend whitelisting the page, not just the slug, that way the pages with
   those essential pieces of information are still excluded from caching. This is
   especially important for URLs of pages with donation forms on them.One helpful
   tip: Check in with your hosting provider. Most hosts have caching at the server
   level, and they will be able to adjust this for you. You can also temporarily
   disable caching on the site to confirm that the uncached site isn’t showing the
   problem.While fine-tuning cache falls outside the scope of the support we’re 
   able to provide, your success with online donations is our number one priority,
   and we’re happy to provide any tips.I know this was quite a bit of information
   to share. If you have any questions about this let me know, I’m happy to help.
 *  [stephanieliy](https://wordpress.org/support/users/stephanieliy/)
 * (@stephanieliy)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4384/#post-16540540)
 * Hi [@jasonhouge](https://wordpress.org/support/users/jasonhouge/) ,
   It’s been
   a bit since I’ve heard back and I know troubleshooting can take a little extra
   time. I’m marking this as resolved for now, but if you still have questions you
   can send them along here and I’ll be happy to give things a look. Have a great
   day!

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

The topic ‘Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [stephanieliy](https://wordpress.org/support/users/stephanieliy/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4384/#post-16540540)
 * Status: resolved