Title: Undefined array key &#8220;gateways&#8221;
Last modified: April 24, 2022

---

# Undefined array key “gateways”

 *  Resolved [Atal123](https://wordpress.org/support/users/atal123/)
 * (@atal123)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-gateways/)
 * I am trying to install the GiveWP plugin but each time it shows the same Error.
   
   Deactivated all other plugins and themes, but still the Error.
 * It says:
 *     ```
       Warning: Undefined array key "gateways" in /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/src/PaymentGateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php on line 27
   
       Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/src/PaymentGateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php:30 Stack trace: #0 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/src/PaymentGateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php(30): array_key_exists() #1 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/src/Framework/Migrations/MigrationsRunner.php(113): Give\PaymentGateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId->run() #2 [internal function]: Give\Framework\Migrations\MigrationsRunner->run() #3 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(42): call_user_func_array() #4 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-includes/class-wp-hook.php(303): Give\Helpers\Hooks::Give\Helpers\{closure}() #5 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #6 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-includes/plugin.php(470): WP_Hook->do_action() #7 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/includes/install.php(112): do_action() #8 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/includes/install.php(51): give_run_install() #9 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/give.php(423): give_install() #10 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-includes/class-wp-hook.php(303): Give->install() #11 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #12 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-includes/plugin.php(470): WP_Hook->do_action() #13 /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-admin/plugins.php(193): do_action() #14 {main} thrown in /home/USERNAME/domains/WEBSITE-URL.COM/public_html/wp-content/plugins/give/src/PaymentGateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php on line 30
       ```
   
 * before posting here looked like almost everywhere but found nothing which could
   solve this 🙁

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

 *  Plugin Support [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * (@matheusfd)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-gateways/#post-15268167)
 * Hey, [@atal123](https://wordpress.org/support/users/atal123/).
 * Glad you reached out.
 * Can you let me know your PHP version? If you are using 8+, try to change it to
   PHP 7.4 and let me know if it works.
 * Looking forward to helping you get to the bottom of this!
 *  Thread Starter [Atal123](https://wordpress.org/support/users/atal123/)
 * (@atal123)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-gateways/#post-15268290)
 * [@matheusfd](https://wordpress.org/support/users/matheusfd/) you are genius 😀
   
   with 7.4 it works. Thank You 🙂
 *  Plugin Support [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * (@matheusfd)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-gateways/#post-15268319)
 * That’s great!

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

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

## Tags

 * [gateways](https://wordpress.org/support/topic-tag/gateways/)

 * 3 replies
 * 3 participants
 * Last reply from: [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-gateways/#post-15268319)
 * Status: resolved