Closed (fixed)
Project:
User Points
Version:
4.7.x-2.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2007 at 05:36 UTC
Updated:
11 Mar 2007 at 19:20 UTC
every time a point is added, either by a post, manual add, or retroactive, i get this in the watchdog:
Column count doesn't match value count at row 1 query: INSERT INTO userpoints VALUES (11086, 0, 1173590071) in /home/grownupg/public_html/includes/database.mysql.inc on line 121.
Points do not update past user #1
Comments
Comment #1
kbahey commentedYou must be using the wrong version.
4.7.x-2.1 should never have this problem. If you check the top of the userpoints.module, it should have this:
//$Id: userpoints.module,v 1.30.2.18 2007/01/26 02:56:40 kbahey Exp $And that version does an INSERT with 4 columns, not 3 as you see in your error message.
Comment #2
iedude@remote.insidetheie.com commentedthank you for the fast response..
I re-downloaded, removed and re-installed with this version (same as before):
//$Id: userpoints.module,v 1.30.2.18 2007/01/26 02:56:40 kbahey Exp $However, i still get the same error:
Column count doesn't match value count at row 1 query: INSERT INTO userpoints VALUES (11098, 0, 1173630415) in /home/growupg/public_html/includes/database.mysql.inc on line 121.with every userpoint update.
I did previously have 1.0 installed. before installing the newer version I deactivated the modules, removed the modules, dropped the userpoints table(s) and removed the userpoints rows from the System table..
Perhaps i missed a step?
otherwise there still appears to be a problem.
Comment #3
kbahey commentedThere is something wrong with your installation. Perhaps the old module is still somewhere, and is being used instead of the new one.
From mysql command line, or phpMyAdmin, execute the following SQL, and paste it here.
SELECT filename FROM system WHERE name = 'userpoints';This will tell you if it is pointing to the correct directory or one that has old stuff in it.
Comment #4
iedude@remote.insidetheie.com commentedOutput:
modules/userpoints2/userpoints.moduleit appears to be pointing in the right place (the only place)..
//$Id: userpoints.module,v 1.30.2.18 2007/01/26 02:56:40 kbahey Exp $Did I take all the right steps in removing version 1.0 (listed in my previous post)?
Comment #5
kbahey commentedIs there a way for me to get access to your system and see what is going on first hand? Preferrably ssh access would be best.
Use this form http://drupal.org/user/4063/contact.
Comment #6
kbahey commentedThis turned out to be a problem when doing userpoints retroactive, not userpoints itself.
The version on the site was:
// $Id: userpoints_retroactive.module,v 1.1.2.3 2007/01/13 09:16:51 kbahey Exp $
It should be:
// $Id: userpoints_retroactive.module,v 1.1.2.4 2007/02/04 16:07:04 kbahey Exp $
Which does conform to the new API.