I made the mistake of trying to alter the word "notes" in the block display: Highest Rated Nodes in the nodevote module. (My reasoning, by the way was that most of my site's users don't know what a "node" is; so I changed it in the .module file to "Highest Rated Stories." This caused a fatal error when I went to administer modules. So, I reloaded new nodevote module and here is what I get when I go to vote on existing content that did NOT have a previous vote...and I've inserted MYSITE for the exact location for security reasons...

* user warning: Unknown column 'timestamp' in 'where clause' query: SELECT uid FROM nodevote WHERE uid = '2' AND timestamp > '1161463878' in /MYSITE/drupal/includes/database.mysql.inc on line 120.
* user warning: Column count doesn't match value count at row 1 query: INSERT INTO nodevote VALUES (2, 194, 8, 1161550278) in /MYSITE/drupal/includes/database.mysql.inc on line 120.

So essentially nodevotes is no longer functioning unless there has been a previous vote.

CAN SOMEONE HELP with a fix?
thanks
geoff gevalt
www.youngwritersproject.org

Comments

Scott Reynolds’s picture

No, that doesnt look like your problem. Your problem happens because there is an error in the mysql query, not because you havent placed a previous vote. This happens i believe in your case, because you ORGINALLY had an older nodevote module and then when you paniced, downloaded a NEWER version of nodevote ( one that has the column timestamp in the nodevote table. I bet if you execute this query in mysql: DESCRIBE nodevote; You would find that there is no column timestamp ).

What you need to do is run http://yoursite.com/update.php. That should fix it. I downloaded the recent nodevote module and noticed that he JUST added that value. So your old one did not have timestamp in the table. So u just need to run your update script.

Now for your problem with node terminlogy. If you open nodevote.module and go to line 199, you will see this:

$block_title = array();
  $block_title[] = t('Most voted for nodes');
  $block_title[] = t('Highest rated nodes');
  $block_title[] = t('Most voting users');

Change it to this:

$block_title = array();
  $block_title[] = t('Most voted for nodes');
  $block_title[] = t('Highest Rated Stories');
  $block_title[] = t('Most voting users');

That should fix your problems

And as I always plug: try out my content recommendation engine. Which unfortunently wont work with nodevote, cause it doesnt use votingapi...

ggevalt’s picture

Scott,

Thanks much. You are quite right. I did panic. And because I was not at my normal computer I did upload what turned out to be a newer version of nodevote.
I actually went backwards, since I did not want to mess around with updating just now.
I went to my regular machine and reloaded the older version of nodevote.
AND, I did exactly as you suggested regarding the stories vs. nodes.
So it works perfectly. My users don't have to send me messages asking me what a node is and life is good. (Even if it is snowing in Vermont.)
I am surmising that this all began because I must have introduced an additional keystroke or a keystroke error when I did exactly what you suggested at the end. ...
Not sure what the message is here, other than I clearly should have not done what I did AND that the Drupal community rocks! Thanks for the rescue and quick, able assistance, Scott.
cheers
g

geoff gevalt
http://www.youngwritersproject.org