After replicating SUBTHEME to make a new sub-theme (named bw) of Zen on Drupal 6.x-dev (and enabling that theme), I receive:
user warning: Unknown column 'description' in 'field list' query: UPDATE system SET description='sites/all/themes/zen/zen.info', filename='sites/all/themes/zen/bw/bw.info' WHERE name='bw' in /web/test/sites/all/themes/zen/template-subtheme.php on line 43.
I don't know how to fix this yet, or I would roll a patch. There apparently is a description field in the system table in 5, but apparently is not one in 6.x I looked briefly through the Updating modules and Updating themes pages, and did not see a mention of the change, however.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | error.jpg | 31.19 KB | rtivel |
| #4 | drupal_5 theme file structure.jpg | 53.76 KB | rtivel |
| #4 | drupal_6 theme file structure.jpg | 66.9 KB | rtivel |
Comments
Comment #1
keith.smith commentedComment #2
johnalbinActually, most of the template-subtheme.php may need to be removed since it was design for D5 and hasn't been updated for D6.
The HEAD version of Zen (for Drupal 6) should be considered alpha-quality at this stage. It has a bunch of bugs. But thanks for the bug report. It will get fixed!
Comment #3
maastrix commentedSame problem here..
Removed the message by commenting out Line 43:
Comment #4
rtivel commentedFYI. The "description" field no longer exists in the database structure for themes in drupal 6.x. It has been replaced by an "owner" field. However, simply replacing "description" with "owner" in line 43 did not work for me. When I tried this, I got the following error: "warning: call_user_func_array(): First argumented is expected to be a valid callback, 'phptemplate_menu_local_tasks' was given in C:\Apache2\htdocs\drupal6\includes\theme.inc on line 591." The path is to the includes folder on my test platform. So, the solution to the problem as stated above (comment out line 43) is probably the best fix for a novice like me, for now.
Comment #5
jayjenxi commentedI'm having the same problem too. Commenting out the line worked. I hope commenting out the line didn't affect the theme's function in anyway. This is my first time working on a custom theme and the Zen theme has been easy to custom so far.
Comment #6
rtivel commentedI have found other problems with subthemes--subthemes are certainly not ready for "prime time" yet. For example, my Zen subtheme logs lots of error messages to the effect that it can't find things, such as an html-elements.css file unless that file is actually copied from the Zen directory into the subtheme directory--even though the "drupal_add_css(path_to_theme() .'/html-elements.css', 'theme', 'all');" statement exists in the subtheme's template.php file. I've attached details for one such message: the error was resolved by moving the images folder into the subtheme's folder. I might also note that a lot of the current theming information is not longer suitable for Drupal 6.x--even information presumably about Drupal 6. An example of this is the free, downloadable theming section (chapter 8) of the Drupal 6 book. This section begins with examples that work in Drupal 5.x but ignore requirements for Drupal 6, such as the requirement for an .info file for themes.
Comment #7
johnalbinYes, there's a lot of work that still needs to be done. I'm hoping for some help.
However, I think this particular bug has been fixed.
Also,
path_to_theme()returned the path to Zen in D5, but returns the path to the sub-theme in D6. Which caused all sorts of wrong paths for CSS files, etc. That has been fixed too.Comment #8
rtivel commentedJohn,
I downloaded the latest 6.x Zen version and created a basic subtheme--without generating any errors. It would seem that you fixed the problems I was seeing. I do think some remarks should be added to the documentation with respect to making the necessary changes to the SUBTHEME.info file. Other necessary changes are pretty well covered in the documentation.
Thanks for your support.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.