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.

CommentFileSizeAuthor
#5 2718223-5.patch837 bytesjoelpittet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Yuri created an issue. See original summary.

Yuri’s picture

Please anyone..?

Yuri’s picture

Priority: Normal » Major
joelpittet’s picture

Status: Active » Needs review

Entity 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.

joelpittet’s picture

FileSize
837 bytes

Here'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.

joelpittet’s picture

Status: Needs review » Fixed

I've pushed this up to -dev. Hopefully that resolves your problem.

  • joelpittet committed 51d28d1 on 7.x-3.x
    Issue #2718223 by joelpittet, Yuri: Fatal error: Call to undefined...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.