Skip to content
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

Fatal error in WC_Payments_Task_Disputes->get_title() #6597

Closed
jessepearson opened this issue Jun 27, 2023 · 0 comments · Fixed by #6603
Closed

Fatal error in WC_Payments_Task_Disputes->get_title() #6597

jessepearson opened this issue Jun 27, 2023 · 0 comments · Fixed by #6603
Assignees
Labels
component: disputes Issues related to Disputes type: bug The issue is a confirmed bug.

Comments

@jessepearson
Copy link
Contributor

Describe the bug

The method get_disputes_needing_response() is called in get_title() and if null is returned, it leads to a warning when foreach is called on $active_disputes, and then a fatal when count is called on $active_disputes.

Looks like this was just introduced in #6548 .

@jessepearson jessepearson added type: bug The issue is a confirmed bug. component: disputes Issues related to Disputes labels Jun 27, 2023
@shendy-a8c shendy-a8c self-assigned this Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: disputes Issues related to Disputes type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants