Author Topic: Weather sunset: Parse error: syntax error, unexpected 'h' (T_STRING) ...  (Read 63 times)

Offline Giggino

  • Newbie
  • *
  • Posts: 2
I uploaded the Weather sunset template but when I go to open my web page I have this error:
Parse error: syntax error, unexpected 'h' (T_STRING) in /membri/lastazionedelporto/wt_data_inc.php on line 486
Can someone help me understand the problem? Many thanks!

Offline Andy9164

  • Full Member
  • ***
  • Posts: 69
    • Midlifedad
Re: Weather sunset: Parse error: syntax error, unexpected 'h' (T_STRING) ...
« Reply #1 on: October 22, 2018, 10:40:37 AM »
Hi Giggino,
I will try and help you out if I can.

First question, which version of Cumulus are you using.

Andy

Offline Andy9164

  • Full Member
  • ***
  • Posts: 69
    • Midlifedad
Re: Weather sunset: Parse error: syntax error, unexpected 'h' (T_STRING) ...
« Reply #2 on: October 22, 2018, 11:43:15 AM »
Hi,
I had a search in the forum as I had done some work on a similar issue before. This was related to when using Cumulus MX with Weather Blues template but I think you may run into similar issues with Weather Sunset template whem using Cumulus MX.

http://weatherbyyou.com/forum/index.php?topic=2658.msg5966#msg5966

If you search for parse in the php template forum you will find more information.

If you need more help just shout.

Andy

Offline Andy9164

  • Full Member
  • ***
  • Posts: 69
    • Midlifedad
Re: Weather sunset: Parse error: syntax error, unexpected 'h' (T_STRING) ...
« Reply #3 on: October 23, 2018, 11:23:10 AM »
I also need to take a step back here as I did some more testing today.

If the wt_data_inc file is not being processed by Cumulus it also brings the same error.

So firstly, make sure the following files are being processed in Cumulus by copying them across to your main Cumulus directory and then:

For Cumulus 1.9.x version go to Configuration --> Internet and click on the Files tab and add the entries like so (just an example)
Local Filename: C:\Cumulus\wt_data_inc.php
Remote Filename: public/website/weather/wt_data_inc.php
Make sure the "Process" and the "FTP" buttons are checked.

The same will apply if you are using Cumulus MX except the settings are found under the "Settings" --> Extra Web Files menu.

Files that need processing are wt_data_inc.php and wt_month_inc.php

Let me know how you get on. As I say you may need other changes if you are using CumulusMX.

Andy