Admin email sent twice on many orders

Created on 28 July 2020, about 5 years ago
Updated 18 August 2025, about 2 months ago

Seems to be since updating PHP to 7.4 possibly - we are getting two admin order emails sent through on paypal WPS orders (Sagepay ones are fine).

I split out the sagepay and paypal rules and changed the paypal rule to when an order is first paid in full, condition being order balance <=0

This seems to have made no difference.

Is there anything else I can add to the rule to stop the duplication?

Drupal 7.72
commerce 1.5
commerce_paypal 7.2.7

EDIT:
bit more info trying to spot a pattern - doesnt seem to matter if logged in or not.

Since I changed the rule to "first paid in full" it seems to send 2 each time so rolling this back

What I dont know on each order is whether the buyer clicked to go back to the site or not.

DUPLICATE EMAILS SENT
2 x logged in
Status has been set to Pending (previously: Checkout: Complete).
Status has been set to Checkout: Complete (previously: Checkout: Payment).
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

2 x anon
Status has been set to Pending (previously: Checkout: Complete).
Status has been set to Checkout: Complete (previously: Checkout: Payment).
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

3 x logged in
Status has been set to Pending (previously: Checkout: Complete).
Status has been set to Checkout: Complete (previously: Checkout: Payment).
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

2 x anon
Status has been set to Pending (previously: Checkout: Complete).
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

2 x logged in
Status has been set to Pending (previously: Checkout: Complete).
Status has been set to Checkout: Complete (previously: Checkout: Payment).
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

2 x logged in
Status has been set to Pending (previously: Checkout: Complete).
Status has been set to Checkout: Complete (previously: Checkout: Payment).
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

OK ORDERS
logged in
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

logged in
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

anon
Payment of £xx submitted via PayPal WPS.
Order has been paid in full.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

PayPal WPS

Created by

🇬🇧United Kingdom kevster

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024