Adding a background image to the header I'm trying to display a photo as background image for a Drupal 7.7 website.

After reading a doc on subthemes, I have created a directory called "pasture" in the same directory where "bartik" resides (i.e. in ~/public_html/drupal/themes/pasture).


I have created the pasture.info file.




name = pasture
base theme = Bartik
stylesheets[all][] = pasture.css
files[] = pasture.jpg
core = 7.x



I have created the pasture.css file.






#header {
        background:url(/drupal/themes/pasture/pasture.jpg) top left no-repeat;
}



I have saved a public domain image as pasture.jpg. The image is the following one.




Unfortunately, my site appears completely broken, after I activate that theme, and I see numerous warnings:


  Notice: Undefined index: Bartik in method drupal_theme_initialize() (line 98 inf file /usr/www/users/simplex/drupal/includes/theme.inc).
  Notice: Trying to get property of non-object in method phptemplate_init() (line 12 in file /usr/www/users/simplex/drupal/themes/engines/phptemplate/phptemplate.engine).
I cannot comment, but some remarks


remove the files[] = pasture.jpg line, it isn't needed
you may enable your base theme, but it isn't necessary 
put your own themes (modules) under /sites/all/themes or /sites/default/themes, don not put them inside /themes (/modules), if this directory doesn't exist, just create them


Question, does your site works when using the Bartik theme?