Title: Plugin causes PHP Fatal Error
Last modified: May 6, 2024

---

# Plugin causes PHP Fatal Error

 *  Resolved [pkolenbr](https://wordpress.org/support/users/pkolenbr/)
 * (@pkolenbr)
 * [2 years ago](https://wordpress.org/support/topic/plugin-causes-php-fatal-error/)
 * 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](https://sacredharpbremen.org/wp-admin/admin.php?page=wpedon_settings&tab=4)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causes-php-fatal-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Scott Paterson](https://wordpress.org/support/users/scottpaterson/)
 * (@scottpaterson)
 * [2 years ago](https://wordpress.org/support/topic/plugin-causes-php-fatal-error/#post-17737300)
 * Hi [@pkolenbr](https://wordpress.org/support/users/pkolenbr/),
   I’m sorry about
   this! I’ll get a fix out Tuesday for this.Thanks,Scott
 *  Plugin Author [Scott Paterson](https://wordpress.org/support/users/scottpaterson/)
 * (@scottpaterson)
 * [2 years ago](https://wordpress.org/support/topic/plugin-causes-php-fatal-error/#post-17739362)
 * Hi [@pkolenbr](https://wordpress.org/support/users/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](https://wordpress.org/support/users/pkolenbr/)
 * (@pkolenbr)
 * [2 years ago](https://wordpress.org/support/topic/plugin-causes-php-fatal-error/#post-17739462)
 * 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/](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.

 * ![](https://ps.w.org/easy-paypal-donation/assets/icon-256x256.png?rev=3095887)
 * [Accept Donations with PayPal & Stripe](https://wordpress.org/plugins/easy-paypal-donation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-paypal-donation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-paypal-donation/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-paypal-donation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-paypal-donation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-paypal-donation/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [pkolenbr](https://wordpress.org/support/users/pkolenbr/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/plugin-causes-php-fatal-error/#post-17739462)
 * Status: resolved