RSS Feed/News WarningPointsChange::applyUserBan does not reliably log errors

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,745
Points
823

Reputation:

If you have a warning action which applies a ban with a limited expiry, and then another warning action which applies a ban with no expiry, and the first user ban fails to apply, this results in the following being logged:
Code:

LogicException: Attempted to set 'end_date' while a save was pending without forceSet

The original failure reason is lost as \XF::logException in applyUserBan is operating in the current transaction while the 2nd exception is caught by the error...

Read more

Continue reading...
 
Status
Not open for further replies.
Top