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 |
Jump to:
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 = Onhas to be added to your php.ini. This seems like an unnecessary security risk when an internal link should just be internal.

#1
subscribing
#2
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
I tried to fix it myself and succeeded, but then I realised that the dev version had the same.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.