Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
ERROR: invalid input syntax for integer: "Array" at character 172
Jan 24 18:30:40 db postgres[30169]: [2-2] {22P02} STATEMENT: INSERT INTO field_data_weight (entity_type, entity_id, revision_id, bundle, delta, language, weight_value) VALUES ('node', '2403', '2403', 'eyeglass_display', '0', 'und', 'Array')
Comment | File | Size | Author |
---|---|---|---|
#14 | fedbck.PNG | 18.8 KB | 1futurevj |
#14 | err.PNG | 18.48 KB | 1futurevj |
#6 | 2012-01-26-16.34.12.png | 117.39 KB | dema502 |
#6 | 2012-01-26-16.36.49.png | 20.71 KB | dema502 |
#5 | 2012-01-26-16.11.22.png | 36.24 KB | dema502 |
Comments
Comment #1
davisbenCould you provide a bit more info? What were you attempting to do that caused this error?
Comment #2
dema502 CreditAttribution: dema502 commentedI try to change weight through views - url http://site.com/weight
I've modified this view add node type and language field and expose filters
Right now i've double checked content type and fields and error is gone but weight is not changed
Comment #3
davisbenThanks, I'll check it out.
Comment #4
davisbenI'm unable to reproduce this error. Could you try without any additional fields in the view to see if that works?
Comment #5
dema502 CreditAttribution: dema502 commentedok
look at screenshots i try to debug
and finaly
Comment #6
dema502 CreditAttribution: dema502 commentedI've added manualy thougth node edit form
look at screenshots
and result
Compare 2012-01-26-16.34.12.png (node_load) and 2012-01-26-16.13.58.png (before node_save)
And what about language?
Comment #7
davisbenCould you give it a try with the latest dev release? There have been a few fixes related to locale/translation.
Comment #8
davisbenComment #9
Audrius Vaitonis CreditAttribution: Audrius Vaitonis commentedI got the same error, maybe this will be helpful. I am not planning to continue testing, I just choose different module for the job. I also tried dev version but error continued.
my database - postgress,
node with enabled language translations and language.
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "Array" LINE 1: ...S ('node', '71', '102', 'gallery_item', '0', 'und', 'Array') ^: INSERT INTO field_data_weight (entity_type, entity_id, revision_id, bundle, delta, language, weight_value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( ) in field_sql_storage_field_storage_write() (line 448 of /home/audrius/public_html/grants/grants_drupal/modules/field/modules/field_sql_storage/field_sql_storage.module).
Comment #10
arrubiu CreditAttribution: arrubiu commentedI've the same problem, only with postgres.
A clean installation, I've installed only views, devel and weight, if I try to manage weight from the views I obtain this:
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "Array" LINE 1: ...e) VALUES ('node', '6', '6', 'article', '0', 'und', 'Array') ^: INSERT INTO field_data_weight (entity_type, entity_id, revision_id, bundle, delta, language, weight_value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( ) in field_sql_storage_field_storage_write() (line 448 of /home/sdurzu/workspace/weight/modules/field/modules/field_sql_storage/field_sql_storage.module).
Comment #11
davisbenIt looks like your using 7.x-2.0-beta3, or earlier, as the field_data_weight table no longer exists. This issue should be resolved in the latest dev release. Please reopen this issue if the error is still present after updating.
Comment #12
arrubiu CreditAttribution: arrubiu commentedI've upgrade to dev, but if I try to esecute drush updatedb I obtain:
drush updatedb
The following updates are pending:
weight module :
7205 - Set default weights for enabled types.
7206 - Move existing node weights to weight_weights from field_data_weight delete the unneeded weight field.
Do you wish to run all pending updates? (y/n): y
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "weight_weights" does not exist [error]
LINE 3: weight_weights w
^
Finished performing updates.
And now the view is broken
Comment #13
davisbenI just opened #1509676: Undefined table weight_weights after upgrading from 7.x-2.0-beta3 to work on this issue. It looks like the updates didn't complete running. Could you check the schema_version field for Weight in your system table and reply to the other issue?
Comment #14
1futurevj CreditAttribution: 1futurevj commentedComment #15
Pimmy CreditAttribution: Pimmy commentedI am not sure if it would help, but I get the same problem with the 'Messages' module:
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "user_8" LINE 4: WHERE (base.uid IN ('user_8')) ^: SELECT base.uid AS uid, base.name AS name, base.pass AS pass, base.mail AS mail, base.theme AS theme, base.signature AS signature, base.signature_format AS signature_format, base.created AS created, base.access AS access, base.login AS login, base.status AS status, base.timezone AS timezone, base.language AS language, base.picture AS picture, base.init AS init, base.data AS data FROM {users} base WHERE (base.uid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => user_8 ) in DrupalDefaultEntityController->load() (line 196 of /var/www/htdocs/includes/entity.inc).
Comment #16
floydwilde CreditAttribution: floydwilde commentedI get a similar error using the twitter module:
Seems to be something with Postgres data types. I've opened a bug for twitter module and supplied some links to other bugs I've found with similar messages:
https://drupal.org/node/1985708