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

BozHogan’s picture

Me 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

dwaine’s picture

I'm familiar with the cause of both of these issues. My goal is to check in updated code this evening.

dwaine’s picture

Assigned: Unassigned » dwaine
Status: Active » Fixed

Two 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.