I got this error and I could not use your module:

Faltal error: Call to undefined function _image_filename() in ...../editview.module on line 77.

Until...

I had another developer look at it and he told me that it was calling for the image module. I didn't have it installed, but when I did, it worked. None of your documentation said this was a dependency.

Comments

xjm’s picture

I am getting the same error. I don't think that the image module is a dependency for most things editview does, so it seems like it would be a good idea to check for the existence of the function or module in this bit of code here:

          // argh! image uploads actually don't work without the following
          // three lines. The file object returned by file_check_upload
          // is stored in a static variable, so it seems changes we make
          // to it are permanent. Because we're loading the node twice we
          // need to update the location of the uploaded image file or we
          // get an error thrown in image_prepare.
          $file = file_check_upload('image');
          $original_path = $node->images[IMAGE_ORIGINAL];
          $file->filepath = _image_filename($original_path, IMAGE_ORIGINAL) . $file->filename;
xjm’s picture

Status: Active » Fixed

This issue is resolved in the 1.0 release.

Status: Fixed » Closed (fixed)

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