Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When adding the VBO option 'Modify Entity Values' and hitting Apply, I get a white screen with the error:
Fatal error: Call to undefined function EntityDefaultMetadataController::bundleOptionsList() in /home/cdt/public_html/sites/all/modules/views_bulk_operations/actions/modify.action.inc on line 173
I couldn't find this in other issues.
I use only ECK entities.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2718223-5.patch | 837 bytes | joelpittet |
Comments
Comment #2
Yuri CreditAttribution: Yuri commentedPlease anyone..?
Comment #3
Yuri CreditAttribution: Yuri commentedComment #4
joelpittetEntity API has used a method in the form here:
$info['properties'][$key]['options list'] = array(get_class($this), 'bundleOptionsList');
entity/entity.info.inc:95
And ECK does it this way:
$property['options list'] = 'EntityDefaultMetadataController::bundleOptionsList';
eck/eck.module:404
Both are valid ways to define a method callback in PHP but most of the older code requires the ECK way.
I think that won't solve the problem if we fix that but will improve the code to cover both cases...
In this case because ECK is doing the way that works with VBO, the code is saying that that class doesn't exist! Which it does, so it's not loaded...
entity/entity.info.inc:121
This is where I need your help... first provide me with which version of entity module you are using, and if you aren't please use the latest 7.x-1.8 or better. Second if you have PHPStorm or another IDE with a breakpoint. Set a breakpoint at the failing line and see if the 'entity.info.inc' file has been loaded.
Comment #5
joelpittetHere's a patch which will remove the fatal but might not solve the real issue here, which is that Drupal hasn't loaded the entity.info.inc file for some reason.
Comment #6
joelpittetI've pushed this up to -dev. Hopefully that resolves your problem.