When the empty "settings" section of file ".info" raises error in template.php, line 441.
See patch for details.

CommentFileSizeAuthor
template.php_.patch880 bytesstokito

Comments

johnalbin’s picture

Why would you have an empty settings[] section of the .info file?

stokito’s picture

I don't need its in my subtheme. This is non standard section.

johnalbin’s picture

Status: Needs review » Closed (won't fix)

Being able to add custom theme settings' form elements is a standard D6 api. But there is no standard method to add default values for those form elements.

The lines you removed from the .info is the “standard” for Zen sub-themes. And I'm hoping to get this method added into Drupal core for D7.

If you add them back in, the PHP error goes away.

johnalbin’s picture

Title: Crach when empty "settings" section of file ".info" » PHP warning when settings section of .info file is missing
Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Closed (won't fix) » Fixed

Ok, someone else I know got bit by this.

Fixed in CVS. http://drupal.org/cvs?commit=132228

Anonymous’s picture

Status: Fixed » Closed (fixed)

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