Title: Undefined array key &#8220;payment_total_type&#8221;
Last modified: April 9, 2026

---

# Undefined array key “payment_total_type”

 *  Resolved [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/undefined-array-key-payment_total_type/)
 *     ```wp-block-code
       PHP Warning: Undefined array key "payment_total_type" in /var/www/wp-content/plugins/ninja-forms/includes/Abstracts/MergeTags.php on line 68;
       ```
   
 * Probably the code should be in MergeTags.php:
 *     ```wp-block-code
       if( isset($subject['payment_total']) && isset($subject['payment_total_type'])
       ```
   
 * I think this is why it throws that error: you probably performed a data upgrade
   in the past, and `payment_total_type` was not part of the older version, so it
   wasn’t added to the existing data.

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

 *  Plugin Support [Mia](https://wordpress.org/support/users/xmiax/)
 * (@xmiax)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/undefined-array-key-payment_total_type/#post-18877068)
 * Hi 
   Thanks for reaching out and reporting this. We’ve actually already worked
   on this and the fix should be out in version 3.14.3 which is in QA testing now.
   I’m hoping for a release next week. ThanksMia
 *  Thread Starter [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/undefined-array-key-payment_total_type/#post-18877082)
 * Found two more:
 *     ```wp-block-code
       PHP Warning:  Undefined array key "file_upload" in /var/www/wp-content/plugins/ninja-forms/includes/AJAX/Controllers/Submission.php on line 551;
       ```
   
 *     ```wp-block-code
       PHP Warning:  Undefined array key "unchecked_calc_value" in /var/www/wp-content/plugins/ninja-forms/includes/Fields/Checkbox.php on line 157
       ```
   

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-array-key-payment_total_type%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * Last activity: [1 month, 3 weeks ago](https://wordpress.org/support/topic/undefined-array-key-payment_total_type/#post-18877082)
 * Status: resolved