Author Topic: Weather Sky problems  (Read 10470 times)

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Weather Sky problems
« on: March 17, 2013, 06:30:12 PM »
http://ccgi.john-the-r-t.co.uk/weather/index.php

Some of the pages are just showing the <webtags>. Trends and Gauges are partly correct although two images are out of line and the last three images are missing.

On my manage.php page I'm getting two errors

1. Undefined variable: manage.php on line 298

298 reads
$YearHumHF = $pre_time.'<#YearHumHT>'.$pre_date.'<#YearHumHD>';


2. Parse error: syntax error, unexpected '<'  in wt_data_intl.php
565 reads
$RCdew = <#RCdew>;

Internet settings

Files
Include Standard Files = No
Include Standard Images = Yes

Local filenames
E:\Cumulus\weather\wt_data_inc.php

Remote filenames
\weather\wt_data_inc.php = Process Yes.  FTP Yes

Any assistance much appreciated.
John the R-T

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #1 on: March 18, 2013, 01:48:33 PM »

1. Undefined variable: manage.php on line 298

298 reads
$YearHumHF = $pre_time.'<#YearHumHT>'.$pre_date.'<#YearHumHD>';


Sorry my mistake.
298 reads
for ($inc = 0; $inc < count($new_files); $inc++) {
John the R-T

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #2 on: March 19, 2013, 11:27:34 AM »
http://ccgi.john-the-r-t.co.uk/weather/index.php

Some of the pages are just showing the <webtags>. Trends and Gauges are partly correct although two images are out of line and the last three images are missing.

On my manage.php page I'm getting two errors

1. Undefined variable: manage.php on line 298

298 reads
$YearHumHF = $pre_time.'<#YearHumHT>'.$pre_date.'<#YearHumHD>';


2. Parse error: syntax error, unexpected '<'  in wt_data_intl.php
565 reads
$RCdew = <#RCdew>;

Some problems sorted out.
Present problems are:-
1.  Undefined variable: new_lang_files in /weather/manage.php on line 358

2. Parse error: syntax error, unexpected '<' in /weather/wt_data_intl.php on line 565

3. Undefined variable: new_files in /weather/manage.php on line 298

Problems with
multirecords.php = webtags showing
multirecords.php All time records = some webtags showing
multirecords.php monthly records = webtags showing
John the R-T

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Weather Sky problems
« Reply #3 on: March 19, 2013, 02:44:44 PM »
Hi John,

Page you are working on is a html page, so it have to be processed
by Cumulus alone, as an optional page (or converted to Php).

Regards,
Jacques
Please, consider supporting this site 

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #4 on: March 19, 2013, 05:40:04 PM »
Hi John,

Page you are working on is a html page, so it have to be processed
by Cumulus alone, as an optional page (or converted to Php).

Regards,
Jacques

The output produced by http://ccgi.john-the-r-t.co.uk/weather/multirecords.php certainly is but it is showing webtags.
ie. Highest Temperature    <#ByMonthTempH mon=02>

All time Multi records for all year is the same:-
http://ccgi.john-the-r-t.co.uk/weather/multirecords.php# is the same
ie. Highest Temperature    19.6 <#tempunit>    at 14:58 on 05 March 2013

manage.php has the three errors shown in my previous post.

1.  Undefined variable: new_lang_files in /weather/manage.php on line 358

2. Parse error: syntax error, unexpected T_STRING in /weather/wt_data_intl.php on line 342


3.  Undefined variable: new_files in /weather/manage.php on line 298

I must be doing something wrong but I have no idea what it is. :'(
John the R-T

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Weather Sky problems
« Reply #5 on: March 19, 2013, 05:53:43 PM »
Hi John,

First thing first! Your multirecords.php file is a html file
that is why you see things like: <#ByMonthTempH mon=02>

That file is not Php, so you have to process this file to change those
"<#ByMonthTempH mon=02>" into real weather data! To do so,
you have to follow these instructions: http://weatherbyyou.com/ws_install.php#
(See section: Configuration)

Regards,
Jacques
Please, consider supporting this site 

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #6 on: March 19, 2013, 07:03:32 PM »
Hi Jacques
Thanks, I got confused because of the .php extension and the heading
<?php
$tpl_version = "1.1";
if (isset($_GET['ver'])) {
  echo $tpl_version;
  exit;
}
etc

I'm still trying to learn PHP.  Most of my site uses simple includes for navigation, headers and footers.

I've configured Cumulus to Process and FTP multirecords.php but still getting the same errors.

Off to bed now.  I'll have another go tomorrow.

'night


session_start(); // start PHP session
John the R-T

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #7 on: March 25, 2013, 09:03:51 AM »
Hi John,

First thing first! Your multirecords.php file is a html file
that is why you see things like: <#ByMonthTempH mon=02>

That file is not Php, so you have to process this file to change those
"<#ByMonthTempH mon=02>" into real weather data! To do so,
you have to follow these instructions: http://weatherbyyou.com/ws_install.php#
(See section: Configuration)

Regards,
Jacques

Hi Jacques

I think I've followed all the configuration correctly.
Instructed Cumulus to Process and FTP wt_data_inc.php and multirecord.php.

All records page is still partly correct.

Other monthly pages still show the webtags.

I can't understand why some webtags are processed and others not.


http://www.john-the-r-t.co.uk/misc/weather_sky01.jpg
John the R-T

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Weather Sky problems
« Reply #8 on: March 25, 2013, 09:57:10 AM »
Hi John,

You simply process the wrong file, not multirecord.php

You have to choose 1 of 2:

1 - wt_month_inc.php : English
2 - wt_month_intl.php : All languages

Then process it:

Local filename: wt_month_intl.php
Remote filename: wt_months_inc.php (notice the 's' at month)
Thing will be good! :D

Regards,
Jacques
Please, consider supporting this site 

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #9 on: March 25, 2013, 11:59:51 AM »
Hi John,

You simply process the wrong file, not multirecord.php

You have to choose 1 of 2:

1 - wt_month_inc.php : English
2 - wt_month_intl.php : All languages

Then process it:

Local filename: wt_month_intl.php
Remote filename: wt_months_inc.php (notice the 's' at month)
Thing will be good! :D

Regards,
Jacques

Thanks Jacques.  Things are good.    :-*

I replaced my local multirecord files with those downloaded earlier and the Records pages now load correctly.  Still having problems with the manage.php page though.  However the new records files downloaded.

Regards
John
John the R-T

Offline JohnRT

  • Jr. Member
  • **
  • Posts: 17
    • Welwyn Garden City weather
Re: Weather Sky problems
« Reply #10 on: March 26, 2013, 03:59:04 AM »
Thanks Jacques.  Things are good.    :-*

Oops.  Don't take that smiley the wrong way!   :-[
 :D is the one I should have used.

John the R-T

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Weather Sky problems
« Reply #11 on: March 26, 2013, 04:06:07 PM »
hi hi hi hi...

...no problem John!  :)

Jacques
Please, consider supporting this site