Title: Undefined array key 0 in functions.php
Last modified: April 9, 2024

---

# Undefined array key 0 in functions.php

 *  Resolved [phex](https://wordpress.org/support/users/phex/)
 * (@phex)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/undefined-array-key-0-in-functions-php/)
 * Hi there, I’m using WP Give in my site to accept donations.
   To this moment I 
   accept only offline donations (setting up PayPal).Today I found this PHP Warning
   in error_log:Undefined array key 0 in /home/eo5vjwzp/public_html/wp-content/plugins/
   give/includes/gateways/functions.php on line 141Is this a problem for my donations?
   Will I be able to accept also PayPal donations?Is it possible to solve this warning?
   I’m on WordPress 6.5 and Uncode theme

Viewing 1 replies (of 1 total)

 *  Plugin Support [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * (@matheusfd)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-0-in-functions-php/#post-17643684)
 * Hi, [@phex](https://wordpress.org/support/users/phex/).
 * Glad you reached out.
 * Warning messages like this display when your site has “Debug Mode” turned on.
   Debug mode is a method for developers to use to find issues in their code and
   compatibility problems with different versions of PHP (the server language WordPress
   uses). Debug mode is usually only used on development sites or non-live sites.
 * In the meantime while we get the problem resolved, here’s how you can hide those
   warnings: in your wp-config.php file (which you can get to via SFTP or through
   your web host’s file manager) look for a line like this:
 * define(‘WP_DEBUG’, true);
 * Replace it with the following lines:
 * define(‘WP_DEBUG’, true);
   define(‘WP_DEBUG_LOG’, true);define(‘WP_DEBUG_DISPLAY’,
   false);@ini_set(‘display_errors’, 0);
 * Again, this method is normally only used for development, not on live sites.
 * If you need assistance with that, your web host should be able to help. Also,
   there is some official documentation on that: [https://codex.wordpress.org/WP_DEBUG](https://codex.wordpress.org/WP_DEBUG)
 * Feel free to reach out to us if you have any further inquiries or require additional
   assistance. We’re always happy to help!

Viewing 1 replies (of 1 total)

The topic ‘Undefined array key 0 in functions.php’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-array-key-0-in-functions-php/#post-17643684)
 * Status: resolved