LogicException: Cannot create key "loading"

Created on 28 January 2025, 4 months ago

Problem

LogicException: Cannot create key "loading" on non-array value. in Drupal\Component\Utility\NestedArray::setValue() (line 154 of /code/web/core/lib/Drupal/Component/Utility/NestedArray.php).

This issue occured on PHP 8.3

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India Jeya sundhar Coimbatore

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

Merge Requests

Comments & Activities

  • Issue created by @Jeya sundhar
  • Pipeline finished with Success
    4 months ago
    Total: 410s
    #408139
  • 🇮🇩Indonesia gausarts

    Thank you.

    I am using PHP8.3, as well, and see no evils.

    I'd love to see a repro.

    Also paste the entire error message so we can trace the caller aka the bad boy.

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

  • First commit to issue fork.
  • 🇸🇰Slovakia trafo

    In my case symptoms were that BlazySettings::$storage['image'] was set to false. So when in Check::uiContainer() is image.loading set, you get "LogicException", because image is not an array.

    The issue was that I did not have image locally. In BlazyResponsiveImage::dimensions() is expected that in the end $dimensions is not empty and overrides image. But if you don't have dimensions end($dimensions) returns FALSE and you end up with $blazies->set('image', FALSE, TRUE);.

  • Pipeline finished with Success
    2 months ago
    Total: 257s
    #458092
  • 🇮🇩Indonesia gausarts

    @trafo, thank you.

    Please describe a reproduction.

    Bugs must have a consistent reproduction. Without one, it might be glitches, personal overrides, and many other reasons, which may or may not be valid. Only reproduction can validate it.

    Feel free to re-open or create a new thread.

Production build 0.71.5 2024