Problem/Motivation

ge Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 264 of /data/disk/o1/static/OS-5.5/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php) #0 /data/disk/o1/static/OS-5.5/html/core/includes/bootstrap.inc(587): _drupal_error_handler_real(2, 'array_flip(): C...', '/data/disk/o1/s...', 264, Array) #1 [internal function]: _drupal_error_handler(2, 'array_flip(): C...', '/data/disk/o1/s...', 264, Array) #2 /data/disk/o1/static/OS-5.5/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(264): array_flip(Array) #3 /data/disk/o1/static/OS-5.5/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(249): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #4 /data/disk/o1/static/OS-5.5/html/core/lib/Drupal/Core/Entity/EntityBase.php(531): Drupal\Core\Entity\EntityStorageBase->load(NULL) #5 /data/disk/o1/static/OS-5.5/html/profiles/contrib/social/modules/social_features/social_landing_page/social_landing_page.module(285): Drupal\Core\Entity\EntityBase::load(NULL) #6 /data/disk/o1/static/OS-5.5/html/profiles/contrib/social/themes/socialbase/src/Plugin/Preprocess/Node.php(230): _social_landing_page_get_hero_image(Object(Drupal\node\Entity\Node)) #7 /data/disk/o1/static/OS-5.5/html/themes/contrib/bootstrap/src/Plugin/Preprocess/PreprocessBase.php(51): Drupal\socialbase\Plugin\Preprocess\Node->preprocessElement(Object(Drupal\bootstrap\Utility\Element), Object(Drupal\bootstrap\Utility\Variables)) #8 /data/disk/o1/static/OS-5.5/html/themes/contrib/bootstrap/src/Bootstrap.php(1405): Drupal\bootstrap\Plugin\Preprocess\PreprocessBase->preprocess(Array, 'node', Array) #9 /data/disk/o1/static/OS-5.5/html/themes/contrib/bootstrap/bootstrap.theme(118):

Steps to reproduce

Create Landing page with empty section.

Proposed resolution

Add check for empty section in _social_landing_page_get_hero_image()

Comments

Yuri created an issue. See original summary.

Yuri’s picture

It may be similar to to https://www.drupal.org/project/drupal/issues/3040133

calling Entity:load(NULL), that's not supported

jaapjan’s picture

Status: Active » Postponed (maintainer needs more info)

Could you provide steps on how to reproduce?

ronaldtebrake’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)
ressinel’s picture

Version: 8.x-5.x-dev » 11.0.x-dev
Issue summary: View changes
Status: Closed (outdated) » Active
ressinel’s picture

Status: Active » Needs review
navneet0693’s picture

Status: Needs review » Reviewed & tested by the community
ressinel’s picture

Status: Reviewed & tested by the community » Fixed

It will be released in Open Social 11.0.14, 11.1.5, 11.2.1, and 11.3.0-beta1

  • Ressinel committed cb6eaee on 11.0.x
    Merge pull request #2904 from goalgorilla/issue/3063436-...

  • Ressinel committed 7df5fa1 on 11.1.x
    Merge pull request #2904 from goalgorilla/issue/3063436-...

  • Ressinel committed 64d23df on 11.2.x
    Merge pull request #2904 from goalgorilla/issue/3063436-...

  • Ressinel committed d1062f5 on 11.3.x
    Merge pull request #2904 from goalgorilla/issue/3063436-...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

navneet0693’s picture