Closed (fixed)
Project:
NineSixty (960 Grid System)
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 May 2010 at 18:43 UTC
Updated:
31 Aug 2011 at 09:58 UTC
Here is my .info file for my sub-theme
name = 960 Grid System (CSB)
description = Created by Mark Koh for CS & B
screenshot = images/screenshot.png
core = 6.x
engine = phptemplate
base theme = ninesixty
; Stylesheets. Anything within the "framework" folder will be placed before all others.
stylesheets[all][] = styles/framework/reset.css
stylesheets[all][] = styles/framework/text.css
stylesheets[all][] = styles/framework/960.css
stylesheets[all][] = styles/framework/debug.css
; Theme specific styles. Any sub-themes should override this.
stylesheets[all][] = styles/styles.css
I copied all the files in ninesixty and paste in a sub-folder.
I run the theme. Here is the error in my PHP log.
PHP Fatal error: Cannot redeclare ninesixty_preprocess_page() (previously declared in /Applications/MAMP/htdocs/cosmetic/sites/all/themes/ninesixty/template.php:8) in /Applications/MAMP/htdocs/cosmetic/sites/all/themes/ninesixty/csb/template.php on line 19
Comments
Comment #1
jessicakoh commentedI have found out the problem: I removed the template.php in my sub-theme folder. Now everything works.
Comment #2
rovoI did exactly the same thing. Didn't realize what the problem was for two days. Subtheming is pretty straightforward, but I wish there was a small write-up specifically for this 960 base theme.
Thanks for realizing how to fix that.
Comment #3
candelas commentedthanks for theme. for me it is very interesting to be able to work with proportions in a drupal theme! :)
subscribing with this problem.
i use 7.x-1.x-dev
it would be nice to have in the txt documentation how to make the subtheme.
i read the instructions in the documentation, but it doesnt work.
i used before zen and you just duplicate the template.php and place in subtheme and didnt have this problem.
now i deleted the template.php from my subtheme and i get this error:
Comment #4
candelas commentedi had only enabled the subtheme.
once i enabled the theme, the problem was gone.