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

Problems with importing contributions in PHP8.1 #66

Open
TobiasVoigt opened this issue Sep 25, 2023 · 3 comments
Open

Problems with importing contributions in PHP8.1 #66

TobiasVoigt opened this issue Sep 25, 2023 · 3 comments

Comments

@TobiasVoigt
Copy link

When I try to import contributions in CiviCRM 5.64.4 with csvimport 1.2 in PHP8.1 I get a fatal error. Here's an excerpt from my log:

[25-Sep-2023 11:42:32 Europe/Berlin] PHP Warning: Undefined array key "external_identifier" in /html/wordpress/wp-content/uploads/civicrm/ext/nz.co.fuzion.csvimport/CRM/Csvimport/Import/Parser/Api.php on line 131

[25-Sep-2023 11:42:32 Europe/Berlin] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /html/wordpress/wp-content/uploads/civicrm/ext/nz.co.fuzion.csvimport/CRM/Csvimport/Import/Parser/Api.php:135

@eileenmcnaughton
Copy link
Owner

@TobiasVoigt I pushed up a fix that addresses the hard fail. However, I suspect it relates to the notice & in turn the reason you are using this import. I'm not too fussed about fixing Contribution import in this extension though cos I don't think it adds anything that enabling civi-import in core doesn't

@TobiasVoigt
Copy link
Author

Thanks Eileen! I didn't know about the civi-import core extension... I'll give that a try! Your extension keeps being an irreplaceable tool for importing more uncommon entities though.

@eileenmcnaughton
Copy link
Owner

@TobiasVoigt yeah I have been wondering about the use for the uncommon entities. I suspect it might always make sense to have that part in an extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants