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.
Delighted to find the D8 dev version of the this module :)
The following error thrown during content generation with devel_generate and latest Drupal 8:
$ drush genc 40 --types=blog array_filter() expects parameter 1 to be array, null given ContentDevelGenerate.php:308 [warning] Finished creating 40 nodes [status] Generate process complete.
Errors no matter what content type I attempt, and fails to generate any content.
I have a fix, patch to follow very shortly. After the fix was very helpful in making me content to test whith. Expect to be using Devel a lot with Drupal 8 so will look out for other issues and fixed etc.
Comment | File | Size | Author |
---|---|---|---|
#3 | generate_content_error-2229267-3.patch | 897 bytes | chris_hall_hu_cheng |
Comments
Comment #1
chris_hall_hu_cheng CreditAttribution: chris_hall_hu_cheng commentedFixed the formatting of the code etc.
Comment #2
chris_hall_hu_cheng CreditAttribution: chris_hall_hu_cheng commentedChanged title.
Comment #3
chris_hall_hu_cheng CreditAttribution: chris_hall_hu_cheng commentedSeems to be down to a typo, extra level occidentally added to the values array .
This patch fixed it for more anyway.
Comment #4
chris_hall_hu_cheng CreditAttribution: chris_hall_hu_cheng commentedPlease confirm the fix.
Comment #5
gagarine CreditAttribution: gagarine commentedIt works for me
Comment #6
moshe weitzman CreditAttribution: moshe weitzman commentedAssigning to pcambra
Comment #7
pcambraThanks for the patch and the heads up :)
Tested and fixed!