MySQL error - Unknown column 'nodes'
phonydream2 - March 7, 2009 - 02:23
| Project: | Kudos |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Installing this module on both a live test site and localhost I get an error 'Unknown column nodes' originating from line 687 from kudos.inc (there are other references to the nodes field in this file).
Looking at the MySQL database I see there is no node field. If I create this field myself then the error goes away. So, the install file is not creating this field in the database.

#1
Thank you. It seems that the install hook within the module was not being caught properly due to an improperly named function declaration.
This has been addressed in version 1.5 of the D6 branch.
#2
have same problem in the new version too
#3
solved, sorry :)
#4
Sorry to reopen this but i think this issue is not yet solved. I'm not sure how hook_update works but I think that you need to add that field definition to $schema['kudos_info'] too. I think that hook_update is called only when you update from an older version of the module, but for ex when you install it fresh then you won't have that field definition.
Hope this helps,
andreiashu
#5
#6
Yes, I have the same problem. I get "Unknown column 'nodes'" errors after the fresh install of version 1.5.
#7
This has been fixed in version 1.6.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.