🇵🇱Poland @Tesam

Account created on 27 January 2020, almost 5 years ago
#

Recent comments

🇵🇱Poland Tesam

Need help and update/solution/patch:

Deprecated function: class_exists(): Passing null to parameter #1 ($class) of type string is deprecated in _entityreference_get_behavior_handler() (line 197 from /modules/entityreference/entityreference.module).

Code of file in that place:
190 function _entityreference_get_behavior_handler($behavior) {
191 $object_cache = drupal_static(__FUNCTION__);
192
193 if (!isset($object_cache[$behavior])) {
194 ctools_include('plugins');
195 $class = ctools_plugin_load_class('entityreference', 'behavior', $behavior, 'class');
196
197 $class = class_exists($class) ? $class : 'EntityReference_BehaviorHandler_Broken';
198 $object_cache[$behavior] = new $class($behavior);
199 }
200
201 return $object_cache[$behavior];
202 }

Production build 0.71.5 2024