Author Topic: check-fetch-times.php  (Read 1744 times)

0 Members and 1 Guest are viewing this topic.

Offline Meteoensevilla

  • Contributor
  • ***
  • Posts: 130
    • Meteoensevilla
check-fetch-times.php
« on: May 20, 2025, 06:26:52 AM »
Hi Ken, something very strange is happening to me, and I'm almost sure it's my fault.

The script

https://www.meteoensevilla.es/check-fetch-times.php?show=versions

It works fine if the language is enabled in Settings.php

'dk', // 'danish',

But as soon as I comment out the line, the check-fetch-times script shows me an unknown version in most scripts.

I know it doesn't make sense, but it happens. Any suggestions?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9717
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: check-fetch-times.php
« Reply #1 on: May 20, 2025, 10:03:31 AM »
This is a strange issue .. the language settings in Settings.php aren't really used by check-fetch-times.php -- it always uses English only.

I see that you're running on PHP Version: 8.4.6 and check-fetch-times.php is behaving strangely.
First, it's not detecting that you're running a Base-World distribution (even though it should be detecting that based on your Settings.php).
Second, the parsing for version info on some scripts isn't working correctly (showing as 'unknown' for installed version).

Are you receiving any error messages in error_log for PHP when the script runs the show=versions ?

I don't have a PHP 8.4 version currently available, but I'll try to set up one to be able to debug these issues.


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 Meteoensevilla

  • Contributor
  • ***
  • Posts: 130
    • Meteoensevilla
Re: check-fetch-times.php
« Reply #2 on: May 20, 2025, 12:01:32 PM »
Yes it is strange:

In Settings.php

$SITE['langavail'] = array('en', // select languages ​​to offer here. Use comments to remove languages
// array('en', should be first entry on line above
// 'af', // Afrikaans
// 'bg', // bulgarian
// 'ct', // 'catalan',
'dk', // 'danish',
// 'nl', // 'dutch',
// 'fi', // 'finnish',
'fr', // 'french',
// 'ga', // 'irish',
'de', // 'german',
// 'the', // 'greek',
// 'he', // 'hebrew',
// 'hu', // 'hungarian',
// 'it', // 'italian',
// 'no', // 'norwegian',
// 'pl', // 'polish',
// 'pt', // 'portuguese',
// 'ro', // 'romanian',
'es', // 'spanish',
// 'se', // 'swedish',
);

As long as the dk line is uncommented

https://www.meteoensevilla.es/check-fetch-times.php?show=versions

Apparently it works fine. I don't see any errors in the script, and the Apache error.log file doesn't tell me about them either.

I've tried with PHP 7.4, and the same thing happens.
« Last Edit: May 20, 2025, 12:03:39 PM by Meteoensevilla »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9717
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: check-fetch-times.php
« Reply #3 on: May 21, 2025, 10:41:11 AM »
So, on doing further research, it appears your unique configuration is the reason that check-fetch-times.php?show=versions is failing when the 'dk' entry is removed.

The code in check-fetch-times.php has
Quote
  if(isset($SITE['EUwarnings']) or
     isset($SITE['installedLanguages']['dk']) ) {

try changing that to
Quote
  if(isset($SITE['EUminLevel']) or
     $updateBasePlugin == '' ) {
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 Meteoensevilla

  • Contributor
  • ***
  • Posts: 130
    • Meteoensevilla
Re: check-fetch-times.php
« Reply #4 on: May 21, 2025, 12:00:53 PM »
Following your advice, it's resolved. As you know, my knowledge is very limited, and I don't know if there were any settings I misconfigured.

I'm so glad to hear about your good shape. It wouldn't be the same without you. Thank you.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9717
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: check-fetch-times.php
« Reply #5 on: May 21, 2025, 03:21:59 PM »
You had no misconfiguration of any settings.  It was because you'd left commented-out the
Quote
#$SITE['EUwarnings'] = 'DK002,DK004,EE007';
entry in Settings.php that check-fetch-times.php then used the 'dk' test to see if the World template was being used.

I'll update check-fetch-times.php to use the above in the next release.
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