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

OOFF Contribution Status change batch fails #721

Open
kainuk opened this issue May 31, 2024 · 8 comments
Open

OOFF Contribution Status change batch fails #721

kainuk opened this issue May 31, 2024 · 8 comments
Labels
bug Bug in the code needs funding
Milestone

Comments

@kainuk
Copy link
Contributor

kainuk commented May 31, 2024

After sending the xml file with OOFF transactions, successfully to the bank, the batch that updates the status from Pending to Complete fails. The batch stops in the screen below.

2024-05-31_08-23

In the background an error is thrown.

TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in implode() (line 187 of /var/www/html/web/sites/default/files/civicrm/ext/org.project60.sepa/CRM/Sepa/Logic/Queue/Close.php).

I have this error on the latest version of the sepa code with a PHP 8.1 install and CiviCRM 5.67 on Drupal 10.

@pminf
Copy link

pminf commented Jun 12, 2024

I can confirm this issue with latest CiviCRM 5.74.1, also using PHP 8.1.

In our case \CRM_Sepa_Logic_Queue_Close::$origin_status_ids is null, which leads to an error with the implode function.

ooff-debug

@bjendres bjendres added this to the 1.11 milestone Jun 12, 2024
@bjendres bjendres added the bug Bug in the code label Jun 12, 2024
@bjendres
Copy link
Member

Thanks for reporting @kainuk and @pminf! Will you be working on a PR, or "just" reporting?

@kainuk
Copy link
Contributor Author

kainuk commented Jun 12, 2024

Hi @bjendres, I have made a PR, see #722 , but I would like feedback on it.

@Detsieber
Copy link
Member

I had this same issue on a large install (CiviCRM 5.74.4, CiviSEPA 1.10.0(!)), and this fix (#722) is working for us.
Thank you @kainuk so much!

Please merge.

@peth-systopia
Copy link
Contributor

As @kainuk also indicates, this ist not (yet) a quick merge. So still 'needs funding'.

@Detsieber
Copy link
Member

I don't know under which conditions this error occurs - but it breaks CiviSEPA completely!

IMHO, releasing a fix is important.

bjendres added a commit that referenced this issue Aug 2, 2024
@peth-systopia
Copy link
Contributor

IMHO, releasing a fix is important.

Can we count on you for some funding then?

@pminf
Copy link

pminf commented Aug 12, 2024

We've tested https://github.com/Project60/org.project60.sepa/releases/tag/1.11-alpha1 including this fix successfully.

@bjendres bjendres modified the milestones: 1.11, 1.12 Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug in the code needs funding
Projects
None yet
Development

No branches or pull requests

5 participants