• After clicking on the connect or create an account button, and signing in with my Stripe account, I get a critical error. Here is the stack trace:

    TypeError:
    array_merge(): Argument #2 must be of type array, bool given

    at /home/[redacted]/public_html/app/plugins/woocommerce-gateway-stripe/includes/connect/class-wc-stripe-connect.php:135
    at array_merge()
    (/home/[redacted]/public_html/app/plugins/woocommerce-gateway-stripe/includes/connect/class-wc-stripe-connect.php:135)
    at WC_Stripe_Connect->save_stripe_keys()
    (/home/[redacted]/public_html/app/plugins/woocommerce-gateway-stripe/includes/connect/class-wc-stripe-connect.php:87)
    at WC_Stripe_Connect->connect_oauth()
    (/home/[redacted]/public_html/app/plugins/woocommerce-gateway-stripe/includes/connect/class-wc-stripe-connect.php:110)
    at WC_Stripe_Connect->maybe_handle_redirect()
    (/home/[redacted]/public_html/wp/wp-includes/class-wp-hook.php:324)
    at WP_Hook->apply_filters()
    (/home/[redacted]/public_html/wp/wp-includes/class-wp-hook.php:348)
    at WP_Hook->do_action()
    (/home/[redacted]/public_html/wp/wp-includes/plugin.php:517)
    at do_action()
    (/home/[redacted]/public_html/wp/wp-admin/admin.php:175)

    I have tried with both PHP 8.1 and 8.2, I can’t go any lower since my theme requires >= 8.1.

    I am using the latest version of the plugin (8.4.0).

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • We have checked your issue. I think you have not added the stripe public key and secret key. So I have share the screenshot. https://prnt.sc/pqUzviEFLWuQ

    Thread Starter divswim

    (@divswim)

    Hi,

    I don’t see an option for that. This is all I see after clicking on finish set up:

    Ok, now click on create account to be redirected to the Stripe website. There, you can create the public and secret keys, which should be added to our website. https://tinyurl.com/2zosojv8

    Thread Starter divswim

    (@divswim)

    I click on the button and it asks me to login. After logging in, it shows me a connect button then after clicking that it redirects me back to the website and that’s where I get the critical error.

    Plugin Support RK a11n

    (@riaanknoetze)

    Hi @divswim

    I’ve had a look at the open bug reports and it looks like this might be linked to: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2411. Can you share a copy of your status report as found under WooCommerce > Status? Or at the very least the server environment details?

    @faldurohan – Thanks for you willingness to help out but asking for admin login details is against the WordPress.org support policies. I’ve have reported that request to the forum moderators.

    Thread Starter divswim

    (@divswim)

    Hi,

    Here are the server environment details:

    WooCommerce version:		9.0.2
    WooCommerce Legacy REST API package: The Legacy REST API plugin is not installed on this site.
    WordPress version: 6.5.5
    WordPress multisite: –
    WordPress memory limit: 2 GB
    WordPress debug mode: –
    WordPress cron:
    Language: en_US
    External object cache: –
    Server environment
    Server info: Apache
    PHP version: 8.2.20
    PHP post max size: 768 MB
    PHP time limit: 60
    PHP max input vars: 10000
    cURL version: 7.61.1, OpenSSL/1.1.1k
    SUHOSIN installed: –
    MySQL version: 10.3.39-MariaDB-cll-lve
    Max upload size: 768 MB
    • This reply was modified 2 weeks, 4 days ago by divswim.
    Plugin Support anastas10s (woo-hc)

    (@anastas10s)

    Thank you for reaching back, with further details on this @divswim .

    My suggestion would be to make sure the site’s PHP time limit set to 600, as a minimum.

    Additionally, kindly test with a different browser also, while making sure no browser extension might be interfering.

    Should the connection is not happening still, best to go ahead with a conflict test, as detailed here, preferably with a staging site, as that would help exclude the possibility of an error or malfunction caused by two parts of code giving conflicting signals.

    We look forward to your response. In the meantime, please let us know if you have any further questions or concerns.

    Thread Starter divswim

    (@divswim)

    I have provided a whole stack trace, the issue is clearly compatibility with PHP 8.1 and above, as highlighted here: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2411

    Plugin Support anastas10s (woo-hc)

    (@anastas10s)

    Hi @divswim

    the issue is clearly compatibility with PHP 8.1

    Per the environment details shared above, the PHP version is 8.2.20, though.

    To clarify, did you already have a chance to test if you are able to reproduce on a fresh installation, or otherwise?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.