I updated to the latest -dev from 7.x-beta1 and ran the 7001 update. When I went to the field configuration form I checked the "Soft validation" option. I got a PDO exception upon saving the form and now I keep getting it on the field settings form.
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.field_data_commerce_vat_number' doesn't exist: SELECT COUNT(*) AS expression FROM (SELECT 1 AS expression FROM {field_data_commerce_vat_number} field_data_commerce_vat_number0 WHERE (field_data_commerce_vat_number0.deleted = :db_condition_placeholder_0) LIMIT 1 OFFSET 0) subquery; Array ( [:db_condition_placeholder_0] => 0 ) in field_sql_storage_field_storage_query() (line 582 of modules/field/modules/field_sql_storage/field_sql_storage.module).
Comment | File | Size | Author |
---|---|---|---|
#8 | Add new field.png | 5.96 KB | roball |
#6 | customer-profile_-_billing_-_fields.png | 39.06 KB | roball |
Comments
Comment #1
dwkitchen CreditAttribution: dwkitchen commentedDoes the table exist in your DB
Comment #2
a.ross CreditAttribution: a.ross commentedClearly it doesn't. I think you should be able to reproduce this by installing beta1 and then updating to the Dev. I was also using VAT reverse charge not sure if it's reproducible without it though.
Comment #3
a.ross CreditAttribution: a.ross commentedErm, you released a new version (rc) without resolving this. Have you tried to actually reproduce this issue, and if so, did you figure out a way to fix it?
The
vat_number_update_7001()
function does not work properly.Comment #4
roball CreditAttribution: roball commentedUninstalling the module and installing a fresh 7.x-1.0-rc1 should give no problems.
Comment #5
a.ross CreditAttribution: a.ross commentedI tried that and it didn't work. That may however be due to the commerce_vat module, I haven't tested without AFAIR.
Anyway, it's not really a solution at all because this issue is in fact about the migration path being broken.
Comment #6
roball CreditAttribution: roball commentedWhat is the machine name of your VAT Number type field in your Billing information profile type (or in the profile type you are using the VAT Number field)?
As shown in the attached screenshot, mine is called
field_vat_id
.Comment #7
a.ross CreditAttribution: a.ross commentedcommerce_vat_number
Comment #8
roball CreditAttribution: roball commentedI am wondering why your machine field name does not start with
field_
as this is hardcoded when you add a new field (see screenshot).Comment #9
a.ross CreditAttribution: a.ross commentedno it's not. That only applies to fields added via field_ui.
Comment #10
tim-diels