Thanks for a great module, it solves a series of problem. Everything seems to be working fine except that I get a series of errors thus:
1. Go to my site settings
2. Go to content
3. Add web feed
And at the top of the screen, I get the following red error box:
# warning: realpath() [function.realpath]: Unable to access /usr/local/psa/home/vhosts/lack-of.org/httpdocs/files/mysite/feed-2.com/itsjustyou/AAAAxdOI3XU/AAAAAAAAAAA/M3sY_moTzCA/s64-c/itsjustyou in /usr/local/psa/home/vhosts/lack-of.org/httpdocs/includes/file.inc on line 279.
# warning: realpath() [function.realpath]: Unable to access /usr/local/psa/home/vhosts/lack-of.org/httpdocs/files/mysite/feed-2.com/itsjustyou/AAAAxdOI3XU/AAAAAAAAAAA/M3sY_moTzCA/s64-c in /usr/local/psa/home/vhosts/lack-of.org/httpdocs/includes/file.inc on line 285.And there is one of those entries (two warnings) for most of the feeds (not all, oddly) I currently have on the page. The name of the feed features above is 'itsjustyou'. All the feed are added in the News Aggregator and they are working fine. I don't see any errors there. No doubt it's a config issue but any help would be greatly appreciated.
I haven't tried removing and re-adding, although I feel this might be the next step.
(Once I get the final site running properly and configured, I share as an example of using MySite as my users are likely to be the sort to use loads of Droplets.)
Many thanks in advance!
Comments
Comment #1
agentrickardThis looks like a file writing issue. Some questions.
- Do you have the MySite Icons module enabled?
- If yes, does the error go away when you disable the MySite Icons module?
The MySite Icons module tries to take the image associated with a feed and write it to a local directory. Two possible things to check:
- Check to see that your temporary files directory is set correctly. This is the 'file system' settings for Drupal, found at the path 'admin/settings/file-system'.
- You could also disable this feature by editing the file 'mysite/plugins/types/feed.inc'. Edit these functions:
function mysite_type_feed_options()lines 109 - 113 -- just comment them out like so:This should make the problem go away. My guess here is that either the temp directory isn't set correctly, or the image value in the feed is malformed is some way.
A URL for the feed would help in debugging.
Comment #2
agentrickardThere should also be a message in your Drupal logs, filter the logs for messages of type 'MySite' to see what errors were recorded.
Comment #3
agentrickardI'm about ready to roll a bugfix release, and would like to solve this issue first, so feedback is welcome.
Comment #4
roblang commentedResolved! Turning off the icons (in the main UI, no code change needed) did the trick. We weren't really using them, just experimenting.
Thanks for the tip about the logs, I didn't know that. This is what it produced: So, nice and easy to understand.
Type MySite
Date Wednesday, October 24, 2007 - 09:59
Location http://www.lack-of.org/mysite/2/content/feed
Referrer http://www.lack-of.org/mysite/2/content
Message The transfer of a MySite feed icon failed -- could not copy file -- for Feed ID 3.
This solves the problem for me but for others who might be experiencing the same...
1. I do have the temp and pics directory set correctly. I do have an issue where any folders that drupal creates automatically, I can't change the priviledges on. I think that might be my host. Instead, I create my own directories on the server via FTP and then set them as 777, updating the admin system accordingly.
Seeing as I can recreate the bug, is there any other debug info you'd like me to correct or do you think it's probably a permissions problem?
I see the files/mysite folders get created automatically, they don't seem to inherit the 777 write access for the public user by default for my host. This is probably the issue. I shall take it up with my host and see if I can find a nice resolution which I can share.
Thanks again for your rapid and very useful response, Mr R.
Comment #5
agentrickardRob-
We should document whatever you discover, in case others run into the same issue. I don't think there is anything we can do about this issue from a code standpoint.
Except -- make the local download of aggregator icons an option in the UI -- I should be able to fix that pretty easily.
Then the section of code I told you to comment out would be enabled by a module setting, which would fix the problem.
Comment #6
agentrickardDid the MySite Icons settings page not give you a warning?
Because failure to warn you would also be a bug.
Comment #7
agentrickardFix has been committed to 5-2 and HEAD.
Comment #8
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.