Weather by You!
Templates and Projects support => Php templates => Topic started by: JohnRT 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.
-
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++) {
-
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
-
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
-
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. :'(
-
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
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
-
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
-
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
-
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
-
Thanks Jacques. Things are good. :-*
Oops. Don't take that smiley the wrong way! :-[
:D is the one I should have used.
-
hi hi hi hi...
...no problem John! :)
Jacques