Closed (fixed)
Project:
FeedAPI ImageGrabber
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Apr 2009 at 00:26 UTC
Updated:
5 May 2009 at 01:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
publicmind commentedCan you provide some more details:
1) web server
2) OS
3) PHP version and whether safe mode is enabled.
4) which user you are setting the cron for, does the user have write access to the temp directory?
you can look here for more details on reasons for warnings produced by fopen.
Comment #2
publicmind commentedcan you tell me the feed url you were parsing?
Comment #3
bflora commentedTry this.
http://pipes.yahoo.com/pipes/pipe.run?_id=3jqQ6rfF3RGvTD3CrbQIDg&_render...
It's happening for all feeds, though.
Comment #4
publicmind commentedI did not get any such warning:
http://ganesha.codespry.com/nitin/drupal/feed-item/881
may be you should try the new rc1 release.
I think the warning you were getting was because of the following tags on their pages:
now the src of the
tag is actually not an image. The new release will be able to handle this.
Leave your response.
Comment #5
publicmind commentedthe link went missing from the last post..
this is what I found on their page.
Comment #6
equinox commentedI am unable to pull any images from my first test feed, although I am pretty sure there should be a few coming through.
On this page for example
http://www.nasa.gov/mission_pages/kepler/news/keplerm-20090413.html
There is one picture that I would expect to fit my criteria. Every page access in my feed (28 in my trial) produces 2 error messages in the log as follows:
file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /usr/www/users/equinox/foundonmars/sites/all/modules/feedapi_imagegrabber/feedapi_imagegrabber.module on line 443.
file_get_contents(http://www.nasa.gov/mission_pages/kepler/news/keplerm-20090413.html) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /usr/www/users/equinox/foundonmars/sites/all/modules/feedapi_imagegrabber/feedapi_imagegrabber.module on line 443.
Will try a different feed source.
Comment #7
publicmind commentedIt seems like your PHP safe mode is on which disallows the URL access from file_get_contents(). You will face the same problem if you will use the Common Syndication Parser in FeedAPI.
Try disabling the safe mode if you can, it will do the trick i guess.
Comment #8
equinox commentedUsing Drupal's system info, it would appear that my safe mode is off. Screen segment attached. I have no indication that Common Syndication Parser is failing, no errors and output on this simple feed is what I would expect. Sorry to involve you in deciphering my server configuration, but the second screen shot shows a php configuration called allow URL, I know next to nothing of these parameters but wondered if this might have something to do with it?
Comment #9
publicmind commentedI think this might be the problem, because when I checked my PHP info, it has the allow_url_fopen as "ON". Why don't you try toggling it and report back?
regards
Comment #10
bflora commentedWhat file would I edit to make that change?
Comment #11
publicmind commentedYou will have to edit the php configuration file i.e. php.ini .
Change the following line:
allow_url_fopen = Off
to
allow_url_fopen = On
Comment #12
equinox commentedSuccess!
And the results are awesome! Thank you so much - my feeds are worldclass now. Great module.
http://foundonmars.com/feed-item/390
FYI: I made the change to php by adding this line within my .htaccess