Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RSS Import on PHP 5.5
#1
Hello Smile

I have my personal website (which is not ready yet) on a freehosting with PHP version 5.5 only. I'm trying to use RSS Import plugin, however, it's not familiar with this PHP version, so it doesn't work (doesn't show any RSS articles).

When I was trying to debug it, I got these errors:
Quote:Warning: simplexml_load_file():
http:// wrapper is disabled in the server configuration by allow_url_fopen=0
in /www/sites/6/site16906/public_html/plugins/rss_import.php on line 66

Warning: simplexml_load_file(http://www.webzpravodaj.cz/autor/tomas-janecek/feed/): failed to open stream:
no suitable wrapper could be found in /www/sites/6/site16906/public_html/plugins/rss_import.php on line 66

Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://www.webzpravodaj.cz/autor/tomas-janecek/feed/"
in /www/sites/6/site16906/public_html/plugins/rss_import.php on line 66

Notice: Trying to get property of non-object in /www/sites/6/site16906/public_html/plugins/rss_import.php on line 69
Notice: Trying to get property of non-object in /www/sites/6/site16906/public_html/plugins/rss_import.php on line 69

Warning: Invalid argument supplied for foreach() in /www/sites/6/site16906/public_html/plugins/rss_import.php on line 69

The line 66 is
Code:
$rss_news_url = simplexml_load_file($rss_feed->url);

and the line 69 is
Code:
foreach($rss_news_url->channel->item as $display_news){



As I'm more a coder than a programmer, I don't know if there's any simple way how to solve this issue. I think I would need to replace the simplexml_load_file function, which I think would be a great problem.

Do you know any easy way how to update this plugin or writing my own that would work - no error messages would be shown.

I don't mind errors as long as the plugin itself work. In this case, RSS Import just doesn't show the RSS content. It work well on PHP 5.2.

Thanks for any replies Smile
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply
#2
Your host does not allow you to fetch files.
You can try using fopen, file get contents or curl.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
(2013-07-31, 09:17:04)shawn_a Wrote: Your host does not allow you to fetch files.
You can try using fopen, file get contents or curl.
Thanks, I'll look onto that and give a notice.

I wish I could just replace the name of the function Smile
However, I'm afraid that much more modifications will be needed. Have to check the functions out.
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply




Users browsing this thread: 1 Guest(s)