cloudy cloudy

Author Topic: wxquake.php not working  (Read 523 times)

0 Members and 1 Guest are viewing this topic.

Offline Harry

  • Posts: 792
  • Union City, CA USA
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Union City, CA Weather
Re: wxquake.php not working
« Reply #15 on: July 11, 2019, 12:43:03 AM »
Looks like that was it.  I updated to 7.3 and the earthquake page worked fine.  The only problem is, it broke my index page.  All I got was "Updated: @ 7/10/2019" at the top of the page where the current conditions would be and the rest of the page was blank.  I tried 7.0, 7.1, 7.2 and got the same thing.  The earthquake page doesn't work in 5.6 but, the index page does work okay.  Apparently something changed in 7.0+ that affected my index page.  Of course, the template I'm using for the current conditions is old and moldy and I know you have made some updates to it so, I guess it's time to update that anyway.  In the meantime, I guess I'll have to leave the earthquake page broken until the size of the JSON file goes back down something normal.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,126
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 75.0.3770.100
Re: wxquake.php not working
« Reply #16 on: July 11, 2019, 01:37:41 AM »
I have PHP Version 5.6.30 and the quake script works, so if you have 5.6 available it could be a quick fix before jumping to version 7.

Offline Harry

  • Posts: 792
  • Union City, CA USA
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Union City, CA Weather
Re: wxquake.php not working
« Reply #17 on: July 11, 2019, 01:49:19 AM »
I left it set to 5.6 since everything else works.  For some reason, the earthquake page still doesn't work.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,126
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 75.0.3770.100
Re: wxquake.php not working
« Reply #18 on: July 11, 2019, 01:50:53 AM »
5.6.what?

Offline Harry

  • Posts: 792
  • Union City, CA USA
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Union City, CA Weather
Re: wxquake.php not working
« Reply #19 on: July 11, 2019, 04:03:40 AM »
I had to ask my web hoster's support people as it only shows 5.6 on the CP and they said it was 5.6.30.

Offline saratogaWX

  • Global Moderator
  • Posts: 5,939
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 68.0
    • Saratoga Weather
Re: wxquake.php not working
« Reply #20 on: July 11, 2019, 02:31:27 PM »
Looks like that was it.  I updated to 7.3 and the earthquake page worked fine.  The only problem is, it broke my index page.  All I got was "Updated: @ 7/10/2019" at the top of the page where the current conditions would be and the rest of the page was blank.  I tried 7.0, 7.1, 7.2 and got the same thing.  The earthquake page doesn't work in 5.6 but, the index page does work okay.  Apparently something changed in 7.0+ that affected my index page.  Of course, the template I'm using for the current conditions is old and moldy and I know you have made some updates to it so, I guess it's time to update that anyway.  In the meantime, I guess I'll have to leave the earthquake page broken until the size of the JSON file goes back down something normal.

If you have old scripts, the change from 5.6 to 7.x meant removal of some built-in functions.
In ajax-dashboard, you have to change calls to split() to explode() as the split function is deprecated (and removed from PHP).

Nevertheless, it's a good idea to keep up with script updates -- I do ensure my scripts work with the latest PHP version.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Harry

  • Posts: 792
  • Union City, CA USA
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Union City, CA Weather
Re: wxquake.php not working
« Reply #21 on: July 11, 2019, 09:18:06 PM »
^ That's what I thought was going on.  Updating the templates has been added to my to-do list.  Thanks, Ken and Niko.

BTW, it looks like the number of aftershocks around Ridgecrest, CA might be slowing down.  I saw only one in the last hour instead of 5-10.
« Last Edit: July 11, 2019, 09:25:27 PM by Harry »

Offline ptsdds

  • Posts: 75
  • Lodi, California
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.100
    • Lodi Lake Wilderness Area
Re: wxquake.php not working
« Reply #22 on: July 13, 2019, 06:02:52 PM »
Thanks for the php vesion info.  I upgraded from 5.3 to 7.3 and the earthquake script works great now

 

cumulus