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.
Attempting to create new Forum Topics generates an error:
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 232 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
and
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->getFromStaticCache() (line 144 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Forum topic is created, but it does not appear in the forum list.
Additional warning attached.
Comment | File | Size | Author |
---|---|---|---|
drupalforumerror.txt | 5.93 KB | grafikat |
Comments
Comment #2
grafikat CreditAttribution: grafikat commentedComment #3
grafikat CreditAttribution: grafikat commentedUpdated drupal version number
Comment #4
cilefen CreditAttribution: cilefen commentedComment #5
cilefen CreditAttribution: cilefen commentedThis aspect makes this a Major bug.
Comment #6
gnugetI cannot reproduce the bug.
Can you please provide a list of steps to reproduce it?
Thanks!
Comment #7
larowlanComment #8
Bernsch CreditAttribution: Bernsch commentedI install the integrity Theme and activated it as my basic theme.
I become this error message:
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 232 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).
I use Drupal 8.0.2
Comment #9
gnuget@Bernsch
Your problem is not related with this one, you should open a new issue in the Integrity Theme not here, but looking in your issue, the problem is to you need to set images for the slideshow :-)
Comment #10
infopicard CreditAttribution: infopicard as a volunteer commentedI have the same issue
After a migration from D6>D8
All Forum articles have been migrated "successful", also the forum structure (by taxonomy), but all article have not two fields, "Forum" and "Forums"
where Forum is filled with the migrated Forum title and "Forums" is empty. "Forums" it the D8 entity
It seems to be an issue for the Migrate D6>D8 team?
Comment #11
mikeryanI've reproduced this issue in testing #2690001: Migrate: Don't deduplicate forum vocabulary - the root problem is migration creating the taxonomy term reference field as "forums" rather than using the existing field with machine name "taxonomy_forums". Let's address this issue as a follow-up to that one.
Comment #12
mikeryanDependent issue was committed, this one is open for business.
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedI am unable to reproduce the array flip error. Adding new forum topics is working fine for me. Anyone still having this problem?
The problem of having two forum fields, #10, now has it's own issue, #2864984: Two Forum fields on add forum topic page.
Comment #15
mikeryanI believe this is covered by #2669030: D6 Forum vocabulary is migrated to the wrong D8 field name.