Author Topic: quake-json.php in Earthquake Page Acting Up  (Read 119 times)

0 Members and 1 Guest are viewing this topic.

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2081
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
quake-json.php in Earthquake Page Acting Up
« on: July 11, 2019, 01:37:18 PM »
You might want to check your earthquake page to see if it is loading.  Recently my earthquake page returned an error that says, "PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 20480 bytes) in /home/public_html/wx/quake-json.php on line 471".  The easy fix is to increase memory to as much as unlimited in cpanel.  But I wonder if it means quake-json needs updated or that the situation is isolated to my side.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/wx/2ndhome.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7380
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: quake-json.php in Earthquake Page Acting Up
« Reply #1 on: July 11, 2019, 03:55:30 PM »
It's likely due to the large JSON file for quakes currently.  Usually 64MB for PHP memory_limit is enough.

My page is showing
Quote
<!-- content length=8721141 -->
<!-- found 11152 earthquake records -->

and my PHP 7.3.7 memory_limit is set to 128M
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2081
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: quake-json.php in Earthquake Page Acting Up
« Reply #2 on: July 12, 2019, 02:33:16 AM »
I think you're right.  Frequency of earthquakes and aftershocks have skyrocketed in Oklahoma this week, mostly in the sparsely populated northwest quarter.  But nowhere near as crazy up as California. Fortunately, they have been staying weak with none over 3.1.  They haven't gotten close enough for me to sense.   I had to raise my memory from 64mb to 128mb, php 7.1.
« Last Edit: July 12, 2019, 02:41:28 AM by Bunty »

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/wx/2ndhome.php