WXforum.net
May 22, 2013, 10:37:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178614  •  Topics: 18127
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Need help  (Read 771 times)
0 Members and 1 Guest are viewing this topic.
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2729


SCCA EM #156


WWW
« on: June 30, 2012, 09:43:14 PM »

Of course nothing goes wrong while I'm at home... Brian... HELP!

Error on line 112 of testtags.php. It has to do with this alert ($NOAAEvent is line 112) I can remove this section and everything works.
Parse error: syntax error, unexpected T_STRING in /hsphere/local/home/bruecksteve/daculaweather.com/testtags.php on line 112



$NOAAEvent = 'Heat Advisory Current Watches, Warnings and Advisories for Gwinnett (GAZ034) Georgia Issued by the National Weather Service</title><link href='http://alerts.weather.gov/cap/wwaatmget.php?x=GAZ034&amp;y=0'/><entry><id>http://alerts.weather.gov/cap/wwacapget.php?x=GA124CB3040B70.HeatAdvisory.124CB73CFB5CGA.FFCNPWFFC.59f4c0f27063c1b39260a5b564d2759c</id><updated>2012-06-30T16:12:00-04:00</updated><published>2012-06-30T16:12:00-04:00</published><author><name>w-nws.webmaster@noaa.gov</name></author><title>Heat Advisory '; // NOAA Watch/Warning/Advisory
$noaawarningraw = '
GAZ034
Heat Advisory
...DANGEROUS HEAT WAVE ACROSS NORTH AND CENTRAL GEORGIA TO CONTINUE THROUGH
THE WEEKEND... ...HEAT ADVISORY NOW IN EFFECT UNTIL 9 PM EDT SUNDAY... *
LOCATIONS...MOST OF NORTH AND PARTS OF WEST CENTRAL GEORGIA... GENERALLY WEST
AND SOUTH OF A ETON TO GAINESVILLE LINE AND NORTHWEST FROM A LINE NEAR COLUMBUS
TO GAINESVILLE....CODE RED AIR QUALITY ALERT IS IN EFFECT FOR ATLANTA FOR SUNDAY JULY
1... THE GEORGIA DEPARTMENT OF NATURAL RESOURCES...ENVIRONMENTAL PROTECTION
DIVISION HAS ISSUED A CODE RED (UNHEALTHY FOR MANY PEOPLE) AIR QUALITY ALERT FOR
ATLANTA FOR SUNDAY JULY 1.'; // NOAA RAW watch/warning/advisory
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

Weather Display
Forecaster
*****
Online Online

Posts: 2259


WWW
« Reply #1 on: June 30, 2012, 09:50:45 PM »

looks like  more of someone who is an expert in the scripts to be able to help out and pinpoint what is wrong
(I am not that expert, sorry)
Logged

DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2729


SCCA EM #156


WWW
« Reply #2 on: June 30, 2012, 09:57:37 PM »

I removed those two lines from the testtags.txt file and it started working again. but why it was happening I don't know.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

saratogaWX
Administrator
Forecaster
*****
Online Online

Posts: 3732


Saratoga, CA, USA Weather - free PHP scripts


WWW
« Reply #3 on: July 01, 2012, 02:35:01 AM »

It's the single-quote marks in the URL included in the response that causes the issue

$NOAAEvent = 'Heat Advisory Current Watches, Warnings and Advisories for Gwinnett (GAZ034) Georgia Issued by the National Weather Service</title><link href='http://alerts.weather.gov/cap/wwaatmget.php?x=GAZ034&amp;y=0'/><entry><id>http://alerts.weather.gov/cap/wwacapget.php?x=GA124CB3040B70.HeatAdvisory.124CB73CFB5CGA.FFCNPWFFC.59f4c0f27063c1b39260a5b564d2759c</id><updated>2012-06-30T16:12:00-04:00</updated><published>2012-06-30T16:12:00-04:00</published><author><name>w-nws.webmaster@noaa.gov</name></author><title>Heat Advisory '; // NOAA Watch/Warning/Advisory

You can change the line
Code:
$NOAAEvent = '%NOAAEvent%';
to
Code:
$NOAAEvent = "%NOAAEvent%";
and that should remove the error.  Nothing in the template set uses $NOAAEvent, so it's also ok to just delete the line Smile

Best regards,
Ken
Logged

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP
DaculaWeather
It's a Jeep thing... you wouldn't understand.
Forecaster
*****
Offline Offline

Posts: 2729


SCCA EM #156


WWW
« Reply #4 on: July 01, 2012, 08:11:44 AM »

Thanks Ken!
I removed the two lines last night after I got desperate! I don't use those either so no harm done.
Logged

Steve
Davis Vue, VWS, WDisplay, VVP, StartWatch CWOP 

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.215 seconds with 19 queries.