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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dwkitchen’s picture

Status: Active » Postponed (maintainer needs more info)

Does the table exist in your DB

a.ross’s picture

Clearly 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.

a.ross’s picture

Status: Postponed (maintainer needs more info) » Active

Erm, 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.

roball’s picture

Uninstalling the module and installing a fresh 7.x-1.0-rc1 should give no problems.

a.ross’s picture

I 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.

roball’s picture

What 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.

a.ross’s picture

commerce_vat_number

roball’s picture

FileSize
5.96 KB

I am wondering why your machine field name does not start with field_ as this is hardcoded when you add a new field (see screenshot).

a.ross’s picture

no it's not. That only applies to fields added via field_ui.

tim-diels’s picture

Issue summary: View changes
Status: Active » Closed (outdated)