How to create custom View template? I want to create a simple php template for Views in Drupal 7, but I think I'm missing a crucial element to this puzzle, as every time I try to get to the content of Views' output in the template's php code, even if I use the default views-view.tpl.php file as a template for that particular view, I get 


  Undefined variable: fields in include() ...


How do I get around this?
How is your override requirement? Is it for all the views or for a certain views?

For certain views:
In that views admin page : go to Advanced -&gt; Theme: Click on Information

you will see the active templates for 'Display output' in bold (views-view.tpl.php) and rest available theme suggestions for overridden (comma separated). 

Now copy views-view.tpl.php from views contrib module theme folder and put it in your site theme folder, rename it to one of the name suggestion available in views. Make changes to your template.

Clear cache and check.