Author Topic: Home page refreshing by itself  (Read 378 times)

0 Members and 1 Guest are viewing this topic.

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Home page refreshing by itself
« on: April 28, 2019, 12:43:53 PM »
For the last year my home page refreshes by itself every 5 mins & 30 seconds. Is there a way to stop this and if so how??

thanks
Eric

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1824
    • Maumelle Weather
Re: Home page refreshing by itself
« Reply #1 on: April 28, 2019, 01:10:12 PM »
Hi Eric,

Look at your homepage and find this line:

<meta http-equiv="Refresh" content="300" />

Remove that and that should clear that up.
GR2AE, GR3, Cumulus

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #2 on: April 28, 2019, 01:27:01 PM »
Hi Eric,

Look at your homepage and find this line:

<meta http-equiv="Refresh" content="300" />

Remove that and that should clear that up.

I do not see that anywhere  i have checked the following files  ajaxdashboard   settings  ajaxwdxx3   and  altajaxdashboardconfig 6        anywhere else i should be looking??       

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1824
    • Maumelle Weather
Re: Home page refreshing by itself
« Reply #3 on: April 28, 2019, 01:30:35 PM »
Try looking under your index.php file as well.

This is what is surrounding that line:

<td style="color: #000000; background-color: #06E8E6; text-align: center"><font color="black" font-size= "30px"><strong>WESTERN NEW YORK FORECAST SUMMARY</strong></font>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Refresh" content="300" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Forecast Discussion for BUF NWS Office</title>

Hopefully that should help locate it.
GR2AE, GR3, Cumulus

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #4 on: April 28, 2019, 01:35:37 PM »
<td style="color: #000000; background-color: #06E8E6; text-align: center"><font color="black" font-size= "30px"><strong>WESTERN NEW YORK FORECAST SUMMARY</strong></font>

the above was in the index file  but nothing else

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #5 on: April 28, 2019, 01:50:25 PM »
Found it  it was in  the forecast-discussion.php      what a strange place for that

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1824
    • Maumelle Weather
Re: Home page refreshing by itself
« Reply #6 on: April 28, 2019, 01:53:56 PM »
That is a strange place for that to be there.....hmmm.....glad you were able to locate it.
GR2AE, GR3, Cumulus

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #7 on: April 28, 2019, 02:05:10 PM »
Well the bad news is that particular file did not fix the problem as it is still refreshing every  5 minutes.   It has to be something so simple  but i just cant find where it is :(

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1824
    • Maumelle Weather
Re: Home page refreshing by itself
« Reply #8 on: April 28, 2019, 02:07:16 PM »
That line is still showing in the view source page in Chrome.

Did you find the line, but forgot to re-upload the corrected file?  Been there, done that far too many times
GR2AE, GR3, Cumulus

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #9 on: April 28, 2019, 02:13:46 PM »
That line is still showing in the view source page in Chrome.

Did you find the line, but forgot to re-upload the corrected file?  Been there, done that far too many times

i changed the time to 9000  so that should have made it 30 minutes.   

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1824
    • Maumelle Weather
Re: Home page refreshing by itself
« Reply #10 on: April 28, 2019, 02:18:43 PM »
That line is still showing in the view source page in Chrome.

Did you find the line, but forgot to re-upload the corrected file?  Been there, done that far too many times

i changed the time to 9000  so that should have made it 30 minutes.

Changing that to 9000 will mean it will refresh every 2 1/2 hours automatically.
GR2AE, GR3, Cumulus

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #11 on: April 28, 2019, 02:31:09 PM »
 still changing after 5 mins  so im guessing its still not the file causing that

Offline metzeric

  • Contributor
  • ***
  • Posts: 110
    • www.niagaracountyweatherwire.com
Re: Home page refreshing by itself
« Reply #12 on: April 28, 2019, 02:33:01 PM »
okay i think i got it this time there was another instance of that file under  forecast summary.php   which makes sense   as i have that box on my home page

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Home page refreshing by itself
« Reply #13 on: April 28, 2019, 03:38:45 PM »
You're getting full HTML generated by forecast-discussion.php instead of just the content wanted.

You should be invoking it on the page with
Code: [Select]
<?php $doIncludeFD=true; include_once('forecast-discussion.php'); ?> and that will avoid creating the rest of the unwanted HTML markup (including the meta to refresh).
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

 

anything