• Resolved aschunk

    (@aschunk)


    This is the error text:

    Fatal error: Uncaught TypeError: Give\DonationForms\V2\Repositories\DonationFormsRepository::getById(): Argument #1 ($donationFormId) must be of type int, null given, called in /home/mireto/public_html/wp-content/plugins/give/src/Campaigns/Models/Campaign.php on line 76 and defined in /home/mireto/public_html/wp-content/plugins/give/src/DonationForms/V2/Repositories/DonationFormsRepository.php:25 Stack trace: #0 /home/mireto/public_html/wp-content/plugins/give/src/Campaigns/Models/Campaign.php(76): Give\DonationForms\V2\Repositories\DonationFormsRepository->getById(NULL) #1 /home/mireto/public_html/wp-content/plugins/give/src/DonationForms/V2/Endpoints/ListDonationForms.php(140): Give\Campaigns\Models\Campaign->defaultForm() #2 /home/mireto/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): Give\DonationForms\V2\Endpoints\ListDonationForms->handleRequest(Object(WP_REST_Request)) #3 /home/mireto/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/give-api/v2/ad…’, Array, NULL) #4 /home/mireto/public_html/wp-includes/rest-api.php(586): WP_REST_Server->dispatch(Object(WP_REST_Request)) #5 /home/mireto/public_html/wp-content/plugins/give/src/DonationForms/V2/DonationFormsAdminPage.php(212): rest_do_request(Object(WP_REST_Request)) #6 /home/mireto/public_html/wp-content/plugins/give/src/DonationForms/V2/DonationFormsAdminPage.php(114): Give\DonationForms\V2\DonationFormsAdminPage->preloadDonationForms() #7 [internal function]: Give\DonationForms\V2\DonationFormsAdminPage->loadScripts(‘give_forms_page…’) #8 /home/mireto/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array(Array, Array) #9 /home/mireto/public_html/wp-includes/class-wp-hook.php(324): Give\Helpers\Hooks::Give\Helpers\{closure}(‘give_forms_page…’) #10 /home/mireto/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #11 /home/mireto/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /home/mireto/public_html/wp-admin/admin-header.php(123): do_action(‘admin_enqueue_s…’, ‘give_forms_page…’) #13 /home/mireto/public_html/wp-admin/admin.php(240): require_once(‘/home/mireto/pu…’) #14 /home/mireto/public_html/wp-admin/edit.php(10): require_once(‘/home/mireto/pu…’) #15 {main} thrown in /home/mireto/public_html/wp-content/plugins/give/src/DonationForms/V2/Repositories/DonationFormsRepository.php on line 25

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello @aschunk ,

    Glad you reached out, happy to help.

    We’ve had customers encounter that specific critical error after duplicating a campaign when:

    • The Rank Math SEO plugins (free or paid) is active
    • Donation forms are the older, option-based forms

    Please let us know if that matches your configuration. Also, please include your system info on your reply as well. To do this, navigate to GiveWP > Tools > System Info (tab), click the button to Get System Report and copy/paste ALL of the text in your reply to us here.  This is a (silent) screen video showing you were to find this information in your WordPress admin: https://www.loom.com/share/28139090d53c4fb5a26ea11dd04d0227

    Thanks in advance! We look forward to guiding you to a resolution here! 🙂

    Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello @aschunk ,

    Just checking in on this issue since we didn’t hear back.

    Do you still need assistance here on the critical error?

    If you still require help, just reply to this message, and we’ll stay with you until everything is resolved.

    Have a great rest of your day/evening 🙂

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

The topic ‘Critical Error when editing duplicate campaign’ is closed to new replies.