Site Crashed When Enabling it

Created on 28 March 2024, 9 months ago

Problem/Motivation

I installed this module fine, but when I enabled it, the site crashed. The error message is:

In CheckExceptionOnInvalidReferenceBehaviorPass.php line 119:
The service "commerce_funds.fees_manager" has a dependency on a non-existen
t service "commerce_exchanger.manager".

I tried to uninstall it with Drush, failed, with the error message above. Now my site is crushed. Appreciate advice to get it back up running.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

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

Merge Requests

Comments & Activities

  • Issue created by @sdsc
  • I installed commerce_exchanger afterwards. Since the site is crashed, I installed commerce_exchanger. Since the site is crashed, I cannot enable it in UI. When using Drush to enable it, failed, with the same error message above.

  • 🇬🇧United Kingdom aaron.ferris

    Seems this module is missing the dependency for commerce_exchanger

  • Merge request !10Resolve #3436791 "Site crashed when" → (Closed) created by aaron.ferris
  • Status changed to Needs review 9 months ago
  • Pipeline finished with Canceled
    9 months ago
    Total: 222s
    #131773
  • Pipeline finished with Success
    9 months ago
    Total: 304s
    #131776
  • I had to update my database using yesterday's backup file. Now the site is back up. I enabled commerce_exchanger from UI, then I uninstall commerce_fund (it was installed earlier although the site was crashed), with errors:

    RuntimeException: Recursive router rebuild detected. in Drupal\Core\Routing\RouteBuilder->rebuild() (line 121 of /chroot/home/my_server_address/html/core/lib/Drupal/Core/Routing/RouteBuilder.php)

    I then reenable it, errors as below:

    Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'aab0448d_jh816_new.commerce_payment_method__balance_id' doesn't exist: UPDATE "commerce_payment_method__balance_id" SET "deleted"=:db_update_placeholder_0 WHERE "bundle" = :db_condition_placeholder_0; Array ( [:db_update_placeholder_0] => 1 [:db_condition_placeholder_0] => funds_wallet ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->onFieldDefinitionDelete() (line 1622 of /chroot/home/my_server_address/html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

    The module shows as enabled. I'm able to access configuration page. Not sure whether these errors will explode my site. Do I need to do anything to make it correct?

    Regards,

  • 🇭🇷Croatia Aporie

    Hi Guys,

    Sorry, I might have rushed the migration to commerce exchanger V2.

    This passed the tests because they are using dev modules (such as commerce_exchanger).

    @aaron.ferris, the right action to take here is actually to keep this module as optional.
    @sdsc, you should be able to get a working website with your backup, only updating your module to the last release and clearing the cache.

  • 🇬🇧United Kingdom aaron.ferris

    Hello @Aporie

    With your latest commits yes, that makes sense.

Production build 0.71.5 2024