Author Topic: BOmaps  (Read 2734 times)

0 Members and 1 Guest are viewing this topic.

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: BOmaps
« Reply #25 on: June 19, 2020, 11:01:19 AM »
I have been regularly deleting the error logs as it generates about 7,000 of that error line per minute.  I just deleted one with 52,562,396,777 bytes after about 12 hours.
Also there was a new file .pureftpd.3776669.3f60a910 in the same BOmaps folder that contained the same error lines and deleted that as well.  This file has not returned, yet, after I deleted it.


I presume I would need to stop the cron jobs to stop the errors for now?


Thanks,
Paul




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOmaps
« Reply #26 on: June 19, 2020, 11:49:57 AM »
7,000 per minute  :shock:

I just tried replicating the issue on my localhost (PHP 7.4.5) and checking on my production host (PHP 7.4.7) with error_reporting(E_ALL) and see no errors at all.

Have you tried using error_reporting(0) in the script to suppress the error?
Are you running the 1.05 version of BOmaps?
What is the PHP version for your system?
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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: BOmaps
« Reply #27 on: June 19, 2020, 01:38:39 PM »
Thanks Ken,
after about 2 hours the err_log file was 4,964,698,223 bytes and too large to open :(
[size=78%] [/size]

I have only found such code in gen-BO-maps.php and it has
Code: [Select]
# error_reporting(E_ALL);[/size]which I assume is error reporting Off.
[/size]
However I have changed that to
Code: [Select]
error_reporting(0)and the errors still persist.


 Should it exist in another file where I can add that code to suppress?


I have BOmap-V1.03 of 22/05/2015 with BO-maps-V1.05-update of 30/10/2018 two files BOmapgen-inc.php and BO-station-inc.php, and with the recent GIFEncoder.class.php and your suggested modification to this of yesterday.


[/size]I am with GoDaddy and using PHP v7.4
[/size]
Thank you for your time to check this.
Paul












Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: BOmaps
« Reply #28 on: June 19, 2020, 01:42:00 PM »
Strange things in my last post... and that missed:
I am with GoDaddy and using PHP 7.4


Thanks,
Paul




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOmaps
« Reply #29 on: June 19, 2020, 02:25:55 PM »
I suggest doing the following:
1) suspend the cron job running get-BO-maps.php
2) use the cPanel running processes page to see and kill any PHP processes still running get-BO-maps.php
3) delete the huge error_log
4) restart the cron job

monitor the error_log for additional entries like the ones before.  If found, suspend the cron again.
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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: BOmaps
« Reply #30 on: June 19, 2020, 03:33:13 PM »
Thank you Ken,
I ended calling GoDaddy as I could not find cPanel running processes page and support advised to toggle the PHP version to clear whatever might be the cause, and that worked.  Back on PHP 7.4 and do not have that previous error message.  However there is a new error message that shows at each 5-min interval -
Code: [Select]
[19-Jun-2020 19:20:01 UTC] PHP Parse error:  syntax error, unexpected '$region' (T_VARIABLE) in /home/psoykkrhjuz3/public_html/BOmaps/gen-BO-maps.php on line 12

The first 12 lines of gen-BO-maps.php are -
Code: [Select]
<?php
# gen-BO-maps.php
#
# This is the main control/settings for the Blitzortung map generator
# It should be run via a cron job at 5 minute intervals.
#
#--------------------------------------------------------------------------------
# settings to adjust
#
# error_reporting(E_ALL);
error_reporting(0)
$region"3";             # Blitzortung REGION number
so the error shows for $region= "3";


Any suggestion how to fix this one?


Regards,
Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOmaps
« Reply #31 on: June 19, 2020, 03:54:40 PM »
Yes, easy... you're missing the semi-colon after error_reporting(0)

Should be

error_reporting(0);

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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: BOmaps
« Reply #32 on: June 19, 2020, 04:43:20 PM »
Thanks again Ken and no more errors on this page, that is one I should have known :oops: :oops:


Enjoying,
Paul

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOmaps
« Reply #33 on: June 19, 2020, 04:56:23 PM »
So has the excessive error_log issue been fixed?
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

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: BOmaps
« Reply #34 on: June 19, 2020, 06:01:27 PM »
Hi Ken,
Code: [Select]
So has the excessive error_log issue been fixed?
Yes fixed.  There is no error_log file now in BOmaps and all seems good.


Enjoy,
Paul




Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: BOmaps
« Reply #35 on: June 19, 2020, 07:02:47 PM »
 [tup]  =D&gt;
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