I'm not sure this is a bug, but thought it might be.
My Purpose: I wanted to create a book page with several child pages that I could use as a template for cloning additional book page sets.
This is what I did:
I had just installed the node_template-5.x-1.6.tar.gz module onto my test website. After configuring it, I created a book page, and then created 3 child pages. When I pressed the "Set Template" tab at the top of the book page, this error message came up.
user warning: Unknown column 'shared' in 'field list'
query: INSERT INTO node_template (nid, is_template, shared) VALUES
(229, 1, 0) in
/home/winterss/public_html/winsewtest/includes/database.mysql.inc on
line 167. Then, when I clicked on the "My Node Templates" Menu on the left side, it brought up the "Node Template" page with this message:
user warning: Unknown column 's.shared' in 'field list' query: SELECT n.nid, n.uid, n.type, 0 AS cid, 1 AS node, n.title, n.status, n.changed, s.shared FROM node n INNER JOIN node_template s ON n.nid = s.nid WHERE s.is_template = 1 ORDER BY changed DESC LIMIT 0, 50 in /home/winterss/public_html/winsewtest/includes/database.mysql.inc on line 167.
You have no node template yet.
What is the matter? And How Do I accomplish this?
Best Wishes,
Stephen
| Comment | File | Size | Author |
|---|---|---|---|
| NodeTemplateError.jpg | 25.05 KB | Stephen Winters |
Comments
Comment #1
motou commentedIt seems the same problem with the update() function. In order to help the old user upgrade easily, I made an update to the .install file, which should update the database by running the drupal's update.php.
BUT, I found many new users will NOT run the update script. :( so, I've changed the .install file from the version 1.8.
To your problem:
Please download the version 1.8. After disabling the module in the admin area, extract all files of new version to overwrite the old version module files. Then enable the module again. It should work now.
For any feedback I'll be appreciated. :)
Comment #2
(not verified) commented