• Resolved phex

    (@phex)


    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 141

    Is 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

    (@matheusfd)

    Hi, @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.www.ads-software.com/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.