Från D6 till D7: PDOException: SQLSTATE[HY000]: General error

Patrick Danielsson's picture

Jag är mitt uppe i att uppgradera våran site till D7, men jag stöter på problem, och jag kan inte alls förstå vad problemet är, förutom att det möjligen är att det är konstiga tecken som installationen inte klarar av...?

Jag har tömt cachen, avaktiverat alla moduler, rensat databsen från rader som inte används, uppgraderat D6 till den absolut senaste, allt som man bör göra innan en installation. Jag söker runt på internet, men hittar ingen riktig bra lösning på detta. Sidan och MySQL ligger på Windows server om det har någon betydelse.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://hemsida.net/update.php?op=selection&token=5s6IK613jjAMgTEMEIOVPy0... StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xF0\x9F\x91\x8D C...' for column 'variables' at row 1: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) 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, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => update [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:14654:"SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xF0\x9F\x91\x8D C...' for column 'body_value' at row 1: INSERT INTO {field_data_body} (entity_type, entity_id, revision_id, bundle, delta, language, body_value, body_format) 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, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 34785 [:db_insert_placeholder_2] => 34784 [:db_insert_placeholder_3] => newsletter [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => sv [:db_insert_placeholder_6] => <p> Hej hej, Mvh<br /> Jeanette</p> [:db_insert_placeholder_7] => 2 ) ";s:9:"%function";s:38:"_update_7000_field_sql_storage_write()";s:5:"%file";s:121:"C:\inetpub\wwwroot\dev\public_html\modules\field\modules\field_sql_storage\field_sql_storage.install";s:5:"%line";i:79;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://hemsida.net/update.php?op=selection&token=5s6IK613jjAMgTEMEIOVPy0... [:db_insert_placeholder_7] => http://hemsida.net/update.php?op=selection&token=5s6IK613jjAMgTEMEIOVPy0... [:db_insert_placeholder_8] => 83.233.236.181 [:db_insert_placeholder_9] => 1382554575 ) in dblog_watchdog() (line 160 of C:\inetpub\wwwroot\dev\public_html\modules\dblog\dblog.module).

Comments

Jag har löst detta. Innan jag

Patrick Danielsson's picture

Jag har löst detta.

Innan jag uppgraderade databasen, så gick jag in i den via phpmyadmin, och letade upp node_revisions, därefter sökte jag upp kolumnen body och ändrade den till longtext (istället för blob).

Sweden

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week