Closed (fixed)
Project:
U.S. National Weather Service
Version:
7.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jan 2011 at 19:56 UTC
Updated:
27 Feb 2011 at 03:11 UTC
I just installed your module as per suggested in the APress Tomlinson book. I enabled it and set the block to the right sidebar (using Garland theme). When I went to home page to view I got this:
Parse error: syntax error, unexpected $end in C:\xampplite\htdocs\begdrupal7\sites\all\modules\nws_weather\nws-weather-forecast-period.tpl.php on line 27
Comments
Comment #1
BozHogan commentedMe again. I just moved your block (Multi Day Forecast) to the left side bar and got 16 messages like this:
Deprecated function: Function ereg_replace() is deprecated in nws_weather_process_dwml() (line 737 of C:\xampplite\htdocs\begdrupal7\sites\all\modules\nws_weather\nws_weather.module).
when I pressed the Save Configuration button on the Block Administration page.
I continue to get the parse error above when trying to view the home page.
HTH,
Boz Hogan
Comment #2
dwaine commentedI'm familiar with the cause of both of these issues. My goal is to check in updated code this evening.
Comment #3
dwaine commentedTwo changes were made to fix these two issues.
A php tag was corrected to fix the PHP parse error.
The code that called a deprecated PHP function was updated to call the similiar replacement PHP function.
These two bugs occur for some installations and not others. The factors are whether 'PHP short tags' are enabled and what version of PHP is installed. But the errors are serious for the installations that encounter them. For that reason a new release, 7.x-1.1, has been made available.