Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.7
Component:
Payment
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2016 at 03:04 UTC
Updated:
9 Jan 2024 at 09:33 UTC
Jump to comment: Most recent
Comments
Comment #2
1kenthomas commentedComment #3
bojanz commentedLet's track both uninstall issues here. Marked #2790413: commerce_remote_id field on users blocks uninstall as a duplicate.
We have an Uninstall test that is passing, it's obviously missing something.
1kenthomas, you appear to be using Drupal without error reporting enabled? Would help to know the actual messages behind those WSoDs.
Comment #4
1kenthomas commentedInstalling from scratch: Drupal 8.1.8, followed by commerce-dev via Composer, enabling Commerce and dependencies, then enabling Commerce Payment, then attempting to disable Commerce Payment:
WSODs @/admin/modules/uninstall/confirm with the following in PHP log:
(Creating the table etc does not seem to resolve-- creates another loop of errors).
Note the country and timezone are AFAICT the only unique aspects fo the site at this point.
Comment #5
1kenthomas commentedInstalling everything via Composer (new site), Commerce Payment is the only Commerce module not installed. Install. Attempt uninstall via GUI, appears to be same result:
(Also setting Australia, Australia/Melbourne as country and timezone FWIW, I can try default if you think it might affect, else I may try this again on another server to make sure anything environmental is unlikely. Thanks).
Comment #6
1kenthomas commentedThe problem appears to be that the table 'paypal_mail' is not created. (commerce_payment_method__paypal_mail).
If I change the definition function as follows:
The table is created; however on uninstall we still have a fail:
Comment #8
bojanz commentedPushed a commit:
1) Fixed the base table error. We were deleting the storage before deleting the field, instead of the other way around.
2) Added Payment and Checkout to the Uninstall tests. Still passing (but only with the previous fix).
3) Updated the Uninstall tests to account for the new uninstall process: The Commerce base module can't be uninstalled together with the other modules anymore, because it now provides a field type. This is a known Drupal limitation. Instead, the flow is:
- Uninstall all other Commerce modules
- Run cron to delete the field in question
- Uninstall the Commerce base module.
Opened #2791303: Document uninstalling Commerce to document #3.
Comment #10
krupa commentedI am having same error - [07-Jun-2018 10:59:22 Australia/Darwin] Uncaught PHP Exception Drupal\Core\Database\DatabaseExceptionWrapper: "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'commerce_payment_method__paypal_mail' doesn't exist: UPDATE {commerce_payment_method__paypal_mail} SET deleted=:db_update_placeholder_0
WHERE bundle = :db_condition_placeholder_0; Array
(
[:db_update_placeholder_0] => 1
[:db_condition_placeholder_0] => paypal
)
" at /core/lib/Drupal/Core/Database/Connection.php line 686
How do I resolve it? Thank you.
Comment #11
joe huggans@krupa - did you find a solution? I am unable to uninstall commerce
Comment #12
vselivanovHave the same problem with uninstall commerce payment. The table can be 'commerce_payment_method__paypal_mail' or 'commerce_payment_method__card_type'.
Has anyone solved this problem?
Comment #13
vselivanovThe problem with uninstall commerce_payment. My steps to fix:
1. Check Status report /admin/reports/status
In my case I had an error “Mismatched entity and/or field definitions”.
I suppose this happen because of other commerce modules uninstall. Most likely commerce_braintree.
2. To fix it you have to install devel_entity_updates module and
update entity with
drush entupcommand.3. After that you can continue to uninstall Commerce with this order:
- commerce_payment
- commerce_order
- profile & commerce_number_pattern
- commerce_store
- commerce_price
- commerce
If you’ll see an error with “Fields pending deletion” - create update with
DELETE FROM key_value WHERE name = 'field.field.deleted' OR name = 'field.storage.deleted'Comment #14
nofue commentedStill an unresolved issue?
It's quite a pain to get stuck by such a minor issue … Here's the output:
drush pmu commerce_payment -ry
As one is forced to uninstall PayPal BEFORE Payment, it's quite clear (to me :)) that the paypal* tables won't exist when Payment has to be uninstalled. Appears like a CATCH 22 to me.
Comment #15
gweigert commentedProcedure from #13 worked for me! It was the only way to move forward and get commerce uninstalled. Thanks vselivanov.
Comment #16
carlbowles100 commentedFor me, the solution was:
Comment #17
pastamp commentedand will finaly throw
Comment #18
trickfun commentedI have same error.
Workaround is fine but is there the possibility to fix the uninstall process?
Is a paypal module problem or a payment module one?
Thank you in advance
Comment #19
arlingtonvoicellc commentedThis issue is still unresolved. Solution #13 does not work.
Comment #20
afagioliFix: https://www.drupal.org/project/commerce/issues/2790413#comment-14880414