I'm attempting to get an RSS feed to show up on my forums but it just comes up blank. Here is the feed:
http://www.jeditemplearchives.com/content/backend.php
I've also tried this feed:
http://www.jeditemplearchives.com/content/modules.php?name=Feeds&fid=1&type=RSS2.0
and my feedburner feed:
http://feeds.feedburner.com/JediTempleArchives
None seem to work. I also tried a feed from CNN.
I checked through the forums and tried various things to no avail, including contacting my host and verifying that Fopen was ON.
My forums here:
http://www.jeditemplewarroom.com/forum/index.php
The feed is at the bottom of the page.
Thanks for any help!
Hi Rogue3,
Welcome to TinyPortal.
The first one works fine in an RSS feed block, the second one doesn't, and the third one is not an RSS feed. To use the 3rd one as an RSS feed, the link will need to be as follows ...
http://feeds.feedburner.com/JediTempleArchives?format=xml
ZarPrime
Thanks for checking those. Any ideas why my block comes up blank?
Rogue3,
I have no idea why it isn't working for you. As I said, 2 of the 3 work fine. In fact, one of those is running right now on our Team test site. Do you have any errors in your Forum error log that say anything about FOpen? If not, can you attach a screenshot of your block edit page for the block so that I can see it.
Thanks,
ZarPrime
OK, here are some errors from the error log. I can definately see the one related to the RSS feed. Does this mean the FOpen is not in fact open as my host says it is?
fclose(): supplied argument is not a valid stream resource
File: /home/content/j/t/w/jtwradmin/html/forum/Sources/TPmodules.php
Line: 1487
fread(): supplied argument is not a valid stream resource
File: /home/content/j/t/w/jtwradmin/html/forum/Sources/TPmodules.php
Line: 1478
fopen(http://www.jeditemplearchives.com/content/backend.php): failed to open stream: no suitable wrapper could be found
File: /home/content/j/t/w/jtwradmin/html/forum/Sources/TPmodules.php
Line: 1474
fopen(): URL file-access is disabled in the server configuration
File: /home/content/j/t/w/jtwradmin/html/forum/Sources/TPmodules.php
Line: 1474
Here's your problem right here:
URL file-access is disabled in the server configuration
Your host does not allow you to fetch external URL's. Many hosts disable this setting in PHP to keep their servers for secure. If you're host will not change this for your site, then you will not be able to use RSS feeds.
Thanks for your help. I've contacted my host again about this. Hopefully they will enable this!
Rogue3,
I will go ahead and mark this solved since the reason for the problem has been discovered. If you need any further help, please start a new topic.
ZarPrime
Thanks. I'd say we found our issue, but according to my host there is nothing wrong on that end. Here is the email I received after sending them the error messages:
QuoteThank you for your reply. We have reviewed your account and could not find any issues with the server. The type of error you are experiencing is most likely caused by coding or scripting. Unfortunately, because we do not provide coding support, we are unable to determine what specifically in your code may be causing the error.
You may wish to review your code to determine if there are any issues, because it appears that is the most likely cause of the error. You may also wish to enable detailed error messages as a temporary diagnostic measure. The procedure for this will vary, depending on the scripting language being used. We also recommend consulting both the vendor's online documentation, as well as the large number of online forums dedicated to coding and scripting.
If you determine there is no issue with the code itself and believe the issue is server related, please reply with specific evidence of this and we will investigate the matter further.
Please let us know if we can assist you in any other way.
Now I'm not sure what to do. Is it possible there is something wrong in the file TPmodules.php since all the errors point to that file?
OK, I fixed it! I couldn't believe it was that easy. But, I simply edited my php.ini file on the root of my server. Here's the full solution I found:
QuoteFind your php.ini file and add the following line:
allow_url_include = On
This did not exist in my PHP.ini file, but if it does exists in yours, just change it to ââ,¬Å"Onââ,¬Â. If you have a similar message but it pertains to fopen, the solution is basically the same.
Add this line to the PHP.ini
allow_url_fopen = On
The same rules apply: add it if isnââ,¬â,,¢t there or modify it if it isnââ,¬â,,¢t.
Hopefully that will help someone else too!
They said "nothing wrong with the server"
Yet it was indeed a server config issue. The php.ini file is what controls the settings for how apache and php on the server should act and preform or not
Glad you got it sorted though :up:
You should send that info to your host so they can get a little education on how to administer a server....
Quote from: IchBinâ„¢ on September 04, 2009, 07:23:49 PM
You should send that info to your host so they can get a little education on how to administer a server....
Ain't that the truth...
Amen to that.