-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refs #3260975 replaces Deprecated call to drupal_set_message #689
Conversation
I guess ideally this would include test coverage. If @KarinG can point me in the right direction as to where this might be best added happy to work on this. |
Hi Luke! I've kicked off the tests. Thank you for catching this. Re: tests -> we have live/functional tests for Dummy, iATS Payments, Pay later and Stripe (see However for this fix - since it's not data critical - I'm happy to merge it once it passes existing tests. |
Oh I think that's a real error in CiviCRM dev-master. I'll dig in and pull out the browser artifacts. |
I see the same error on all PRs in the last 5 days. Seems like it was working 8 days ago. |
I don't see any Failed Payments on the iATS side of things for dev-master (and the others all Settled). |
Yes - something has gone sideways in CiviCRM dev-master. |
I've posted on Mattermost -> Product-Maintenance channel -> sometimes Seamus will know exactly which PR may have caused an issue :-) https://chat.civicrm.org/civicrm/pl/esi8wyr7hbr8pkier88k99emdc |
Ok reproduced by upgrading one of my live sites to dev-master ->
|
Ok tracked it down to this PR in civicrm core -> it touches the billing fields -> civicrm/civicrm-core#21583 Reverting that PR -> all is well again. Talking to Dave about how to solve this issue in civicrm core. |
src/WebformCivicrmPostProcess.php
Outdated
drupal_set_message(ts('Payment approval failed with message: ') . $e->getMessage(),'error'); | ||
\Drupal::messenger()->addError(ts('Payment approval failed with message: %error ', [ | ||
'%error' => $e->getMessage(), | ||
])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stesi561 Space fix required? should be 2 instead of 4 - https://www.drupal.org/docs/develop/standards/coding-standards#indenting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Fixed.
Thanks for editing Luke. Re-running this against D9 (5.35 - RC). |
Overview
Replace deprecated call to drupal_set_message - as per https://www.drupal.org/project/webform_civicrm/issues/3260975
Before
As the function is now removed from 9.x fatal error occurs instead of displaying an error to the user.
After
Error message is passed through to the user.