Title: Error loading forms
Last modified: February 5, 2022

---

# Error loading forms

 *  Resolved [pitajpetru](https://wordpress.org/support/users/pitajpetru/)
 * (@pitajpetru)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-loading-forms/)
 * Multi-Step Form and Classic Form does not load on namecheap hosting.
 * Url for loading form: `/donation-form?giveDonationFormInIframe=1`
 * returns error: 500
    Internal Server Error
 * because of: Referrer Policy strict-origin-when-cross-origin.
 * Legacy Form works fine.
    It seems loading form in iframe violates cross origin
   policy…

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

 *  Thread Starter [pitajpetru](https://wordpress.org/support/users/pitajpetru/)
 * (@pitajpetru)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-loading-forms/#post-15332653)
 * PHP Fatal error: Uncaught Error: Class name must be a valid object or a string
   in /home/pitaihgt/public_html/wp-content/plugins/give/src/Form/Templates.php:
   120
    Stack trace: #0 /home/pitaihgt/public_html/wp-content/plugins/give/src/Form/
   Templates.php(104): Give\Form\Templates->getTemplateObject(NULL) #1 /home/pitaihgt/
   public_html/wp-content/plugins/give/src/Controller/Form.php(306): Give\Form\Templates-
   >getTemplate() #2 /home/pitaihgt/public_html/wp-includes/class-wp-hook.php(309):
   Give\Controller\Form->handleOffSiteCheckoutRedirect(‘ [https://pitajpe…&#8217](https://pitajpe…&#8217);)#
   3 /home/pitaihgt/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘
   [https://pitajpe…&#8217](https://pitajpe…&#8217);, Array) #4 /home/pitaihgt/public_html/
   wp-includes/pluggable.php(1316): apply_filters(‘wp_redirect’, ‘ [https://pitajpe…&#8217](https://pitajpe…&#8217);,
   301) #5 /home/pitaihgt/public_html/wp-includes/canonical.php(799): wp_redirect(‘
   [https://pitajpe…&#8217](https://pitajpe…&#8217);, 301) #6 /home/pitaihgt/public_html/
   wp-includes/class-wp-hook.php(307): redirect_canonical(‘ [https://pitajpe…&#8217](https://pitajpe…&#8217);)#
   7 /home/pitaihgt/public_html/wp-includes/c in /home/pitaihgt/public_html/wp-content/
   plugins/give/src/Form/Templates.php on line 120
 *  Plugin Support [Rick Alday](https://wordpress.org/support/users/mrdaro/)
 * (@mrdaro)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-loading-forms/#post-15372177)
 * Hi [@pitajpetru](https://wordpress.org/support/users/pitajpetru/),
 * Glad you reached out here.
 * 99% of the time that error is caused by caching.
 * In order to verify that my hypothesis is right here, we need to exclude any asset
   loaded by GiveWP from the cache.
 * Caching is handled differently on various sites and web hosts, and most of them
   allow for excluding specific URLs or parts of URLs from caching. At the very 
   least, you should exclude the following slugs from caching:
    /donations/ /donation-
   confirmation/ /donor-dashboard/
 * Also, the following query strings:
    give-embed=donor-dashboard giveDonationFormInIframe
   =1
 * Your 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.
 * 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.
 *  Thread Starter [pitajpetru](https://wordpress.org/support/users/pitajpetru/)
 * (@pitajpetru)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-loading-forms/#post-15372342)
 * I guess you were right, error fixed itself couple of days after…
 * Classic form works correctly now!
 * Thanks

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

The topic ‘Error loading forms’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [pitajpetru](https://wordpress.org/support/users/pitajpetru/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/error-loading-forms/#post-15372342)
 * Status: resolved