With the latest update 8.x-1.0-beta3 I got this error in the status report:

Mismatched entity and/or field definitions
Payment method

The Flow field needs to be installed.

Drupal 8.6.13
Commerce 8.x-2.12

Comments

mediapal created an issue. See original summary.

creatile’s picture

Hello Same error message for me with same module and core version

aniltiwari’s picture

Can you run drush command: drush entup . may be help to you.

creatile’s picture

Yes, thanks a lot it works #3

jsacksick’s picture

There should be an update for that, did you run drush updb? Or opened update.php in the browser?

mediapal’s picture

Yes I did run update.php "No pending update"

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new604 bytes

@mediapal: Could you tell me if the attached patch makes any difference?

  • jsacksick committed 6ef3fdb on 8.x-1.x
    Issue #3043957: Fix the update hook number.
    
jsacksick’s picture

According to the documentation:

"mymodule_update_8101(): The first update for your custom or contributed module's 8.x-1.x versions."

And "2 digits for sequential counting, starting with 01. Note that the x000 number can never be used: the lowest update number that will be recognized and run for major version x is x001."

Committed the patch from #7.

jsacksick’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

epetvir’s picture

I'm still seeing this with beta4, after running update.php.

Tried "drush entup", which reports the update, but doesn't seem to do anything for it: when I run it again, it still reports the same.

$ drush entup
The following updates are pending:

commerce_payment_method entity type :
The Flow field needs to be installed.

$ drupal updb

[WARNING] There aren't updates available

jsacksick’s picture

@epetvir: The payment method type is no longer necessary in dev, but it's still in the codebase.

Could you try updating Commerce to -dev?

finex’s picture

Hi, I'm having the same problem using -dev version: the error message is always visible even after entup/updb.

epetvir’s picture

I tried updating commerce and commerce_paypal to -dev but the field definition mismatch was still there, and I didn't manage to cure it. Ended up rolling back. I'll try upgrading again once 2.14 is out.

jsacksick’s picture

@FiNeX, @epetvir: Could you try updating to the latest dev again? I removed the flow field definition (the warning should be gone this time for good).

wispaway’s picture

@jsacksick: Had same issue after update. Google got me here. Read the thread. Updated to 1.x-dev(1ced6cd). Ran update.php.
Message changed to: The Active field needs to be updated.

Drupal 8.7.2
Commerce 8.x-2.13

jsacksick’s picture

The PayPal module doesn't define an active field, so this message is probably related to another entity type (perhaps the Subscription?) Do you use the recurring module?

wispaway’s picture

No recurring module. Installed via composer long ago. Intended to replace an old 7 with this new 8 when I get around to it. Just decided to run updates on it for good measure when I saw the error. Very little config done on the install. I've searched for a related thread but the goog hasn't yielded anything relevant.

HMS_Fa’s picture

Same here as @wispaway
Drupal 8.7.4
Commerce 8.x-2.13
Here is the Status Report

ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Payment method

The Flow field needs to be installed.
Product

The commerce_product.field_campaign_category field needs to be updated.
The commerce_product.field_campaign_featured field needs to be updated.
The commerce_product.field_campaign_goal field needs to be updated.
The commerce_product.field_campaign_images field needs to be updated.
The commerce_product.field_campaign_start field needs to be updated.
The commerce_product.field_campaign_time field needs to be updated.
The commerce_product.field_campaign_video field needs to be updated.
Profile

The Active field needs to be updated.

Screenshot: https://ibb.co/w4b0p5h

jsacksick’s picture

@HMS_Fa: The issue is fixed in dev... so it's expected that you're still encountering it.

londova’s picture

There is a error when unistall the Commerce Paypal:
-------------
The website encountered an unexpected error. Please try again later.Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydatabase.commerce_payment_method__flow' doesn't exist: UPDATE {commerce_payment_method__flow} SET deleted=:db_update_placeholder_0
WHERE bundle = :db_condition_placeholder_0; Array
(
[:db_update_placeholder_0] => 1
[:db_condition_placeholder_0] => paypal_checkout
)
..... followed by a long code...

jsacksick’s picture

Did you update to the latest dev?

londova’s picture

Sorry, I did more trials.
The first time installed the dev version with Composer and was error.
I removed the module with composer, Installed the "beta4" version, and after updated manually.
I did the job !!! Very surprised.

cameron prince’s picture

FYI, you now must install the devel_entity_updates module in order for the drush command to actually do anything.