Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Creating a new importer throws php warning below, seems like PHP 7.2 compatibility issue
Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\entity_import\Form\EntityImporterOptionsForm->buildForm() (line 106 of /modules/contrib/entity_import/src/Form/EntityImporterOptionsForm.php).
using D8.7.1 with PHP 7.2.10
Comment | File | Size | Author |
---|---|---|---|
#6 | entity_import-3053661-6.patch | 523 bytes | droath |
#2 | entity_import-3053661-2.patch | 900 bytes | jigish.addweb |
Comments
Comment #2
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commented@perke, Please find the below-attached patch, that resolves the above mentioned error.
Thanks
Comment #3
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedComment #4
perkePatch tested and works as expected, thanks @jigishaddweb!
Comment #5
perkehm, I'll have to take that back... I was unable to add unique identifier after applying patch. Clicking the "Add identifier" button just makes the ajax call but does not display the form.
However, on the importer that already had an identifier set, I was able to add another identifier.
Reverting the patch fixed it.
Comment #6
droath CreditAttribution: droath at Aten Design Group commentedI've looked into the issue, here is a quick code change that should fix the problem you're experiencing.
Comment #7
droath CreditAttribution: droath at Aten Design Group commentedComment #8
firfin CreditAttribution: firfin commentedWorks as advertised. Thanks!
Brilliant module, I love it!
Comment #10
droath CreditAttribution: droath at Aten Design Group commentedFixed! Pushed into the latest dev release.
Comment #11
droath CreditAttribution: droath at Aten Design Group commented