Closed (fixed)
Project:
Image javascript crop
Version:
7.x-1.x-dev
Component:
PHP
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Feb 2013 at 05:36 UTC
Updated:
15 Oct 2014 at 17:20 UTC
Jump to comment: Most recent
Use of drupal_realpath is deprecated because it breaks stream wrappers, e.g., using Amazon S3 as the filesystem with imagecrop causes it to break.
See this issue for more info for a similar issue that was with the xml sitemap module: http://drupal.org/node/1460594
Patch attached. Alternative to simply removing, you could maybe replace with file_create_uri() as replacement for drupal_realpath(), however it seemed that on most systems the uri functioned fine without any function call needed on it at all.
| Comment | File | Size | Author |
|---|---|---|---|
| imagecrop-no-realpath.patch | 690 bytes | coderintherye |
Comments
Comment #1
ianthomas_ukThis change has already been made in a fix for #1272162: Page Not Found when cropping with Media Module but was not in 7.x-1.x-rc3.
http://drupalcode.org/project/imagecrop.git/blobdiff/70ed56d53655b3beed9...
Comment #3
1kenthomas commentedCurrent -dev fails with at least Amazon S3 as filesystem.
Note: fails to read S3 files. Self-assigning for now... will try to get to work.
Comment #4
1kenthomas commentedComment #5
1kenthomas commentedWill open a new issue.