Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Help needed

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
saratogaWX
Posts: 1181
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Help needed

Post by saratogaWX »

water01 wrote:My guess would be that you have deleted index.php, as what is showing now is the standard index.htm without any of the graphics and css styles, and looking at the previous posts you are running a php based site.
I think his issue is that he has both an index.html and an index.php (which is currently malfunctioning due to the above posted error), and his webserver default is to load index.html if no filename is specified.

He can rename index.html to something else and then the index.php page should show.

Alternatively, in his .htaccess file he can put

Code: Select all

DirectoryIndex index.php index.html
and it will default to loading the index.php instead.
User avatar
saratogaWX
Posts: 1181
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Help needed

Post by saratogaWX »

Now the problem is a PHP error in Settings-weather.php

Code: Select all

'EFJY';  // set to nearby METAR for current conditions icon/text
Delete that line and the site should be operational again.
kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Help needed

Post by kapo »

saratogaWX wrote:
kapo wrote:Hello again

And now, after trying to make those changes, nothing worked anymore... I tried to remove this template from my webpage, and reinstall it, but now my index.php page is blanco!!!
I think that this template might be too difficult to me... (if I should be honest, those all templates might to be too difficult..) But I can`t give in, because this is very interesting hobby to me...
But now: Quite a big help is needed here in cold and dark Finland....
How can I get these pages to work again? It was so close yesterday, but too far away today..

regards: Kapo
It looks like you have edited your Settings.php and saved it as a UTF-8 file .. it needs to be saved as ASCII/ISO-8859-1.
The UTF-8 marker before the <?php at the start of the file is causing a problem.

Then, change Settings.php

Code: Select all

$SITE['organ']            = 'S??asema Vihtavuori, Laukaa';
to

Code: Select all

$SITE['organ'] = 'S&auml;&auml;asema Laukaa, Vihtavuori';
and save the file as ASCII/ISO-8859-1 and upload it to the website. Your site should appear online again.

Remember that a single PHP error in Settings.php can cause the entire site to malfunction until the error is corrected.
So much advices in so short time... You are very friendly guys everyone. Now I must to read these teachings very carefully and try to get pages up again... Should I save all PHP-files as ASCII/ISO-8859-1 after I have made some changes in ? I downloaded that Notepad++ today, after I noticed that You recomended it. It`s very easy to mess for examble some weather-template with that notepad++ :bash: :oops:
Thank You for everyone for help in this situation...

regards Kapo
User avatar
saratogaWX
Posts: 1181
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Help needed

Post by saratogaWX »

Yes, Notepad++ is a great, free tool for editing the PHP website files in ASCII/ISO-8859-1 .. as a bonus, it highlights PHP text :)

Your site is not showing due to a PHP error in Settings-weather.php

Code: Select all

'EFJY';  // set to nearby METAR for current conditions icon/text
Delete that line and the site should be operational again.
User avatar
saratogaWX
Posts: 1181
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Help needed

Post by saratogaWX »

Now you have a new PHP error in Settings-weather.php

Code: Select all

# Weather Station sensors and options for dashboard
$SITE['conditionsMETAR'] = $SITE['conditionsMETAR'] = 'EFJY'; // dist=13 mi (21 km), dir=NNE, Jyvaskyla (mil/C, Finland elev=145, dated=09-NOV-08
// $SITE['conditionsMETAR'] = 'EFHA'; // dist=35 mi (57 km), dir=SW, Halli (fin-Afb), Finland elev=145, dated=09-NOV-08
should be

Code: Select all

# Weather Station sensors and options for dashboard
$SITE['conditionsMETAR'] = 'EFJY'; // dist=13 mi (21 km), dir=NNE, Jyvaskyla (mil/C, Finland elev=145, dated=09-NOV-08
// $SITE['conditionsMETAR'] = 'EFHA'; // dist=35 mi (57 km), dir=SW, Halli (fin-Afb), Finland elev=145, dated=09-NOV-08
Remember that a PHP error in either Settings.php or Settings-weather.php will render the entire website inoperable until it is corrected.
User avatar
saratogaWX
Posts: 1181
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Help needed

Post by saratogaWX »

Next, and hopfully the last PHP error is in Settings.php at

Code: Select all

$SITE['WUforecasts'] = array(
 // Location|forecast-URL  (separated by | characters
'Vihtavuori| 'http://www.wunderground.com/global/stations/02935.html';// Vihtavuori, Finland
'Auckland|http://www.wunderground.com/global/stations/93119.html', // Awhitu, Waiuku New Zealand
'Amsterdam|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Amsterdam%2C+Netherlands',
'Paris|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Paris%2C+France',
'Stockholm|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Stockholm%2C+Sweden',
'Oslo|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Oslo%2C+Norway',
'Moscow|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Moscow%2C+Russia',
'Athens|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Athens%2C+Greece',
'Tel Aviv|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Tel+Aviv%2C+Israel',
'Madrid|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Madrid%2C+Spain',
'Helsinki|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Helsinki%2C+Finland',

);
If you just want to show your forecast, and the forecast for Helsinki, then change it to

Code: Select all

$SITE['WUforecasts'] = array(
 // Location|forecast-URL  (separated by | characters
'Vihtavuori|http://www.wunderground.com/global/stations/02935.html',  // Vihtavuori, Finland
// 'Auckland|http://www.wunderground.com/global/stations/93119.html', // Awhitu, Waiuku New Zealand
// 'Amsterdam|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Amsterdam%2C+Netherlands',
// 'Paris|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Paris%2C+France',
// 'Stockholm|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Stockholm%2C+Sweden',
// 'Oslo|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Oslo%2C+Norway',
// 'Moscow|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Moscow%2C+Russia',
// 'Athens|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Athens%2C+Greece',
// 'Tel Aviv|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Tel+Aviv%2C+Israel',
// 'Madrid|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Madrid%2C+Spain',
'Helsinki|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Helsinki%2C+Finland',

);
The PHP error was caused by the ; in the line:

'Vihtavuori| 'http://www.wunderground.com/global/stations/02935.html';// Vihtavuori, Finland

which (since it was in an array() definition, could only be a comma .. not a semi-colon.
Also, the space and single quote before the http: caused a different PHP error. That line should read as:

'Vihtavuori|http://www.wunderground.com/global/stations/02935.html', // Vihtavuori, Finland

to be a valid PHP array entry line.

I suggest you get this working (by fixing the above), then for future updates, make only ONE change in the Settings.php or Settings-weather.php at a time, upload it, and if the site breaks, undo your last change and upload that and try again.

PHP syntax errors in Settings.php or Settings-weather.php are fatal to the operation of your website (as you have found out).

Best regards,
Ken
kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Help needed

Post by kapo »

saratogaWX wrote:Next, and hopfully the last PHP error is in Settings.php at

Code: Select all

$SITE['WUforecasts'] = array(
 // Location|forecast-URL  (separated by | characters
'Vihtavuori| 'http://www.wunderground.com/global/stations/02935.html';// Vihtavuori, Finland
'Auckland|http://www.wunderground.com/global/stations/93119.html', // Awhitu, Waiuku New Zealand
'Amsterdam|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Amsterdam%2C+Netherlands',
'Paris|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Paris%2C+France',
'Stockholm|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Stockholm%2C+Sweden',
'Oslo|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Oslo%2C+Norway',
'Moscow|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Moscow%2C+Russia',
'Athens|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Athens%2C+Greece',
'Tel Aviv|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Tel+Aviv%2C+Israel',
'Madrid|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Madrid%2C+Spain',
'Helsinki|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Helsinki%2C+Finland',

);
If you just want to show your forecast, and the forecast for Helsinki, then change it to

Code: Select all

$SITE['WUforecasts'] = array(
 // Location|forecast-URL  (separated by | characters
'Vihtavuori|http://www.wunderground.com/global/stations/02935.html',  // Vihtavuori, Finland
// 'Auckland|http://www.wunderground.com/global/stations/93119.html', // Awhitu, Waiuku New Zealand
// 'Amsterdam|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Amsterdam%2C+Netherlands',
// 'Paris|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Paris%2C+France',
// 'Stockholm|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Stockholm%2C+Sweden',
// 'Oslo|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Oslo%2C+Norway',
// 'Moscow|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Moscow%2C+Russia',
// 'Athens|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Athens%2C+Greece',
// 'Tel Aviv|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Tel+Aviv%2C+Israel',
// 'Madrid|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Madrid%2C+Spain',
'Helsinki|http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Helsinki%2C+Finland',

);
The PHP error was caused by the ; in the line:

'Vihtavuori| 'http://www.wunderground.com/global/stations/02935.html';// Vihtavuori, Finland

which (since it was in an array() definition, could only be a comma .. not a semi-colon.
Also, the space and single quote before the http: caused a different PHP error. That line should read as:

'Vihtavuori|http://www.wunderground.com/global/stations/02935.html', // Vihtavuori, Finland

to be a valid PHP array entry line.

I suggest you get this working (by fixing the above), then for future updates, make only ONE change in the Settings.php or Settings-weather.php at a time, upload it, and if the site breaks, undo your last change and upload that and try again.

PHP syntax errors in Settings.php or Settings-weather.php are fatal to the operation of your website (as you have found out).

Best regards,
Ken
AND !!! After those changes... My pages appeared as the phoenix from the ashes!!!
My last changes and the answer took a little bit long time, because my internet connection vent down here in Vihtavuori (I suppose that it was me , who made that disconnect for many family here :clap: :clap:) ... It seems that it would be better for everyone that I will not touch a finger at all to my pc and internet.... It causes huge probs to everyone... :lol: :lol: :oops:

But really great thanks to You.. I should be ashamed about this extra work I caused to You... (Wish I could have my page even little similar than Yours..)

With best regards: Kapo
And:Happy Valentine's Day!!
( I don`t know if You have that today, but we here in Finland have it today ...)
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Help needed

Post by William Grimsley »

Congratulations Kapo! You have your website running again! :clap:
kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Help needed

Post by kapo »

Hello again!

Now I need help with Ajax dashboard!! How can I get my cloudbase text in right place? So in the right up corner . Cloudbase text should be in the middle of that gif picture, but I can`t get it there any way.... Could somebody help me again? :oops: :oops: :arrow: :bash:


-Kapo-
kapo
Posts: 246
Joined: Thu 03 Jan 2013 1:59 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Vihtavuori, Laukaa, Finland

Re: Help needed

Post by kapo »

Once in a lifetime!!!! I helped myself.... And now this dilemma in this time is solved by myself...An really old dog learns new tricks after all... with little steps.. gongr. to me!! :lol: :lol: :lol: :lol:
Waiting for next prob... :?:




-Kapo-
Post Reply