Title: Warning: Undefined array key “id”
Last modified: March 8, 2025

---

# Warning: Undefined array key “id”

 *  Resolved [frankdan](https://wordpress.org/support/users/danfrankdancom/)
 * (@danfrankdancom)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-4/)
 * I have Version 3.22.0. Do I need to go back?
 * If it makes any difference, Donation Goal is disabled.
 * The front looks OK, but when I look at my individual Donations, I see this:
 * **Change Donor:**
   **Warning**: Undefined array key “id” in **/home/domains/earthjourney.
   org/public/wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/GiveInsertPaymentData.
   php** on line **102****Warning**: Undefined array key “title” in **/home/domains/
   earthjourney.org/public/wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/
   GiveInsertPaymentData.php** on line **103****Warning**: Undefined array key “
   email” in **/home/domains/earthjourney.org/public/wp-content/plugins/give/src/
   PaymentGateways/DataTransferObjects/GiveInsertPaymentData.php** on line **104****
   Warning**: Undefined array key “firstName” in **/home/domains/earthjourney.org/
   public/wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/GiveInsertPaymentData.
   php** on line **105****Warning**: Undefined array key “lastName” in **/home/domains/
   earthjourney.org/public/wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/
   GiveInsertPaymentData.php** on line **106****Fatal error**: Uncaught Error: The
   script tried to call a method on an incomplete object. Please ensure that the
   class definition “Give\Vendors\Faker\ValidGenerator” of the object you are trying
   to operate on was loaded _before_ unserialize() gets called or provide an autoloader
   to load the class definition in /home/domains/earthjourney.org/public/wp-content/
   plugins/give/give.php:549 Stack trace: #0 /home/domains/earthjourney.org/public/
   wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/GiveInsertPaymentData.
   php(128): Give->__get() #1 /home/domains/earthjourney.org/public/wp-content/plugins/
   give/src/PaymentGateways/DataTransferObjects/GiveInsertPaymentData.php(108): 
   Give\PaymentGateways\DataTransferObjects\GiveInsertPaymentData->getLegacyBillingAddress()#
   2 /home/domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/
   stripe-php/lib/StripeObject.php(451): Give\PaymentGateways\DataTransferObjects\
   GiveInsertPaymentData->toArray() #3 /home/domains/earthjourney.org/public/wp-
   content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(462): Stripe\
   StripeObject->Stripe\{closure}() #4 [internal function]: Stripe\StripeObject-
   >Stripe\{closure}() #5 /home/domains/earthjourney.org/public/wp-content/plugins/
   give/vendor/stripe/stripe-php/lib/StripeObject.php(466): array_reduce() #6 /home/
   domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-
   php/lib/StripeObject.php(476): Stripe\StripeObject->toArray() #7 /home/domains/
   earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/
   StripeObject.php(483): Stripe\StripeObject->toJSON() #8 /home/domains/earthjourney.
   org/public/wp-content/plugins/give/includes/forms/functions.php(1490): Stripe\
   StripeObject->__toString() #9 /home/domains/earthjourney.org/public/wp-content/
   plugins/give/includes/forms/functions.php(1469): give_get_donor_name_with_title_prefixes()#
   10 /home/domains/earthjourney.org/public/wp-content/plugins/give/includes/admin/
   class-give-html-elements.php(270): give_get_name_with_title_prefixes() #11 /home/
   domains/earthjourney.org/public/wp-content/plugins/give/includes/admin/payments/
   view-payment-details.php(676): Give_HTML_Elements->donor_dropdown() #12 /home/
   domains/earthjourney.org/public/wp-content/plugins/give/src/Donations/DonationsAdminPage.
   php(103): include(‘…’) #13 /home/domains/earthjourney.org/public/wp-includes/
   class-wp-hook.php(324): Give\Donations\DonationsAdminPage->render() #14 /home/
   domains/earthjourney.org/public/wp-includes/class-wp-hook.php(348): WP_Hook->
   apply_filters() #15 /home/domains/earthjourney.org/public/wp-includes/plugin.
   php(517): WP_Hook->do_action() #16 /home/domains/earthjourney.org/public/wp-admin/
   admin.php(259): do_action() #17 /home/domains/earthjourney.org/public/wp-admin/
   edit.php(10): require_once(‘…’) #18 {main} thrown in **/home/domains/earthjourney.
   org/public/wp-content/plugins/give/give.php** on line **549**
 * There has been a critical error on this website. Please check your site admin
   email inbox for instructions. If you continue to have problems, please try the
   [support forums](https://wordpress.org/support/forums/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-id-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-4/#post-18353334)
 * Hi [@danfrankdancom](https://wordpress.org/support/users/danfrankdancom/) ,
 * Glad you reached out! Happy to help with this one.
 * Thanks for sending those logs!
 * **PHP Warnings**
 * This might be related to the PHP error, which I touch on below, but you can also
   try something first.
 * Glad you reached out. That’s an indication that one or more donor records has
   botched data.
 * Could you go through the following steps within GiveWP on your website?
    1. Before taking any steps for troubleshooting or updating, I highly recommend 
       taking a good backup of the site you can confidently restore from. Having a 
       backup of your site is essential to a solid workflow, and will allow you to 
       restore to a previous version of the site if you run into any issues. You can
       read more about our top recommendations for taking a backup here: [https://givewp.com/backup-for-faster-troubleshooting/](https://givewp.com/backup-for-faster-troubleshooting/).
    2. Enable Advanced Database Updates in Donations → Settings → Advanced.
    3. Next, go to the Donations → Tools → Data page, and re-run the “
       Unserialize 
       data in the _give_donor_billing_title_prefix meta value” migration:
    4. Check the logs at Donations → Tools → Logs for errors. If there are any errors,
       pass those along here.
    5. Last, navigate back to Donations → Settings → Advanced and disable Advanced 
       Database Updates.
 * If the error persist after that, can you go to Donations → Settings → Currency
   and then save that?
 * Thereafter, try to see if the issue persists.
 * **PHP Fatal Error**
 * I’d like you to look at your list of donations using the Legacy View. In the 
   list of donations in the top right-hand corner there’s a button called **Legacy
   View**. Click that and you’ll be taken to a different view of the existing donations.
 * What you’re looking for are any donations where the Donation Form Title is listed
   as **Untitled**. If there are some, they are generally the oldest (but not always).
   It’s recommended that you delete those – they’ve become detached from a form 
   and often the donor too. This can happen when an older form has been deleted.
 * Looking forward to helping you get to the bottom of this!
 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-4/#post-18358350)
 * Hi [@danfrankdancom](https://wordpress.org/support/users/danfrankdancom/) ,
 * It’s been a while since we’ve heard back, and I know troubleshooting needs a 
   little extra time. I’m marking this as resolved for now, but if you still have
   questions, you can send them along right here, and I’ll be happy to hop back 
   in.
 * Have a great day!
 *  Thread Starter [frankdan](https://wordpress.org/support/users/danfrankdancom/)
 * (@danfrankdancom)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-4/#post-18363118)
 * Hi [@robindelmundo](https://wordpress.org/support/users/robindelmundo/) ,
 * Thanks for your help!
 * Sorry – I got distracted, but this morning, I went through all your suggestions,
   and the problem persists.
 * I saw no errors in the Logs.
 * When I switched to Legacy, no donations were listed as Untitled, but the error
   message came up as the last donation (I’ll send a screenshot if you reply by 
   email).
 * I also received an email from wordpress which may hold further clues for you:
 *     ```wp-block-code
       Howdy!WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.In this case, WordPress caught an error with one of your plugins, Give - Donation Plugin.First, visit your website (https://earthjourney.org/) and check for any visible issues. Next, visit the page where the error was caught (https://earthjourney.org/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=2100) and check for any visible issues.Please contact your host for assistance with investigating this issue further.If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.https://earthjourney.org/log-in?action=enter_recovery_mode&rm_token=L4oTsgfyGdirID06nZmRQP&rm_key=z6Pj9sHoW3e2UCfFUDUnSCTo keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.When seeking help with this issue, you may be asked for some of the following information:WordPress version 6.7.2Active theme: GeneratePress (version 3.5.1)Current plugin: Give - Donation Plugin (version 3.22.1)PHP version 8.0.30Error Details=============An error of type E_ERROR was caused in line 549 of the file /home/domains/earthjourney.org/public/wp-content/plugins/give/give.php. Error message: Uncaught Error: The script tried to call a method on an incomplete object. Please ensure that the class definition "Give\Vendors\Faker\ValidGenerator" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /home/domains/earthjourney.org/public/wp-content/plugins/give/give.php:549Stack trace:#0 /home/domains/earthjourney.org/public/wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/GiveInsertPaymentData.php(128): Give->__get()#1 /home/domains/earthjourney.org/public/wp-content/plugins/give/src/PaymentGateways/DataTransferObjects/GiveInsertPaymentData.php(108): Give\PaymentGateways\DataTransferObjects\GiveInsertPaymentData->getLegacyBillingAddress()#2 /home/domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(451): Give\PaymentGateways\DataTransferObjects\GiveInsertPaymentData->toArray()#3 /home/domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(462): Stripe\StripeObject->Stripe\{closure}()#4 [internal function]: Stripe\StripeObject->Stripe\{closure}()#5 /home/domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(466): array_reduce()#6 /home/domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(476): Stripe\StripeObject->toArray()#7 /home/domains/earthjourney.org/public/wp-content/plugins/give/vendor/stripe/stripe-php/lib/StripeObject.php(483): Stripe\StripeObject->toJSON()#8 /home/domains/earthjourney.org/public/wp-content/plugins/give/includes/forms/functions.php(1490): Stripe\StripeObject->__toString()#9 /home/domains/earthjourney.org/public/wp-content/plugins/give/includes/forms/functions.php(1469): give_get_donor_name_with_title_prefixes()#10 /home/domains/earthjourney.org/public/wp-content/plugins/give/includes/admin/class-give-html-elements.php(270): give_get_name_with_title_prefixes()#11 /home/domains/earthjourney.org/public/wp-content/plugins/give/includes/admin/payments/view-payment-details.php(676): Give_HTML_Elements->donor_dropdown()#12 /home/domains/earthjourney.org/public/wp-content/plugins/give/src/Donations/DonationsAdminPage.php(103): include('...')#13 /home/domains/earthjourney.org/public/wp-includes/class-wp-hook.php(324): Give\Donations\DonationsAdminPage->render()#14 /home/domains/earthjourney.org/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#15 /home/domains/earthjourney.org/public/wp-includes/plugin.php(517): WP_Hook->do_action()#16 /home/domains/earthjourney.org/public/wp-admin/admin.php(259): do_action()#17 /home/domains/earthjourney.org/public/wp-admin/edit.php(10): require_once('...')#18 {main}  thrown
       ```
   

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

The topic ‘Warning: Undefined array key “id”’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [frankdan](https://wordpress.org/support/users/danfrankdancom/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-id-4/#post-18363118)
 * Status: resolved