Critical Error when editing duplicate campaign
-
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
The topic ‘Critical Error when editing duplicate campaign’ is closed to new replies.