Call to undefined function .... in options_allowed_values()

Created on 3 July 2020, over 4 years ago
Updated 1 November 2023, about 1 year ago

The background/context of this issue is a D7 to D8 migration.

A function was defined on the D7 side to return the Allowed Values for a multi-select field.
But the function did not exist (yet) on the D8 side.
Resulting in a White Screens of Death.

A more helpful outcome would be where the code "limps on" to the next page, so that the damage can be assessed.

The attached patch establishes this.

🐛 Bug report
Status

Needs work

Version

9.5

Component
Field 

Last updated 1 day ago

Created by

🇦🇺Australia rdeboer Melbourne

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇨Ecuador dmezquia UTC-5

    This error also happens when calling a function of a disabled module, patch #2 solves it, since it first validates if the function exists.

    Or is there another way to check this so that it doesn't call a function of a non-installed module?

Production build 0.71.5 2024