ec-radar.php - Problem -

I just complete a new fresh installation of my website, everything is OK except for the radar.

http://meteo.logigestion.ca/wxradar.php

I don’t receive the xxx -1.png to xxx -6.png.

NOTE: I have also tried different radar and I got the same result.

See below my settings and the result.

Thanks in advance for your help.


There are a couple of things going on here.

First, you don’t have check-fetch-times.php installed on your site, so my remote diagnostic ability is very much reduced … please upload that file from the Base-Canada distribution.

Second, I did a view-source of the wxradar.php page (using wxradar.php?cache=no to force a cache reload) and found

It looks like attempts to get the detailed images from meteo.gc.ca were unsuccessful, and no headers were returned … since it happened repeatedly with < 1 second responses, I suspect that the meteo.gc.ca site was blocking those requests from the ip address of your webserver OR your PHP doesn’t have allow_url_fopen = on in your php.ini. It’s odd because the curl page request

worked, and the file was cached.

So, without other diagnostic tools available, I’m guessing that your PHP needs

allow_url_fopen = on

in your php.ini.

Thanks very much Ken for your work and your fast reply…

I found the script and it’s uploaded on my site right now.


check-fetch-times.php Version 1.18 - 27-Sep-2017

Website PHP information

Webserver OS: Linux www14.iscream.net 2.6.18-417.el5 #1 SMP Tue Dec 20 13:11:30 UTC 2016 x86_64
PHP Version: 5.6.30
Document root: /var/www/vhosts/logigestion.ca/meteo.logigestion.ca
allow_url_fopen = ON
allow_url_include = off


Thanks for installing check-fetch-times.php

Yes, I see that allow_url_fopen = on in your PHP settings.

The problem still exists ( file_get_contents($URL…) is not working on your site – perhaps your hoster has disallowed http/https for stream access?

I see that you’re hosted on https://www.iscream.net/hebergement-web-noms-de-domaine/ – unfortunately for me, the site is in French and I’m pretty much an anglophone.

Could you put up a page with just

<?php phpinfo(); ?>

in it and PM me the URL. I could look over the details and see if http/https is amongst the allowed streams.

Good news KEN I finally found the culprit (like you talk-me into your last reply) and one solution…

After many hours of investigation and after activated the “Display Errors” into the PHP settings…

The SSL certificate from my web hoster it’s not validate by EC , so I replaced all reference to HTTPS by HTTP into the ec-radar.php and now everything is OK.

The next step will bee to talk with my web hoster about their rejected certificate.

Again, thank for your work and your excellent support.

lgRich

That’s great!

Don’t forget to install the check-fetch-times.php script as I’d said in the PM… a check-fetch-times.php?show=versions allows you to easily keep your site up-to-date with the key support scripts.

Best regards,
Ken