I am getting the following error generated by this module every time cron is run:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%d, auser = auser + %d, nnode = nnode + %d, cnode = cnode + %d, pi = pi + %d, up' at line 2: UPDATE {statspro} SET nuser = nuser + %d, auser = auser + %d, nnode = nnode + %d, cnode = cnode + %d, pi = pi + %d, upi = upi + %d, error = error + %d, uerror = uerror + %d, warning = warning + %d, uwarning = uwarning + %d, emergency = emergency + %d, uemergency = uemergency + %d, alert = alert + %d, ualert = ualert + %d, critical = critical + %d, ucritical = ucritical + %d WHERE day = '%s'; Array ( [0] => 0 [1] => 1 [2] => 1 [3] => 4 [4] => 27 [5] => 27 [6] => 4 [7] => 4 [8] => 33 [9] => 33 [10] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 0 [16] => 2013-04-16 ) in StatsPro->store_day() (line 929 of /public_html/sites/all/modules/statspro/statspro.inc).
Any help fixing this would be appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | statspro-sql_error-1972522-3.patch | 890 bytes | uhkis |
Comments
Comment #1
input commentedCan confirm this issue
Comment #2
Benone_ commentedReplace
with
in statspro.inc
Comment #3
uhkis commented#2 in patch form
Comment #4
Benone_ commented