Author Topic: Saratoga Template Parse Error  (Read 1171 times)

0 Members and 1 Guest are viewing this topic.

Offline WxNut

  • www.weathervaneweather.com
  • Member
  • *
  • Posts: 18
    • Weathervane Weather
Saratoga Template Parse Error
« on: August 01, 2018, 10:47:38 PM »
This is my first attempt and this is new territory for me.  Just made all my php config changes to the Saratoga Templates and uploaded to my test website and I am getting the following parse error:

"Parse error: syntax error, unexpected 'tz' (T_STRING) in /home/rosshome/www/test/Settings.php on line 112"

Any thoughts?   

   Line 112 in the php file is in red in below excerpt:

############################################################################
# Sitewide configuration - Station location, identity and date/time info
############################################################################

$SITE['organ']         = 'USA Website with PHP & AJAX';
$SITE['copyr']         = '© ' . gmdate("Y",time()) . ', Weathervane Weather';
$SITE['location']       = 'Montague, Michigan, USA';
$SITE['email']         = 'mailto:postmaster@weathervaneweather.com';
# Station location: latitude, longitude, cityname
$SITE['latitude']      = '43.4217987';    //North=positive, South=negative decimal degrees
$SITE['longitude']      = '-86.3582993';  //East=positive, West=negative decimal degrees
$SITE['cityname']      = 'Montague;

$SITE['tz']          = 'America/New_York'; //NOTE: this *MUST* be set correctly to
// translate UTC times to your LOCAL time for the displays.
//  http://us.php.net/manual/en/timezones.php  has the list of timezone names
//  pick the one that is closest to your location and put in $SITE['tz'] like:
//    $SITE['tz'] = 'America/Los_Angeles';  // or
//    $SITE['tz'] = 'Europe/Brussels';
// note: date format used for PHP parts only.  Weather software dates are not processed
// except on the astronomy page

Thanks in advance

Tim

Offline dwhitemv

  • KORJUNCT3
  • Member
  • *
  • Posts: 36
    • My PWS on Weather Underground
Re: Saratoga Template Parse Error
« Reply #1 on: August 01, 2018, 11:01:56 PM »
$SITE['cityname']      = 'Montague;

Missing a terminating quote, should be

$SITE['cityname']      = 'Montague';

Offline WxNut

  • www.weathervaneweather.com
  • Member
  • *
  • Posts: 18
    • Weathervane Weather
Re: Saratoga Template Parse Error
« Reply #2 on: August 01, 2018, 11:16:07 PM »
Perfect!

Thank you very much!

Tim

 

anything