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

socki - March 9, 2009 - 02:21
Status:active» fixed

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

cloverleaf - March 19, 2009 - 04:58

have same problem in the new version too

#3

cloverleaf - March 19, 2009 - 05:11

solved, sorry :)

#4

andreiashu - March 24, 2009 - 02:08
Status:fixed» active

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

andreiashu - March 24, 2009 - 02:10
AttachmentSize
kudos_schema_install.patch 706 bytes

#6

mcload - March 27, 2009 - 13:39

Yes, I have the same problem. I get "Unknown column 'nodes'" errors after the fresh install of version 1.5.

#7

socki - May 1, 2009 - 00:50
Status:active» fixed

This has been fixed in version 1.6.

#8

System Message - May 15, 2009 - 01:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.