Author Topic: error syntax error, unexpected T_STRING  (Read 10099 times)

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
error syntax error, unexpected T_STRING
« on: December 26, 2013, 08:22:59 AM »
hello, I'm new, I downloaded a template and when I open the index.php file I find this error:
Parse error: syntax error, unexpected T_STRING in / members / meteovalsa / wt_data_inc.php on line 486

this and 'the line of code:
$ TtempLF = $ pre_time. '<# TtempL format = "h'h'nn">'. $ Pre_date. '<# TtempL format = "d">'. $ Tr_monthnames ['<# TtempL format = "m"> '].' <# TtempL format = "yyyy"> ';

how can I fix it?

regards

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: error syntax error, unexpected T_STRING
« Reply #1 on: December 26, 2013, 09:25:41 AM »
Hi Fab,

You just have to follow instructions for your Template.
As example, see Cumulus configuration step for Weather Blues v2

In brief, all Template files and folders has to be in place on your site,
then Php templates need, at minimum, only 2 data files to be processed
by Cumulus wt_data_inc.php and wt_months_inc.php... that's it!

Hope this help!

Regards,
Jacques
Please, consider supporting this site 

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #2 on: December 26, 2013, 11:28:01 AM »
Thank you.
now I see the index.html page with all the data but when I open index.php I always see the same error
why? :'(

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #3 on: December 26, 2013, 12:04:53 PM »
attached the file of configurations .....it's ok?

but in the folder  c:/cumulus/web in local Ido not see the file wt_data_inc.php

can you help me?

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: error syntax error, unexpected T_STRING
« Reply #4 on: December 26, 2013, 12:34:08 PM »
Hi Fab,

C:\Cumulus\web is only an example place to put these data files to process,
it could be anywhere in your Pc. wt_data_inc.php and wt_months_inc.php
are the 2 files needing to be processed by Cumulus at each update interval.

So, place these 2 files in a Pc (local) folder where they are "safe" and tell
Cumulus to process them.

Regards,
Jacques
Please, consider supporting this site 

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #5 on: December 26, 2013, 01:21:43 PM »
I only have the file remotely wt_data_inc.php
  in the local folder does not exist.
I do not have wt_month_inc.php where can I find it?
the file wr_data_inc.php dvo do try to cumulus?

these files should only go local?

regards
fabry

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #6 on: December 26, 2013, 02:44:11 PM »
I check the file transfer but not transfer

you can see the attached

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: error syntax error, unexpected T_STRING
« Reply #7 on: December 26, 2013, 02:59:55 PM »
Hi Fabry,

When you got the Template zip file, you have unzipped it
to a local folder in your Pc (and send files to your website),
so, there is the local Template copy and wt_data/wt_month
files are there!

I personnaly copy wt_data_inc.php and wt_months_inc.php files
into C:\Cumulus\web folder to protect them from handling error.

Hope this solve!

Regards,
Jacques
Please, consider supporting this site 

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #8 on: December 27, 2013, 02:08:17 AM »
Hi!

no , I check now but in the folder when I unzipped file not exist the file wt_month_inc.php but only wt_data_inc.php
I don't know ....

can you pass me this file?

regards and thanks for your help

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #9 on: December 27, 2013, 04:10:05 AM »
I added the file wt_month_inc.ph in folder in local and in remote. I added from another template (Weather Eden)

I try again but do not work.

this error:


Regards

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: error syntax error, unexpected T_STRING
« Reply #10 on: December 27, 2013, 06:11:45 AM »
Hi Fabry,

You were absolutely right! wt_month_inc.php was absent from archive.
So, I've sent a new v2.2a zip file to Download Section this morning.

For the persistent error, you haven't tell Cumulus to process your files.
To do so, take back to "Cumulus configuration" step on this link:
http://weatherbyyou.com/wb_install.php#install


1 - Untick option "Include Standard Files"
2 - Add a line as the example:
 . Local Filenames is the file name with the complete path (one line for wt_data and an other for wt_month)
 . Remote Filename is where you want the file in your website (name and complete path)
3 - For each file, you have to choose (tick) Process? and FTP? options.

That way, Cumulus, will take the "data files" and process the "webtags" included by turning
these special words into real weather data... finally, FTP? option will tell Cumulus to send
the files to website.

Hope this help!

Regards,
Jacques
Please, consider supporting this site 

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #11 on: December 27, 2013, 09:36:41 AM »
 :-* :-*
thanks .....

now I'm happy ....

Tomorrow I start to fix everything in case if I need to contact you for help on this forum

thanks MRmeteo

you see here: http://stazionealena.altervista.org/cumulus/index.php

best regards

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #12 on: December 27, 2013, 09:54:07 AM »
There are other files to be added in addition to wt_data and wt_month

In the software cumulus in my server for the date of the station there is the pissibility with italian language?

Regards

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #13 on: December 27, 2013, 10:02:44 AM »
HI

I have a problem, the data on this page does not update index.php

regards

Offline fabrym

  • Jr. Member
  • **
  • Posts: 25
    • Osservatorio Meteorologico Alena
Re: error syntax error, unexpected T_STRING
« Reply #14 on: December 27, 2013, 10:48:01 AM »
I proceed with installation and setup but here there error:

attached file