ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Help!! Database error for commenters after upgrade from 1.7.1 to 2.1.3

April 20, 2011 11:23am

Subscribe [2]
  • #1 / Apr 20, 2011 11:23am

    Adrienne L. Travis

    213 posts

    Some of our commenters get the following error when posting:

    A Database Error Occurred
    
    Error Number: 1054
    
    Unknown column 'Array' in 'field list'
    
    UPDATE `exp_stats` SET `total_comments` = '251522', `last_comment_date` = Array WHERE `site_id` = '1'
    
    Filename: libraries/Stats.php
    
    Line Number: 508

    the table exp_stats doesn’t actually have ANYTHING in it at the moment, so nothing is getting updated there at all. Comments do actually post, but it’s behavior that’s confusing a bunch of people.

    This is a bog-standard EE install, there were no addons before the upgrade and there’s only a couple of anti-spam addons now.

  • #2 / Apr 20, 2011 12:05pm

    Sue Crocker

    26054 posts

    Hi, Adrienne.

    Let’s have you do a DESC exp_stats from the Tools > Data > SQL Manager > Database Query Form.

    Do you have the same number of fields as I do?

  • #3 / Apr 20, 2011 12:31pm

    Adrienne L. Travis

    213 posts

    Sue, Yeah, my table looks just like yours.

  • #4 / Apr 21, 2011 2:09pm

    Sue Crocker

    26054 posts

    Hi, Adrienne. Did you turn off the stats module? Can you double check that it’s installed?

  • #5 / Apr 21, 2011 2:52pm

    Adrienne L. Travis

    213 posts

    It is. I also fixed the issue by creating an entry in the exp_stats table for site 1 (just left everything else blank). After i did that, EE apparently figured out what it was supposed to be doing. 😊

  • #6 / Apr 22, 2011 2:47pm

    Sue Crocker

    26054 posts

    Hmmm.. I’m going to resolve this for now.. but do re-open it if needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases