• Resolved produzionefff

    (@produzionefff)


    Hi, i’m using wordpress in local mode. I’ve bought a theme and when i try to install GIVE WP plugin i read this message:

    Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId.php:30 Stack trace: #0 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId.php(30): array_key_exists('paypal-standard', NULL) #1 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\Framework\Migrations\MigrationsRunner.php(113): Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId->run() #2 [internal function]: Give\Framework\Migrations\MigrationsRunner->run('') #3 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\Helpers\Hooks.php(43): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\progetti\Voce\wp-includes\class-wp-hook.php(307): Give\Helpers\Hooks::Give\Helpers\{closure}('') #5 C:\xampp\htdocs\progetti\Voce\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #6 C:\xampp\htdocs\progetti\Voce\wp-includes\plugin.php(476): WP_Hook->do_action(Array) #7 C:\xampp\htdocs\progetti\Voce\wp-admin\admin.php(175): do_action('admin_init') #8 C:\xampp\htdocs\progetti\Voce\wp-admin\themes.php(10): require_once('C:\\xampp\\htdocs...') #9 {main} thrown in?C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId.php?on line?30

    How can i fix this?
    Best regards
    Alessio

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @produzionefff,

    Glad you reached out.

    I’m unable to reproduce the error. Can you delete GiveWP and try to reinstall it again?
    By the way, is this a multi-site installation?

    Thanks!

    Thread Starter produzionefff

    (@produzionefff)

    Yes I tried several times. No I’m using wordpress in local only with this site.

    The theme I’ve bought is Alone Theme and to import the Theme Demos is required to have the GIVE WP plugin.

    I have the theme requirements and the last version of WordPress but it is impossible install the Plugin.

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @produzionefff,

    Can you install GiveWP if you activate a different theme first?
    We had several issues with the Alone theme in the past without any update from the theme developer so I’m almost sure the issue is with the theme itself.

    Thread Starter produzionefff

    (@produzionefff)

    No the problem remains.
    I tried with the Twenty Twenty Theme. I can install the plugin but when i tried to activate the plugin i read the message that i send in the previous post.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hey @produzionefff.

    To troubleshoot this issue, we tried to replicate it on a few environments but the issue never showed up so I need your help here to find out what is going on.

    First, when does this issue appear? Is it when a donation is made? Or is it when you activate the plugin?

    Also, you said that you bought the Alone theme and you tried to activate the GiveWP plugin bundled with it, right? This theme bundles the GiveWP plugin and we are not sure that it’s 100% compatible. In this case, I encourage you to delete the GiveWP plugin that comes with the theme and then download it from the official repository (https://www.ads-software.com/plugins/give) and add it back to your site.

    Let us know if it works. If it doesn’t, please share the steps you took so we can test on our end too.

    ?Also, please send along your System Info.

    Navigate to Donations –> Tools –> System Info (tab) and click the button to “Get System Report” and copy/paste that into your reply here.

    That will give me some more context to be able to help.

    Thread Starter produzionefff

    (@produzionefff)

    Hi, this issue appear when i try to activate the plugin.
    I also tried to delete the plugin bundle with alone themes and installed the GIVE WP plugin directly from the official site.

    It’s impossible to activate the plugin. Maybe this is issue occurs because I work on WP in local mode?

    There are the step I took:

    1- I’ve installed WP on local mode using XAMPP
    2- I bought Alone Theme and install it but I can’t import the theme demos because the issue with GIVE WP
    3- I’ve installed each plugin before import demos and I tried to install GIVE WP from the official site but anything change

    This is the only message appear when I try to activate the plugin:

    Warning: Undefined array key "gateways" in C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\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 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId.php:30 Stack trace: #0 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId.php(30): array_key_exists('paypal-standard', NULL) #1 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\Framework\Migrations\MigrationsRunner.php(113): Give\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId->run() #2 [internal function]: Give\Framework\Migrations\MigrationsRunner->run('') #3 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\Helpers\Hooks.php(43): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\progetti\Voce\wp-includes\class-wp-hook.php(307): Give\Helpers\Hooks::Give\Helpers\{closure}('') #5 C:\xampp\htdocs\progetti\Voce\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #6 C:\xampp\htdocs\progetti\Voce\wp-includes\plugin.php(476): WP_Hook->do_action(Array) #7 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\includes\install.php(109): do_action('give_upgrades') #8 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\includes\install.php(49): give_run_install() #9 C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\give.php(396): give_install() #10 C:\xampp\htdocs\progetti\Voce\wp-includes\class-wp-hook.php(307): Give->install('') #11 C:\xampp\htdocs\progetti\Voce\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #12 C:\xampp\htdocs\progetti\Voce\wp-includes\plugin.php(476): WP_Hook->do_action(Array) #13 C:\xampp\htdocs\progetti\Voce\wp-admin\plugins.php(194): do_action('activate_give/g...') #14 {main} thrown in C:\xampp\htdocs\progetti\Voce\wp-content\plugins\give\src\PaymentGateways\Gateways\PayPalStandard\Migrations\SetPayPalStandardGatewayId.php on line 30
    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @produzionefff.

    I still believe this has something to do with the theme you are using – the Alone theme. That theme has a fairly gnarly history of bundling a hacked and vulnerable version of GiveWP (Under the hood it is version 2.6.0 *disguised as 3.6.0* so that WordPress does not offer an auto-update). So before we dig too deep into troubleshooting your problem, ensure that the version of GiveWP you are running is actually the latest.

    Putting me in your shoes, I’d reset your local install, install GiveWP first and only then add the Alone theme. Also, try to use PHP 7.4 and let me know if the issue persists.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @produzionefff.

    Do you still need assistance here? I’ll close this ticket for now but if you still need assistance with it, please reopen it and we’ll happily assist you.

    If you have other issues, you can open a new ticket and we’ll help you there too.

    Thanks for using GiveWP! Have a great day.

    faheem88

    (@faheem88)

    Hi Matheus,

    I’m facing an issue while activating the plugin. It’s WordPress multisite environment and not sure why this is happening because I’m able to activate it on the other website in the same multisite environment that is actually cloned from the main site for translation purposes.
    Whenever I try to activate plugin, this message appears.

    Plugin could not be activated because it triggered a fatal error.
    Warning: Undefined array key “gateways” in /www/gymaim_802/public/wp-content/plugins/give/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php on line 27

    Thanks,
    Faheem

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Give WP fatal error’ is closed to new replies.