File load error on home page - Check File exist

Created on 9 May 2024, 7 months ago
Updated 21 August 2024, 4 months ago

Problem/Motivation

When I installed the theme and set it as default and checked home page I got some errors.

Warning: Undefined array key 0 in smallbusiness_preprocess_page() (line 50 of themes\contrib\smallbusiness\smallbusiness.theme).
Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).
Warning: Undefined array key 0 in smallbusiness_preprocess_page() (line 50 of themes\contrib\smallbusiness\smallbusiness.theme).
Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).
Warning: Undefined array key 0 in smallbusiness_preprocess_page() (line 50 of themes\contrib\smallbusiness\smallbusiness.theme).
Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).
Warning: Undefined array key 0 in smallbusiness_preprocess_page() (line 50 of themes\contrib\smallbusiness\smallbusiness.theme).
Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).
Warning: Undefined array key 0 in smallbusiness_preprocess_page() (line 50 of themes\contrib\smallbusiness\smallbusiness.theme).
Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of core\lib\Drupal\Core\Entity\EntityStorageBase.php).

Steps to reproduce

1) Install the theme and set it to default.
2) check the home page

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India adarshv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @adarshv
  • First commit to issue fork.
  • Merge request !10Issue#3446259: Resolve php issue. → (Open) created by sakthi_dev
  • Status changed to Needs review 7 months ago
  • 🇮🇳India sakthi_dev

    Please review.

  • Status changed to Needs work 7 months ago
  • 🇵🇭Philippines paraderojether

    Hi sakthi_dev

    I reviewed MR!10, however it the MR is skipped or not applied cleanly.

    smallbusiness git:(main) ✗ curl https://git.drupalcode.org/project/smallbusiness/-/merge_requests/10.diff | git apply -v
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   623    0   623    0     0   1232      0 --:--:-- --:--:-- --:--:--  1248
    Skipped patch 'smallbusiness.theme'.
    smallbusiness git:(main) ✗

    Please check and advise.
    Thank you.

  • First commit to issue fork.
  • Status changed to Needs review 7 months ago
  • 🇮🇳India arunkumark Coimbatore

    Rerolles the patch to resolve the issue.

  • 🇮🇳India Kanchan Bhogade

    Hi
    I've tried to apply MR !10 on Drupal 10
    But MR is failing
    Adding error screenshot for reference

  • 🇮🇳India chandansha

    i checked 3446259-resolve-php-issue branch and find theme drupal version 8. if i am not wrong. so, you are created 8 version branch and here you selected 2.0.1 version.
    please pin me if i am wrong.
    Thanks!!

  • 🇮🇳India arunkumark Coimbatore

    Created patch for 1.0.x version. Seems it was the parent branch for the 2.x tags. Already fix available but added additional condition.

Production build 0.71.5 2024