Author Topic: Index.php error  (Read 8314 times)

Offline livemeteo

  • Jr. Member
  • **
  • Posts: 13
    • Palo Meteo Live
Index.php error
« on: November 07, 2013, 02:17:12 AM »
Dear Jacques, after the successful experience with His htm pages, I wanted to try the system php, but when I call the main page of the site load on the server, index.php, appears on the webpage this error: Parse error: syntax error, unexpected ':' in D: \ Inetpub \ webs \ delfinoantoniosasit \ Albisola \ cumulusphp \ wt_data_inc.php on line 343. This is just testing a server a friend of mine who already has pages that run on PHP. Can you give me some advice? Thanks and good work. John

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Index.php error
« Reply #1 on: November 07, 2013, 06:16:52 AM »
Hi John,

What you have is absolutely normal, because data files aren't processed,
so it contain "special words" (Cumulus webtags) that need to be transformed
to weather data by Cumulus.

In php, data and pages are separated, so you need to process only 2 files:
wt_data_inc.php and wt_month_inc.php. All pages need these files
to "fill the holes", where weather data is needed.

See step-by-step instructions to use it, in particular Cumulus configuration.

So, hope you some fun with php learnings... knowledge often come
when something wrong occur!

Regards,
Jacques
Please, consider supporting this site 

Offline livemeteo

  • Jr. Member
  • **
  • Posts: 13
    • Palo Meteo Live
Re: Index.php error
« Reply #2 on: November 07, 2013, 07:11:16 AM »
Thanks Jacques, I will try to figure out how to run things: at the moment it seems to me that you understand that the Cumulus program must send the files to the server and wt_data_inc.php wt_month_inc.php.'ll Let you know the developments of my studio!

See you soon and thanks again for the great support that gives us.

Enjoy the rest of the day.
John

Offline livemeteo

  • Jr. Member
  • **
  • Posts: 13
    • Palo Meteo Live
Re: Index.php error
« Reply #3 on: November 10, 2013, 03:22:11 PM »
Dear Jacques, I have tried in PHP! .... How many doubts ...! Anyway, I wanted to ask you: but the file wt_data_inc.php I have to install it in the folder of the WEB program cumulus? Only this file I have to put it on the cumulus program, the PC station, or should I install other files on the program cumulus? Unfortunately I did not understand ... and I have not figured out if I need to change something in the file before installing it wt_data_inc.php ...
THANK YOU very much for ... patience ...!
John

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Index.php error
« Reply #4 on: November 10, 2013, 09:36:47 PM »
Hi John,

For your template, there is 2 files to be processed by Cumulus:

- wt_data_inc.php (data file for all pages)
- wt_month_inc.php (for month-by-month records)

You could place these 2 files anywhere in your (weather) Pc,
as you can "browse" to it. C:\Cumulus\web folder could be a place.

Best regards,
Jacques
Please, consider supporting this site 

Offline livemeteo

  • Jr. Member
  • **
  • Posts: 13
    • Palo Meteo Live
Re: Index.php error
« Reply #5 on: November 11, 2013, 06:32:13 AM »
Jacques, thanks again .... I will try to put both files in the WEB because of cumulus and then get charged on the server. It seems to me that you understand the instructions that I should not change anything in the two files. I'll tell you if it works. Good day, John

Offline pernaczy

  • Jr. Member
  • **
  • Posts: 10
    • NIESIOĊOWICE NA KASZUBACH-Pogoda online
Re: Index.php error
« Reply #6 on: November 12, 2013, 01:43:00 AM »
Mr.Meteo
My friend is trying to install "Weather Eden" template. He is receiving message: Parse error: syntax error, unexpected T_STRING in /home/u114379421/public_html/wt_data_inc.php on line 479
Can you say what is the reason of such a message?
Best Regards,
Piotr
The day in which I have learned something is not the lost one.


Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Index.php error
« Reply #7 on: November 12, 2013, 06:45:40 AM »
Hi Piotr,

This problem is usually caused by an unprocessed data file.
So, process files wt_data_inc.php and wt_month_inc.php
like indicated in section Cumulus configuration: http://weatherbyyou.com/we_install.php#install

Regards,
Jacques
Please, consider supporting this site