failed to open stream: no suitable wrapper could be found

joshmiller - May 5, 2009 - 17:27
Project:Taxonomy Image
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I couldn't get the images to display and went and checked out the error log. Below is the error that I was getting.

getimagesize(http://s663--.gridserver.com/sites/default/files/category_pictures/equip...) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: no suitable wrapper could be found in /nfs/c04/h03/mnt/66323/domains/modernb--.com/html/sites/all/modules/taxonomy_image/taxonomy_image.module on line 267.

For some reason, the $fullpath that uses "file_directory_path()" is returning an external link and not an internal link on line 213 of taxonomy_image.module.

For the external link to work,

allow_url_fopen = On

has to be added to your php.ini. This seems like an unnecessary security risk when an internal link should just be internal.

#1

Grumot - June 2, 2009 - 08:23

subscribing

#2

com2 - June 14, 2009 - 10:29
Priority:normal» critical

bump. Don't know why this was working before. Most likely because I moved the site to production server. If this setting is security related I can imagine why it would not be set on a production server

Not every user can just manipulate their php ini and this cannot be handled in .htaccess either, so I changed this to critical.

#3

com2 - June 14, 2009 - 11:11
Version:6.x-1.6» 6.x-1.x-dev
Status:active» fixed

I tried to fix it myself and succeeded, but then I realised that the dev version had the same.

#4

System Message - June 28, 2009 - 11:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.