{"id":15043786,"date":"2021-11-07T02:20:12","date_gmt":"2021-11-07T02:20:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=15043786"},"modified":"2021-11-07T05:35:18","modified_gmt":"2021-11-07T05:35:18","slug":"wp-give-php-fatal-error-on-confirmation-screen","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp-give-php-fatal-error-on-confirmation-screen\/","title":{"rendered":"WP-Give: PHP Fatal Error on confirmation screen"},"content":{"rendered":"<p>We are using a multi-page form for donations, everything works as expected until the payment is submitted. Then we get the following fatal error:<\/p>\n<pre><code>[02-Nov-2021 23:10:58 UTC] PHP Fatal error:  Uncaught Error: Class name must be a valid object or a string in \/home\/vps2020\/2030orbust.org\/wp-content\/plugins\/give\/src\/Form\/Templates.php:112\nStack trace:\n#0 \/home\/vps2020\/2030orbust.org\/wp-content\/plugins\/give\/src\/Form\/Templates.php(98): Give\\Form\\Templates-&gt;getTemplateObject(false)\n#1 \/home\/vps2020\/2030orbust.org\/wp-content\/plugins\/give\/src\/Controller\/Form.php(125): Give\\Form\\Templates-&gt;getTemplate()\n#2 \/home\/vps2020\/2030orbust.org\/wp-includes\/class-wp-hook.php(287): Give\\Controller\\Form-&gt;loadDonationFormView(&#039;&#039;)\n#3 \/home\/vps2020\/2030orbust.org\/wp-includes\/class-wp-hook.php(311): WP_Hook-&gt;apply_filters(NULL, Array)\n#4 \/home\/vps2020\/2030orbust.org\/wp-includes\/plugin.php(478): WP_Hook-&gt;do_action(Array)\n#5 \/home\/vps2020\/2030orbust.org\/wp-includes\/template-loader.php(13): do_action(&#039;template_redire...&#039;)\n#6 \/home\/vps2020\/2030orbust.org\/wp-blog-header.php(19): require_once(&#039;\/home\/vps2020\/2...&#039;)\n#7 \/home\/vps2020\/2030orbust.org\/index.php(17): require(&#039;\/home\/vps2020\/2...&#039;)\n#8 {main}\n  thrown in \/home\/vps2020\/2030orbust.org\/wp-content\/plugins\/give\/src\/Form\/Templates.php on line 112<\/code><\/pre>\n<p>This seems similar to the following, but we are not using the SG Optimizer plugin:<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/clean-installation-breaks-class-name-must-be-a-valid-object-or-a-string\/<\/p>\n<p>System report:<\/p>\n<pre><code>### WordPress Environment ###\n\nHome URL: https:\/\/www.2030orbust.org\nSite URL: https:\/\/www.2030orbust.org\nWP Version: 5.5.3\nWP Multisite: \u2013\nWP Memory Limit: 256 MB\nWP Debug Mode: \u2714\nWP Cron: \u2714\nLanguage: en_US\nPermalink Structure: \/%year%\/%monthnum%\/%day%\/%postname%\/\nShow on Front: page\nPage on Front: 2030 or Bust \u2013 We Have A Plan To End The Climate Crisis (#7804)\nPage for Posts: Unset\nTable Prefix Length: wp_dgmkwg_\nTable Prefix Length: 10\nTable Prefix Status: Acceptable\nAdmin AJAX: Accessible\nRegistered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, cancelled, abandoned, processing, preapproval, give_subscription\n\n### Server Environment ###\n\nHosting Provider: DBH: mysql.2030orbust.org, SRV: www.2030orbust.org\nTLS Connection: Connection uses TLS 1.2\nTLS Connection: Probably Okay\nServer Info: Apache\nPHP Version: 7.3.24\nPHP Post Max Size: 512 MB\nPHP Time Limit: 120\nPHP Max Input Vars: 1000\nPHP Max Upload Size: 512 MB\ncURL Version: 7.52.1, OpenSSL\/1.0.2u\nSUHOSIN Installed: \u2013\nMySQL Version: 5.7.28\nDefault Timezone is UTC: \u2714\nfsockopen\/cURL: \u2714\nSoapClient: \u2714\nDOMDocument: \u2714\ngzip: \u2714\nGD Graphics Library: \u2714\nMultibyte String: \u2714\nRemote Post: \u2714\nRemote Get: \u2714\n\n### GiveWP Configuration ###\n\nGiveWP Version: 2.16.1\nGiveWP Cache: Enabled\nDatabase Updates: All DB Updates Completed.\nDatabase Updates: All Database Migrations Completed.\nDatabase Tables: \u2714 wp_dgmkwg_give_donors\u2714 wp_dgmkwg_give_donormeta\u2714 wp_dgmkwg_give_comments\u2714 wp_dgmkwg_give_commentmeta\u2714 wp_dgmkwg_give_sessions\u2714 wp_dgmkwg_give_formmeta\u2714 wp_dgmkwg_give_sequential_ordering\u2714 wp_dgmkwg_give_donationmeta\u2714 wp_dgmkwg_give_revenue\nGiveWP Cache: Enabled\nGiveWP Cache: \u2714New Donation\u2714Donation Receipt\u2714New Offline Donation\u2714Offline Donation Instructions\u2714New User Registration\u2714User Registration Information\u2714Donation Note\u2714Email access\u274cRenewal Receipt Email\u274cRenewal Receipt Email\u274cSubscription Cancelled Email\u274cSubscription Cancelled Email\u274cSubscription Completed Email\u274cSubscription Reminder Email\u2714Subscriptions Email Access\u2714Subscription Payment Failed Email\nUpgraded From: 2.13.2\nTest Mode: Disabled\nCurrency Code: USD\nCurrency Position: Before\nDecimal Separator: .\nThousands Separator: ,\nSuccess Page: https:\/\/www.2030orbust.org\/donation-confirmation\/\nFailure Page: https:\/\/www.2030orbust.org\/donation-failed\/\nDonation History Page: https:\/\/www.2030orbust.org\/donor-dashboard\/\nGiveWP Forms Slug: \/donations\/\nEnabled Payment Gateways: Stripe - Credit Card, Offline Donation\nDefault Payment Gateway: Stripe - Credit Card\nPayPal IPN Notifications: N\/A\nDonor Email Access: Enabled\nStripe Webhook Notifications: November 7, 2021 1:51 am\n\n### Active GiveWP Add-ons ###\n\nGive - ActiveCampaign: \u2714 Licensed \u2013 by GiveWP \u2013 1.0.1\nGive - Recurring Donations: \u2714 Licensed \u2013 by GiveWP \u2013 1.12.6\n\n### Other Active Plugins ###\n\nActiveCampaign: by ActiveCampaign \u2013 8.1.7\nAdvanced post slider: by digontoahsan \u2013 2.5.1\nAkismet Anti-Spam: by Automattic \u2013 4.1.8\nARVE Advanced Responsive Video Embedder: by Nicolas Jonas \u2013 9.5.14\nCMSMasters Contact Form Builder: by cmsmasters \u2013 1.3.2\nCMSMasters Content Composer: by cmsmasters \u2013 1.2.9\nCMSMasters Mega Menu: by cmsmasters \u2013 1.2.0\nCustom Share Buttons with Floating Sidebar: by WP Experts Team \u2013 3.9.1\nDisable Gutenberg: by Jeff Starr \u2013 2.4\nDuplicate Page: by mndpsingh287 \u2013 4.3\nEasy Updates Manager: by Easy Updates Manager Team \u2013 9.0.7\nInsert PHP Code Snippet: by xyzscripts.com \u2013 1.3.1\nJSM&#039;s Force HTTP to HTTPS: by JS Morisset \u2013 3.4.1\nLayerSlider WP: by Kreatura Media \u2013 5.3.2\nRedirection: by John Godley \u2013 5.0.1\nSmash Balloon Instagram Feed: by Smash Balloon \u2013 2.9.3.1\nSpotlight - Social Media Feeds: by RebelCode \u2013 0.9.5\nUpdraftPlus - Backup\/Restore: by UpdraftPlus.Com, DavidAnderson \u2013 1.16.47\nUse Any Font: by Dnesscarkey \u2013 6.0.4\nWP Downgrade | Specific Core Version: by Reisetiger \u2013 1.2.2\n\n### Inactive Plugins ###\n\n3D FlipBook - Lite Edition: by iberezansky \u2013 1.10.14\nARI Fancy Lightbox: by ARI Soft \u2013 1.3.8\nContact Form 7: by Takayuki Miyoshi \u2013 5.3.2\nHover Effects Pack Pro: by Labib Ahmed \u2013 1.0\nImage Hover Effects Ultimate (Photo Gallery, Effects, Lightbox, Comparison or Magnifier): by Biplob Adhikari \u2013 9.5.0\nPassword Protected: by Ben Huson \u2013 2.4\nPayPal Donations: by Tips and Tricks HQ, Johan Steen \u2013 1.9.6\nRevolution Slider: by ThemePunch \u2013 4.6.9\nSimple YouTube Embed: by naa986 \u2013 1.0.8\nSmooth Scroll Page Up\/Down Buttons: by Mark Senff \u2013 1.3\nTooltip CK: by C\u00e9dric KEIFLIN \u2013 2.2.10\nUltimate Endpoints With Rest Api: by Dipankar Pal \u2013 2.2.2\nVimeography: by Dave Kiss \u2013 2.2.1\nWooCommerce: by Automattic \u2013 5.0.1\nWPForms Lite: by WPForms \u2013 1.6.5\nWP Htaccess Editor: by WebFactory Ltd \u2013 1.67\nWP Responsive Recent Post Slider\/Carousel: by WP OnlineSupport \u2013 2.6\nWP Simple Pay Lite: by Sandhills Development, LLC \u2013 2.6.0\nWP Simple Pay Pro: by Sandhills Development, LLC \u2013 4.0.2\nWP Simple Pay Pro 2: by Moonstone Media \u2013 2.5.6\nWP Simple Pay Pro 2 - Subscriptions Add-on: by Moonstone Media \u2013 1.3.6\n\n### Theme ###\n\nName: 2020 or Bust\nVersion: 1.0.1\nAuthor URL: \nChild Theme: Yes\nParent Theme Name: Social Activity\nParent Theme Version: 1.1.6\nParent Theme Author URL: http:\/\/cmsmasters.net\/<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-15043786","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15043786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15043786\/revisions"}],"predecessor-version":[{"id":15043895,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15043786\/revisions\/15043895"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15043786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}