Web Weather > Weather Website PHP/AJAX scripting

check-fetch-times.php

(1/2) > >>

Meteoensevilla:
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?

saratogaWX:
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.


Meteoensevilla:
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.

saratogaWX:
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']) ) {

--- End quote ---

try changing that to
--- Quote ---  if(isset($SITE['EUminLevel']) or
     $updateBasePlugin == '' ) {

--- End quote ---

Meteoensevilla:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version