I'm getting the following warning on a site running Entity API 7.x-1.6. I'm only getting the error on pages that have files attached. No error message if the page does not have files attached. According to PhpStorm, the 4th argument ($entity_type) value is not used anywhere in the entity_metadata_file_access() function anyway. Maybe other modules are using the parameter?

Warning: Missing argument 4 for entity_metadata_file_access() in entity_metadata_file_access() (line 814 of.../entity/modules/callbacks.inc

Drupal 7.43
Entity API 7.x-1.6
PHP 5.3.29
Hosted on Pantheon

Comments

jtjones23 created an issue.