Closed (fixed)
Project:
Weight
Version:
7.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2012 at 16:01 UTC
Updated:
29 Apr 2012 at 02:01 UTC
The following updates returned messages
weight module
Update #7205
Failed: 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 ')' at line 1: SELECT COUNT(nid) FROM {node} WHERE type IN (); Array ( ) в функции weight_update_7205() (строка 208 в файле /home/host6280/public_html/sites/all/modules/weight/weight.install).
any ideas what does it mean?
Comments
Comment #1
davisbenIt looks like the error was caused by not having any content types enabled for weight. I added a check for this to the update function. It will be available in the next dev release, or you can get it from git now.
Comment #2
davisbenComment #3
Single commentedFixed? I do not see this error anymore
Now update hangs at 7205
The following updates returned messages
weight module
Update #7205
Failed: DatabaseSchemaObjectExistsException: Table weight_weights already exists in function DatabaseSchema->createTable() (str 652 in /public_html/includes/database/schema.inc).
Table really do exists already
Comment #4
davisbenI just committed a change to the 7205 update that will only try to create the table if it doesn't already exist. This should allow your update to process as expected.
Comment #6
lunk rat commentedI had this error after upgrading to rc2. Went to 7.x-2.x-dev and update worked without error.