Hello

inside hook_file_presave (imageapi_optimize_file_presave) there is this code:
var_export($file); exit;

Which causes every file upload, import or anything related to saving files to die and output an export of the file, this render this module unfit for prod environments.

This hook should be removed from code.

CommentFileSizeAuthor
image_optimize.module.patch558 bytesBryanRice
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BryanRice created an issue. See original summary.

Steven Jones’s picture

Status: Active » Closed (cannot reproduce)

I can't see that hook implemented here:
http://cgit.drupalcode.org/imageapi_optimize/tree/imageapi_optimize.module
Maybe someone had added that to your codebase?