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.

CommentFileSizeAuthor
drupalforumerror.txt5.93 KBgrafikat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grafikat created an issue. See original summary.

grafikat’s picture

Title: Creating Fourm Topic generates warning » Creating Forum Topic generates warning
grafikat’s picture

Version: 8.1.x-dev » 8.0.1

Updated drupal version number

cilefen’s picture

Title: Creating Forum Topic generates warning » Creating Forum Topic generates array_flip warning in EntityStorageBase
cilefen’s picture

Priority: Normal » Major

Forum topic is created, but it does not appear in the forum list.

This aspect makes this a Major bug.

gnuget’s picture

I cannot reproduce the bug.

Can you please provide a list of steps to reproduce it?

Thanks!

larowlan’s picture

Status: Active » Postponed (maintainer needs more info)
Bernsch’s picture

I 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

gnuget’s picture

@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 :-)

infopicard’s picture

I have the same issue

array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->getFromStaticCache()

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?

mikeryan’s picture

Title: Creating Forum Topic generates array_flip warning in EntityStorageBase » Migrated forum topics generate array_flip warning in EntityStorageBase
Version: 8.0.1 » 8.2.x-dev
Component: forum.module » migration system
Status: Postponed (maintainer needs more info) » Postponed

I'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.

mikeryan’s picture

Status: Postponed » Active

Dependent issue was committed, this one is open for business.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

quietone’s picture

I 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.

mikeryan’s picture