Support

Home Forums Event Espresso Premium Error when confirming a transaction

Error when confirming a transaction

Posted: June 6, 2023 at 8:45 am

Viewing 12 reply threads


haerzchlopfaehebamme

June 6, 2023 at 8:45 am

Hi,
Please have a look at the error below and let me know what I can do to fix it.
Thank you very much!
Lukas

WordPress-Version 6.2.2
Aktives Theme: Beaver Builder Child Theme (Version 1.0)
Aktuelles Plugin: Event Espresso (Version 5.0.6.p)
PHP-Version 8.0.28

Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 1150 der Datei /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php verursacht. Fehlermeldung: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/transactions/Transactions_Admin_Page.core.php:1844
Stack trace:
#0 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/transactions/Transactions_Admin_Page.core.php(1844): abs()
#1 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/transactions/Transactions_Admin_Page.core.php(1597): Transactions_Admin_Page->_create_payment_from_request_data()
#2 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1142): Transactions_Admin_Page->apply_payments_or_refunds()
#3 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(877): EE_Admin_Page->_route_admin_request()
#4 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(694): EE_Admin_Page->route_admin_request()
#5 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(292): EE_Admin_Page->_page_setup()
#6 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(482): EE_Admin_Page->initializePage()
#7 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(330): EE_Admin_Page_Init->_initialize_admin_page()
#8 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(185): EE_Admin_Page_Init->do_initial_loads()
#9 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(94): EE_Admin_Page_Loader->findAndLoadAdminPages()
#10 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(207): EE_Admin_Page_Loader->init()
#11 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(308): EE_Admin->init()
#12 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#13 /home/haerzchl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#14 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1167): do_action()
#15 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(308): EE_System->initialize_last()
#16 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#17 /home/haerzchl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#18 /home/haerzchl/public_html/wp-settings.php(623): do_action()
#19 /home/haerzchl/public_html/wp-config.php(108): require_once(‘/home/haerzchl/…’)
#20 /home/haerzchl/public_html/wp-load.php(50): require_once(‘/home/haerzchl/…’)
#21 /home/haerzchl/public_html/wp-admin/admin.php(34): require_once(‘/home/haerzchl/…’)
#22 {main}

Next RuntimeException: Page route "apply_payments_or_refunds" with the supplied arguments () threw the following exception: abs(): Argument #1 ($num) must be of type int|float, string given in /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:1150
Stack trace:
#0 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(877): EE_Admin_Page->_route_admin_request()
#1 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(694): EE_Admin_Page->route_admin_request()
#2 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(292): EE_Admin_Page->_page_setup()
#3 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(482): EE_Admin_Page->initializePage()
#4 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(330): EE_Admin_Page_Init->_initialize_admin_page()
#5 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(185): EE_Admin_Page_Init->do_initial_loads()
#6 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(94): EE_Admin_Page_Loader->findAndLoadAdminPages()
#7 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(207): EE_Admin_Page_Loader->init()
#8 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(308): EE_Admin->init()
#9 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#10 /home/haerzchl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /home/haerzchl/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1167): do_action()
#12 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(308): EE_System->initialize_last()
#13 /home/haerzchl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#14 /home/haerzchl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#15 /home/haerzchl/public_html/wp-settings.php(623): do_action()
#16 /home/haerzchl/public_html/wp-config.php(108): require_once(‘/home/haerzchl/…’)
#17 /home/haerzchl/public_html/wp-load.php(50): require_once(‘/home/haerzchl/…’)
#18 /home/haerzchl/public_html/wp-admin/admin.php(34): require_once(‘/home/haerzchl/…’)
#19 {main}
thrown


Tony

  • Support Staff

June 6, 2023 at 11:53 am

Hi there,

Can you post the steps you are taking to get to the above error, please?


haerzchlopfaehebamme

June 6, 2023 at 2:15 pm

Hi Tony,
thanks for your reply.
I need to ask my client tomorrow what she’s been doing.
Kind regards,
Lukas


Tony

  • Support Staff

June 7, 2023 at 7:31 am

From the error log, I can see where this error is coming from but I’ll need details of what they are inputting into the fields to narrow this down some.


haerzchlopfaehebamme

June 7, 2023 at 7:42 am

Thanks, Tony,
I’m waiting for feedback from my client.
In the meantime I was able to confirm the transaction with a user with exactly the same privileges, but probably doing something different from the client’s way to do it.
She’ll soon need to confirm another transaction and I bet she’ll produce the same error again.
I’ll keep you updated.
Best,
Lukas


Tony

  • Support Staff

June 7, 2023 at 7:44 am

Sure, that’s fine.

From the error log its from this field: https://monosnap.com/file/whiRjr1vha4RwZA8jxERKS4oE04lKp

But what they are entering there to get that specific error, I can’t figure out 🙂


haerzchlopfaehebamme

June 7, 2023 at 7:56 am

Strange thing. When I confirmed the transaction, the amount of the invoice was already in that field.
I doubt that the client replaced it with 0, and I can’t imagine that it was 0 instead of the amount of the invoice.
I hope she remembers.


Tony

  • Support Staff

June 7, 2023 at 11:22 am

The 0 has nothing to do with the error here, that’s an example from my site.

If you apply a payment to a transaction where no monies is owed, the form defaults to 0, that’s just from my opening up the modal to show the form.

For the error to have been thrown something other than a number needed to have been input into that field, but when I add and strings or characters the form handles it without an error being thrown. Your customers site does not, so I need to know what they input to reproduce.


haerzchlopfaehebamme

June 7, 2023 at 1:34 pm

Hi Tony,
LOL, please excuse me assuming prematurely that the solution could have been that simple.
Best,
Lukas


haerzchlopfaehebamme

June 9, 2023 at 6:32 am

This reply has been marked as private.


haerzchlopfaehebamme

June 9, 2023 at 7:57 am

Addendum: If she’s logged in with the user I am able to confirm the transaction with, the same error happens.
I doubt that it’s caused by her PC or browser – or could it be that I’m wrong?


Tony

  • Support Staff

June 9, 2023 at 4:03 pm

Hmmm so this is strange!

Its a combination of the ‘CHF’ at the beginning and .00 at the end that is causing this.

However, when I test this locally, the payment modal does NOT include thos values by default.

So my transaction: https://monosnap.com/file/nlufft4abIQ54Dx8FlrAJNjTwIu6Ad

Then payment modal: https://monosnap.com/file/PNmkaQgjXDrI5mbV9HkjTfIE9vx6Za

That would work fine.

But if add CHF1234.00 not the field: https://monosnap.com/file/ezX1DEIx2ipWu8qciCNlIb5ivqVr0n

That’s when I get the fatal.

So right now for your client, if they just input the number into the field and remove the currency from the beginning of the field it will allow them to work around this.

Can you I take a look at the admin settings on that site? I’d like to try and reproduce the setup to see if I can reproduce this properly. If so you can send temp login details using this form:

https://eventespresso.com/send-login-details/


haerzchlopfaehebamme

June 27, 2023 at 3:15 am

Hi Tony,
Last time we were in contact I gave you admin access to the site where this issue still isn’t resolved, but closed, probably because I didn’t insist:
https://eventespresso.com/topic/error-when-confirming-a-transaction/?view=all#post-344163
I was in the hospital for some days right after and therefore lost the thread.
Is there any progress?
Best,
Lukas


Tony

  • Support Staff

June 27, 2023 at 6:11 pm

Hi Lukas,

Currently, I am unable to reproduce this without manually applying the values myself.

I tried to log back into your site again to go over the settings once again but it looks like the credentials are no longer valid.

Can you resubmit those using this form:

https://eventespresso.com/send-login-details/

I’ll take another look to see if there is anything I’m missing.


Tony

  • Support Staff

June 27, 2023 at 6:12 pm

Side note I have reopened your original thread an merged them together so it’s easier to follow long.

Viewing 12 reply threads

The support post ‘Error when confirming a transaction’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso