Leuven-Template 2.8 version available

Hello Wim…

hope all is well with you and your country.

I have a question concerning the WEATHER REPORT page…see it here for my friends site in New York…

http://www.northportnyweather.com/weather28/index.php?p=wsReports#data-area

The data for 2016 is not appearing, but for previous years it appears.

he is using version 2.8 of the templates.

same problem on my own WEATHER REPORTS page and I am using version 2.6…of the templates. I am not sure if any data for 2016 Ever appeared or not for either site, but just noticed this tonight and wondered if maybe you can figure out why this is happening for the 2016 year data.

my weather report page is here…

http://www.gateway2capecod.com/weather2/index.php?p=11&lang=en

Thank you…Chris

I have the same 2016 issue on the v2.7 templates.

Current known issues:
Yahoo move from open RSS feed to “OAth-secured” feed => results in ?-mark icon and error message when debug is on
WeatherUnderground move from http to https and used a redirect for that. => result no data for WU history text, WU history reports, almanac data

[b][color=green][size=116]Please ALWAYS check the support page at http://support.leuven-template.eu/[/size][/color][/b]
At the top menu you can choose for “issues” => release 2.8 and 2.7 and find solutions there.

For 2.6 release use the 2.7 scripts.

As always make a copy/backup of the affected scripts before replacing them. I always rename the current scripts by adding something in front of the name (do not use zz, as i do that already) and by doing that keep old versions nicely at the bottom of the folder list.

EXTRA: For the report scripts, the data is cached and refreshed only twice a day for the current year. So after replacing the WU scripts remove the Ixxxxxxxx-year-2016.txt file from the cache folder.
xxxxx stands for your WU name, in my case it is IVLAAMSG47-year-2016.txt

Wim

Thanks, folks. I got the fix and it works fine.

hello again…

I downloaded the fix for the WEATHER REPORTS and then unzipped the file and inside are these files…

  1. lastyear.php
    2)wualmanac.php
    3)WU-History.php
    4)wsReports1part.php
    5)readme txt file

so I went onto my server and then into my weather2 folder and I found my weatherreports folder and replaced the exsiting wsReports1part.php with the new one…BUT I cant find where the other 3 files are suppose to go on my server.

once I replaced my wsReports1part.php with the new file my 2016 data is displaying but above it I get an Error Notice and it reads as follows…

Notice: Undefined variable: phpselftop in /home/gateway77capecod/public_html/weather2/wsreports/wsReports1part.php on line 191

any Idea what is causing this error? also any idea where the other 3 files go or do I not need them? I am using version 2.6 of the leuven templates

my weather reports page is here…http://www.gateway2capecod.com/weather2/index.php?p=11&lang=en

Thanks for the help…Chris

P.S. hello Mldenison…where is the link/url to your weather reports page? I couldnt find it on your leuven site.


hello …

on another note I also noticed that when viewing my leuven site with Internet explorer 11…it cant display the steel gauges and some of my css colors are wrong, but when I view the same site using Pale Moon browser it all looks correct.

guess it may be time, when I have the time…to upgrade my leuven templates to the newest version

see attachement named page2 below of how is looks with IE11 Browser

and attachement named page3 of how it looks and is suppose to look using pale moon browser


Hi Chris,

Click on the Leuven link below. Pick the ‘Climatology Data’ link in the menu.

I’m not sure why, but the second half of 2015 no longer shows up.

I don’t know if it’s related to these changes or something else. I don’t visit the page much so I’m not sure when the data disappeared.

Ia there a way to recreate it, Wim?

Your site switches debug on, but why i can not locate that quickly in your settings.
This is in your html.
– debug is switched on by index.php because of user request - error reporting ALL –

also any idea where the other 3 files go or do I not need them? I am using version 2.6 of the leuven templates
The download is meant for 2.7 and I did not find time to make a download for 2.6

The readme should explain were the files go. I will check that.

  1. lastyear.php => 2.7 only
    2)wualmanac.php => 2.7 and later only
    3)WU-History.php => weather28/wu/WU-History.php used for http://www.gateway2capecod.com/weather2/index.php?p=62&lang=en but that page is not functional
    4)wsReports1part.php => OK used for http://www.gateway2capecod.com/weather2/index.php?p=11&lang=en
    5)readme txt file
my weather reports page is here...http://www.gateway2capecod.com/weather2/index.php?p=11&lang=en

Thanks for the help…Chris

P.S. hello Mldenison…where is the link/url to your weather reports page? I couldnt find it on your leuven site.

@ALL 2.7 and 2.6 users wsreports changes for http => https

There was an error in the upload for 2.7 and 2.6 users.

New script attached replace current one weather??/wsreports/wsReports1part.php


wsReports1part.php.zip (7.64 KB)

I HAVE ONLY ACCESS TO WINDOWS

Besides my mac with Chrome / FF and Safari I have tested with Windows 10 with Edge.
Your site http://www.gateway2capecod.com/weather2/ is displayed correctly
This is the frame which should be displayed
http://www.gateway2capecod.com/weather2/gauges/gaugeframe.php?lang=en&wp=MB
but as I have no other access then wind10 with edge there is no more i can do.

Maybe you could test the gaugeframe link in your version of IE 11 and check if there is a javascript error ?
or maybe a setting somewhere in IE11?

You could also test other sites still running 2.6 => Clientraw - Script developers info
or 2.7 => http://weather-template.nl/weather27/
Those links use the same header as your site.

Wim

Hi Wim
I updated the files as found in the update on issues, and deleted the cache file but I still get an error for weather reports and a new cache file has not been created.

EERROR: no data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBALLAUG2&month=01&day=01&year=2016&format=1&graphspan=year

nothing is displayed underneath link below (not in debug mode)

http://www.hc-iom.co.uk/weather28/index.php?p=wsReports&lang=en#data-area

have I missed something

Harold

PS
windows 10 still has IE 11 on, and the exe file should be in C:\Program Files\Internet Explorer just create a short cut to desktop

  1. Thanks for the hint for IE11.

  2. WU, I hope this is something trivial. The scripts are working at other places. I adapted a small test program just to check if there is a block for https on your webserver. The script will load the same wu_link in an iframe in your browser (which should always work) and on your webserver.

If that works OK i will need to add some debug code to see the errors when the wsreports script decides there is no data.

Please unzip and move it to your weather28/ folder and run it with www.hc-iom.co.uk/weather28/test_url_wu.php

Wim


test_url_wu.php.zip (2.13 KB)

Hi Wim
have put the file in the folder required and the link works and I have some info on the page but not sure what it means hope it helps

Harold

hello Wim…

was also going to mention that windows 10 does still have Internet Explorer 11 which not many people are aware of this and I found this out myself by accident awhile ago when I upgrade my laptiop from Win8 to win 10, but have switched back to win8 as I didnt care much for Windows 10 or microsoft Edge and some other things with win10. another way to fin IE 11 in windows 10 is this way…

Internet Explorer 11 is included with Windows 10. It is not, however, the default browser; Edge is the default. To run it, you should search for Internet Explorer: click the Start Button, then start typing “Internet”. It should show up as a search result.

Once you have found it, I recommend you pin it to the Taskbar, or the Start Menu, so you can find it again quickly.

as for the latest fix…the data for 2016 does appear but still am getting that error at top that says this"notice: Undefined variable: phpselftop in /home/gateway77capecod/public_html/weather2/wsreports/wsReports1part.php on line 191" also did the update on the tarryrown NY site, which is also using version 2.6 of the templates and the same error for his site appears there to. his site is here…http://www.tarrytownnyweather.com/weather2/index.php?p=11&lang=en

and I also did the update on the Northport New York site inwhich he is using version 2.8 of the templates but there is no error for him and his weather reports page is here…http://www.northportnyweather.com/weather28/index.php?p=wsReports&lang=en#data-area

it is not a big deal for me and if there is never a fix for it I wont loose any sleep over it, just wanted to mention it incase anyone else mentions it also.

The best thing I guess for us to do that are using older versions of the templates is to upgrade to the newest version.

One last thing I wanted to mention for you and anyone else reading these posts that is not aware of it is this. If you dont like the look and layout of Windows 8.1 or Windows 10 with all the Tiles for Navigation and would like to get the old style Start Menu there is a free to use program called Classic Shell and it will give ability to make your Start Button Menu look the way it did with windows 7/winxp…you can download it from here…

http://www.classicshell.net/

just click on the Download button next to the donate button.

…chris

classic shell is very good

The testprogram runs OK in a browser. When run on your server the error message is

Error codes: SSL certificate problem: unable to get local issuer certificate

You should contact your provider as there is e a certificate or settings problem. As no other users on dozens of different hosts have a problem with the WU certificate, it is probable a setting in your hosting environment. This is the general comment when doing a Google search:

Relating to 'SSL certificate problem: unable to get local issuer certificate' error. Rather obviously this applies to the system sending the CURL request (and no the server receiving the request)

You should give them the link to the test-program (www.hc-iom.co.uk/weather28/test_url_wu.php )and they can check the script itself with “&sce=view” added to the link.

The other “solutionis to tell the CURL that no checking whatsoever should be done, but this violates the whole idea of https.
You should add one line just between line 217 and 218 in weather??/wsreports/wsReportsFunctions.php so it should look like this after you added the line.

        curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
        curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
        $rawData = curl_exec ($ch);

Wim

i tested with IE11 (on windows 10) also. no problem at all, The gauges are displayed.
I think you are running in compatibillity mode as all rounded corners are square ones.
Please try IE11 on a different PC as all tests here are OK.
Wim


Hello Wim…

Yes you were right, I had compatability Mode on and once I switched it off …gauges are showing. no idea why I ever turned it on in compatability, but it is off now and working fine.

also downloaded and installed and still in process of configuring the latest template version 2.8f and my work in progress is here…

http://www.gateway2capecod.com/weather28/

once I get version 2.8f all configured, I will most likely delete my older 2.6 version.

Thanks again…Chris

Hi Wim
thanks for the reply

looks like I have to upgrade my hosting package to get SSL cert package #-o
I will have to think about which way to go with this

Harold