WSOD crash on sites that makes use of Layout builder

Created on 15 November 2022, over 1 year ago
Updated 3 January 2024, 6 months ago

This is a followup of #3275716: Uninstalling this module deletes CC tables used by other GWs. β†’

Recap: 3275716 fixes this
Uninstalling commerce_paypal also delete those commerce_payment generated tables

commerce_payment_method__card_exp_month
commerce_payment_method__card_exp_year
commerce_payment_method__card_number
commerce_payment_method__card_type



Commerce PayPal extends Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType\CreditCard.
CreditCard is where those tables get populated.
This will also trigger those tables deletion upon uninstalling commerce paypal.

(v1.2 was reverted, so this is a followup of #3275716: Uninstalling this module deletes CC tables used by other GWs. β†’ )

Why?

Because when uninstalling the module after 3275716, commerce_payment tables remains BUT some values are leftover in the key_value table.

Serialized leftovers when uninstalling

s:15:"paypal_checkout";s:15:"paypal_checkout";
Query to retrieve this value:
SELECT * FROM `key_value` where collection = 'entity.definitions.bundle_field_map' AND name = 'commerce_payment_method';

Proposed resolution

Not sure,
Some upgrade to cleanup this ?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs work

Version

1.0

Component

PayPal Checkout

Created by

πŸ‡¨πŸ‡¦Canada simgui8 Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ͺπŸ‡ΈSpain idiaz.roncero Madrid

    For allowing to uninstall commerce_paypal without causing a WSOD on layout builder, I confirm #8 works (alongside the related Entity module patch)

    It no longer applies to 1.x-dev or ^1.2, so any dev interested on this patch should require commerce_paypal:1.2.

  • πŸ‡ΊπŸ‡ΈUnited States Tankeroo

    Hi! Just new here as I recently experienced the "Deleting CC tables" issue and rabbit trails here.

    There isn't Entity 1.5 as of this writing, only Entity 8.x-1.4. Am I misunderstanding something?

    Thanks!

  • πŸ‡¨πŸ‡¦Canada liquidcms

    So the options at the moment are:
    - patch commerce (#8 doesn't apply to commerce 1.37)
    - patch entity

    OR, i guess simply leave Commerce PayPal enabled.

Production build 0.69.0 2024