• Resolved pkolenbr

    (@pkolenbr)


    I’m using your plugin (v1.4) to accept donations for our site. As per your recommendations I’ve now setup a Stripe-account. As soon as on the settings-page of the plugin I hit the button “Connect with Stripe”, the plugin causes a PHP Fatal Error (shown below). I’m using PHP v8.2.18. For now I’ve disabled Stripe and now the plugin works as usual with my PayPal account.

    Here’s the PHP error:

    Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must be of type float, string given in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/Table/OrderTable.php:62\nStack trace:\n#0 /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/Table/OrderTable.php(62): number_format()\n#1 /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/Table/OrderTable.php(217): WPEasyDonation\Table\OrderTable->get_data()\n#2 /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/Pages/OrderPage.php(39): WPEasyDonation\Table\OrderTable->prepare_items()\n#3 /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/Pages/OrderPage.php(17): WPEasyDonation\Pages\OrderPage->get()\n#4 /var/www/sacredharpbremen.org/wp-includes/class-wp-hook.php(324): WPEasyDonation\Pages\OrderPage->render()\n#5 /var/www/sacredharpbremen.org/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#6 /var/…’, referer: https://sacredharpbremen.org/wp-admin/admin.php?page=wpedon_settings&tab=4

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Paterson

    (@scottpaterson)

    Hi @pkolenbr,

    I’m sorry about this! I’ll get a fix out Tuesday for this.

    Thanks,
    Scott

    Plugin Author Scott Paterson

    (@scottpaterson)

    Hi @pkolenbr,

    I just released version 1.4.1 of the plugin which should fix this error for you. Please update to that version.

    Once again, sorry about this! I’m going to mark this as resolved, but if you still have an error, please let me know and reply again.

    Best,
    Scott

    Thread Starter pkolenbr

    (@pkolenbr)

    Hi Scott,

    Thanks for releasing v1.4.1! I’ve upgraded the plugin and the PHP fatal error is gone. There’s now a “Donate with Stripe”-button on the web page, but nothing seems to happen when I click on it. When I monitor the log at the moment I click on the “Donate with Stripe”-button, I see this error (not fatal):

    Got error ‘PHP message: PHP Warning: Undefined array key “item_name” in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/API/Order.php on line 17; PHP message: PHP Warning: Undefined array key “mc_gross” in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/API/Order.php on line 23; PHP message: PHP Warning: Undefined array key “mc_currency” in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/API/Order.php on line 24; PHP message: PHP Warning: Undefined array key “payer_email” in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/API/Order.php on line 25; PHP message: PHP Warning: Undefined array key “paypal_connection_type” in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/API/Order.php on line 28; PHP message: PHP Warning: Undefined array key “txn_id” in /var/www/sacredharpbremen.org/wp-content/plugins/easy-paypal-donation/core/API/Order.php on line 45’, referer: https://sacredharpbremen.org/en/donate/

    I have the feeling that I’m missing a step in the setup procedure. When I login to my Stripe-account, I see the message “Select the account you’d like to connect to WPPlugin LLC”. Below that message I can select my website and there’s a blue “connect”-button. I click on the connect-button, it shows “returning to WPPlugin LLC” and after some moments it ends with a message “Security check failed”. Here I’m lost. I give up for now, maybe you have a hint for me what I can do tomorrow.

    Thanks anyway for your support!

    Best regards, Paul.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin causes PHP Fatal Error’ is closed to new replies.