Theming with Views generates error undefined variable I have a basic installation of Drupal 7, with the Views module. I am using the Garland Template.

When I try to create a new template for my views the following error is thrown: 


  Notice: Undefined variable: build in include() (line 2 of /XXX/public_html/themes/garland/views-view—block.tpl.php).


There is only one line in that template:

&lt;?php dpm($fields); ?&gt;


Most likely this is something simple to resolve, but I cannot find the answer.
Not sure what the variable $fields are but try and do a dpm($rows) this should return an array of the fields from the views.