Problem with my site can someone please fix it

6 replies
Hi,

I have a problem with rss feeds on my homepage. Where then feed is suppose to be I get this message Warning: Invalid argument supplied for foreach() in /home/heal98is/public_html/index.php on line 148
I have the same feed on another page in my site and that works fine. Some times it works but when you refresh the page the message shows up again.
If anybody can fix the problem can you please pm me or via my email gpratt20 at yahoo dot co dot uk. The code is here http://pastebin.com/X8hPEbf7

Thank you.
#fix #problem #site
  • Profile picture of the author darkhazza
    You need to post code, or use pastebin or something.
    {{ DiscussionBoard.errors[3608617].message }}
    • Profile picture of the author rob1985
      Originally Posted by darkhazza View Post

      You need to post code, or use pastebin or something.
      Could you please explain how to do this. I have the code I think.
      {{ DiscussionBoard.errors[3608635].message }}
  • Profile picture of the author rob1985
    Think ive done it the the code is here healthy diet zone - Pastebin.com
    {{ DiscussionBoard.errors[3608655].message }}
  • Profile picture of the author darkhazza
    Sorry for the delay, I don't check back too often. Is your file admin/settings/db.txt being updated in any way? If it is it might be having collisions between the thing doing the updating and the thing doing the reading...

    Edit: I misread because line 148 doesn't match your file... your file appears to be double space
    {{ DiscussionBoard.errors[3609332].message }}
  • Profile picture of the author darkhazza
    Sorry about my post above... it looks like a more obvious issue when I take into consideration the double spacing in the pastebin code. Looks like the url isn't loading... hence why nothing is coming up. It seems to be rotating different RSS urls? And several of them don't seem to work and one or two do. You'd have to add a echo($url); to see which urls it is not loading just before line 148 (296 on double spaced version)... Definitely worth at least testing. If it is always the same url might be another issue, but I think there's a good probability it's failing to load the RSS feed in the function ShowStandardRss(...)
    {{ DiscussionBoard.errors[3609398].message }}
  • Profile picture of the author rob1985
    Hi,

    Thanks for the reply can you do this for me I will pay you via paypal. Let me know at gpratt20 at yahoo dot co dot uk
    Thanks Rob.
    {{ DiscussionBoard.errors[3609890].message }}

Trending Topics