Hi there,

I've successfully integrated the module into a site I'm developing, however some images around the site are in blocks so I've tried to make them responsive by creating a file display type. When setting the Picture module active for this file display type I get the following error:

Fatal error: Call to undefined function file_entity_file_is_readable() in \sites\all\modules\picture\picture.module on line 621

Any ideas?

Comments

attiks’s picture

This function only exists in 7.x-2.x version, are you using 7.x-1.x?

darren oh’s picture

Title: Error when assigning Picture to file type display » Alpha releases of File Entity break Picture module
Version: 7.x-1.1 » 7.x-1.x-dev
Assigned: Unassigned » darren oh
Category: support » bug

I’m using 7.x-2.x-alpha2, and I still get errors. Picture module is checking $file->image_dimensions['width'] and $file->image_dimensions['height'], which have been moved to $file->metadata['width'] and $file->metadata['height'].

darren oh’s picture

Status: Active » Needs review
StatusFileSize
new1.47 KB
darren oh’s picture

attiks’s picture

I released a new version today, did you try it with 7.x-1.2?

darren oh’s picture

Yes, that’s why I submitted a new patch.

attiks’s picture

Status: Needs review » Fixed

Thanks, fixed and pushed

darren oh’s picture

Fixed in commit d9547cf.

Status: Fixed » Closed (fixed)

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

  • Commit d9547cf on 7.x-1.x, picturefill2 authored by Darren Oh, committed by attiks:
    Issue #1933294 by Darren Oh | DenimTiger: Fixed Alpha releases of File...

  • Commit d9547cf on 7.x-1.x, picturefill2, 7.x-2.x authored by Darren Oh, committed by attiks:
    Issue #1933294 by Darren Oh | DenimTiger: Fixed Alpha releases of File...