I am building a site and I have the root directory protected with an .htaccess file. The taxonomy image module uses the complete url to the image when getting the size of the image (on line 267 of taxonomy_image.module) which breaks since it can't get to the image without a username and password. I notice that you've commented out line 266 which uses 'path' instead of url. Does 'path' work? Can I just uncomment that and comment out line 267? Thanks for your help.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | taxonomy_image_469434.diff | 1.59 KB | dalin |
Comments
Comment #1
dalinHere's a patch that alters things to use relative URLs instead of absolute. This has the added advantage of making getimagesize() check a local file rather than executing an HTTP request to the site - something we definitely want to avoid in high performance situations.
Comment #2
daniel wentsch commentedThanks a bunch, helped me getting rid of those nasty error messages on dev sites that are usually htaccess protected.
Comment #3
Hani commentedHi,
The best way to do this is by replacing
$img = getimagesize($image[$tid]->path);To
$ img = getimagesize($fullpath . $image[$tid]->path);This will fix allow_url_fopen been disable in the server, and its more faster.
Sorry, first post (-:
Comment #4
steven jones commentedThis is causing issues in shared environments too: #811192: getimagesize: Connection refused
Comment #5
steven jones commentedLooks like this has been fixed in the latest dev version? Can anyone confirm?
Comment #6
intyms commentedi also had this error "HTTP request failed! HTTP/1.1 404 Not Found in ...taxonomy_image\taxonomy_image.module on line 267."
I use public download method.
After upgrade to the latest dev, error disappeared.
Comment #7
tchurch commentedThe dev version seems to fix my issue #811192: getimagesize: Connection refused too (although I don't need module anymore).
Comment #8
steven jones commentedFixed then.