Problem/Motivation

After install this module in Drupal 9.2 version, I'm receive the following errors in front page:

Notice: Trying to access array offset on value of type null in business_preprocess_page() (line 47 of themes/contrib/business/business.theme).
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 261 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Notice: Trying to access array offset on value of type null in business_preprocess_page() (line 47 of themes/contrib/business/business.theme).
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 261 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Notice: Trying to access array offset on value of type null in business_preprocess_page() (line 47 of themes/contrib/business/business.theme).
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 261 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Notice: Trying to access array offset on value of type null in business_preprocess_page() (line 47 of themes/contrib/business/business.theme).
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 261 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
Notice: Trying to access array offset on value of type null in business_preprocess_page() (line 47 of themes/contrib/business/business.theme).
Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 261 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Steps to reproduce

Install and enable the theme in Drupal 9.2.0 version.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 3224536-3.patch562 byteslarisse

Comments

larisse created an issue. See original summary.

larisse’s picture

Issue summary: View changes
larisse’s picture

Assigned: larisse » Unassigned
Status: Active » Needs review
StatusFileSize
new562 bytes

I created a patch to solve this issue.

gauravvvv’s picture

Thank you for working on this issue. Committed e8c3fae on 8.x-1.x

gauravvvv’s picture

Status: Needs review » Fixed
larisse’s picture

Thank you Gauravmahlawat.

Status: Fixed » Closed (fixed)

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