Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
almost 2 years ago 3:27pm 10 February 2023 - π΅π±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 } - π¨π¦Canada joseph.olstad
@Tesam, you need to upgrade to
1.6.1-rc3
https://www.drupal.org/project/entityreference/releases/7.x-1.6-rc3 β
- π¨π¦Canada joseph.olstad
please try the latest release
https://www.drupal.org/project/entityreference/releases/7.x-1.9 β