|
|
#1 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Now Playing page goes blank!
I wonder if anyone else has had this problem..
On my site I have 2 i-frames showing the number of listeners and 'now playing'. The listener count is a simple html page and the 'now playing' is php. Both pages however suffer from the same problem. They both refresh every minute but after a while the page no longer displays any text. If I refresh my browser it will display again for a while before doing the same again.. I wondered if anyone else has come across this and what solution they have found. I have tried IE 6/7 and Firefox and all are the same.. Many thanks |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Jul 2004
Location: E*arth
Posts: 2,979
|
increase the refresh rate.
make sure your php has "exit;" when its finished. I'm not here right now - leave a msg after the beep... |
|
|
|
|
|
#3 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Many thanks for the reply..
I can increase the refresh rate on the html page and but as I have a scrolling window in the php page and its already set to the shortest time to allow the title to display before refresh.. |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Jul 2004
Location: E*arth
Posts: 2,979
|
can you post the html/php here or give me a link
to the page ?. I'm not here right now - leave a msg after the beep... |
|
|
|
|
|
#5 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Now Playing Link..
http://www.1mix.co.uk/nowplaying.php
Sorry, I forgot - both pages are now php - but my previous html one did the same thing.. If you want to see the i-frame you can see this on the home page http://www.1mix.co.uk/ Many thanks for your help.. |
|
|
|
|
|
#6 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
I see the url is blocked..
1mix[dot]co[dot]uk/listeners.php
|
|
|
|
|
|
#7 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
More info..
I just had a closer look and I find if I just load the 'now playing' page in my browser I get 'page cannot be found' error message after a couple of hours..
Hope this helps |
|
|
|
|
|
#8 |
|
Forum King
Join Date: Jul 2004
Location: E*arth
Posts: 2,979
|
i will look at in to for you busby when i
have 5 mins spare ,also deleted that post for you ![]() Edit :- When you get a page cant be displayed on these now playing scripts over a long period of time that is usually related to your connection. This is true if when you refresh your page it returns. I'm not here right now - leave a msg after the beep... |
|
|
|
|
|
#9 | |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Quote:
and I monitor my station all day and all night and there is no break in the stream..I am aware of an Ajax script elsewhere on this forum which does the same thing without the need to refresh the page - but its way over my head I'm afraid
|
|
|
|
|
|
|
#10 |
|
Forum King
Join Date: Jul 2004
Location: E*arth
Posts: 2,979
|
Ok worked fine,however the page going blank issue
is most probably caused when your script fails to receive the data from your SHOUTcast server. You need to ensure that if something goes wrong and your script cant connect to your server that it returns some time of debug msg like "Now playing Not available" or edit the php script so it attempts to reconnect if it failed to connect the first time. J. I'm not here right now - leave a msg after the beep... |
|
|
|
|
|
#11 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Hi
Thanks for the reply.. The script returns 'server offline' if it can't retrive info from the shoutcast server - and the listeners page shows '0 listeners' I have tried this with a blank page with just 'Hi' on it and it does the same thing ![]() Back to the drawing board - sorry
|
|
|
|
|
|
#12 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Sorry to give a heads up on this one - has anybody had any further ideas please?
|
|
|
|
|
|
#13 | |
|
Moderator
Join Date: Feb 2005
Location: USA
Posts: 3,994
|
Re: More info..
Quote:
That error usually is a result of the station website being down, not the stream. So, some possibilities to explore... 1) The webserver/website occasionally drops. If that happens at the moment a page refresh happens, the result would be a "page cannot be displayed" error 2) The hosting company has something in place that blocks repeated attempts to pull a web page. If that's the case, try increasing the refresh interval. If it turns out that it's the website that occasionally goes offline, the fix is there - not with the PHP code etc... Hope this helps |
|
|
|
|
|
|
#14 |
|
Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 73
|
Hey - remember me?
![]() I remember chatting with you just before you got listed on iTunes - wow - things have changed somewhat... I have done extensive testing on this and this is what I have found.. I have dedicated server which runs my station and has SAM running on it. My website is hosted elsewhere and so are the 'Now Playing' and 'Listener Count' pages. In all there are 4 pages - all .php but html pages do the same thing. All these pages are hosted on the same server. When I get the 'page not found' messages they appear at different times on each of the pages. It happens on any server - I have tried several. If you do a manual refresh they come back. Hope this helps.. thanks again! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|