Drupal\splide\Entity\SplideBase::loadSafely(): Return value must be of type Drupal\splide\Entity\Splide, null returned

Created on 11 February 2025, 30 days ago

Problem/Motivation

As soon as I try to use splide in a view, I get:

php            Error      TypeError:
                                                     Drupal\splide\Entity\SplideBase::loadSafely(): Return
                                                     value must be of type Drupal\splide\Entity\Splide,
                                                     null returned in
                                                     Drupal\splide\Entity\SplideBase::loadSafely() (line
                                                     128

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States tjtj

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

Comments & Activities

  • Issue created by @tjtj
  • 🇮🇩Indonesia gausarts

    Thank you.

    ::loadSafely will return default, not null. Unless you delete the default via UI (un-)intentionally which is a big no.

    Solutions, one only depending on you situation:

    • Choose one optionset
    • Clear caches
    • Uninstall, and reinstall, if deleted
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024