Unable to find the wrapper "feed" RSSParser Library |
[eluser]nnash[/eluser]
I'm currently having a problem with the RSSParser Library (the one in the CI wiki) where I am getting this error Code: Severity: Warning I believe it is in reference to this code Code: <?php I also get this error: Code: Severity: Warning For some reason the RSSParser library doesn't seem to be liking the "feed://" part of the rss url, does anyone know how to fix this?
[eluser]Sverri[/eluser]
The first error message says that the function, file_get_contents() (which is used in the RSS class), is missing the wrapper (the code that handles the feed:// protocol). Try changing the protocol to http:// instead. The second error message says that it cannot find anything at the provided URL. This can mean a lot of things, but usually it is because there simply is nothing there. Again, changing the protocol to http:// may fix this. Please do not take this the wrong way, but PHP produces excellent error messages. Use them. You will run into them frequently, and the answers are right in-front of you, more often than not.
[eluser]nnash[/eluser]
If I change the wrapper to http:// these messages are produced: Code: Severity: Notice Edit: The undefined cache_dir variable on line 114 of the RSSParser library that CodeIgniter published on their wiki is simple a log_message() that can be commented out. End Edit Now it is saying there is compile error with the RSSParser class, since I did not write it I don't really know what the error could be since I just copy and pasted it from the CI wiki, which you can find here http://codeigniter.com/wiki/RSSParser/. Code: Severity: Notice The second error message is in reference to the fifth line in the second code block on my first post.
[eluser]nnash[/eluser]
I think one of the things that I need to do to get this to work is to get feed listed as a registered php stream. Does anyone know how to easily do this? I'm using MAMP. |
Welcome Guest, Not a member yet? Register Sign In |