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