Unexpected error in the dashboard

Created on 26 May 2023, about 1 year ago
Updated 10 June 2023, about 1 year ago

in /admin/commerce/config/licenses/dashboard

The website encountered an unexpected error. Please try again later.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @dalra
  • πŸ‡ΊπŸ‡ΈUnited States TomTech

    Hi @dalra!

    Thanks for the report.

    Can you confirm if you were using rc1 or rc2?

    rc2 addressed some issues on the new dashboard.

    If your issue was with rc2, can you provide more detailed error log messages so we can troubleshoot?

  • Yes, it is 3.0.0-rc2

    [error] 1898#1898: *80 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "billing_information" plugin does not exist. Valid plugin IDs for Drupal\commerce_checkout\CheckoutPaneManager are: contact_information, completion_message, login, order_summary, completion_register, review, payment_process, payment_information, coupon_redemption" at /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53" while reading response header from upstream, client: 172.18.0.6, server: , request: "GET /admin/commerce/config/licenses/dashboard HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "my.ddev.site", referrer: "http://my.ddev.site/admin/commerce/config"

  • Still getting this error in rc4

  • πŸ‡ΊπŸ‡ΈUnited States 1959mvp

    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "billing_information" plugin does not exist. Valid plugin IDs for Drupal\commerce_checkout\CheckoutPaneManager are: commerce_admin_checkout_order_items, commerce_admin_checkout_order_assign, contact_information, order_summary, completion_message, completion_register, login, review, commerce_file_download, payment_process, payment_information, coupon_redemption, shipping_information, coupons, email_registration_login, email_registration_completion_registration in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

    Version: 8.x-2.0-rc2

    Drupal 9.5.9

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

    Hi @dalra and @1959mvp.

    Thanks again for the report.

    Two things:
    1. It's not clear why you would get an exception about the billing_information plugin. That plugin is part of commerce_checkout, which is part of commerce_core, and is required by commerce_license. We don't reference it directly in the dashboard at all. If you have another contrib module, or custom code that manipulates the checkout module plugin, can you advise?

    2. We've made several enhancements to the dashboard in rc5. While I'm not expecting it to address the issue you are encountering directly, it does:
    A. ensure the dashboard still renders, even if an exception is encountered.
    B. handle a couple more edge cases. (e.g. if the checkout workflow was not explicitly set on an order type.)
    C. report the error message and stack trace if an exception is encountered.

    If you still encounter this issue, can you please provide the stack trace that is printed out, so that it can be further investigated?

    Thanks!

  • Hi @tomtech!
    I don't have any custom code.

    In rc5, from the dashboard:

    Checkout flow
    Exception during analysis.

    Error: The "billing_information" plugin does not exist. Valid plugin IDs for Drupal\commerce_checkout\CheckoutPaneManager are: contact_information, completion_message, login, order_summary, completion_register, review, payment_process, payment_information, coupon_redemption

    Trace: #0 /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(25): Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition(Array, 'billing_informa...', true) #1 /var/www/html/web/modules/contrib/commerce/modules/checkout/src/CheckoutPaneManager.php(52): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('billing_informa...') #2 /var/www/html/web/modules/contrib/commerce_license/src/Form/LicenseDashboardForm.php(139): Drupal\commerce_checkout\CheckoutPaneManager->createInstance('billing_informa...', Array, Object(Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow\MultistepDefault)) #3 /var/www/html/web/modules/contrib/commerce_license/src/Form/LicenseDashboardForm.php(107): Drupal\commerce_license\Form\LicenseDashboardForm->analyzeCheckoutFlows() #4 [internal function]: Drupal\commerce_license\Form\LicenseDashboardForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #5 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array(Array, Array) #6 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(283): Drupal\Core\Form\FormBuilder->retrieveForm('commerce_licens...', Object(Drupal\Core\Form\FormState)) #7 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\commerce_license\Form\LicenseDashboardForm), Object(Drupal\Core\Form\FormState)) #8 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #9 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #10 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #11 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #12 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #13 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #14 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(74): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #15 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #18 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(686): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #24 {main}

  • No custom code.
    The list of modules that are enabled:

    Commerce
    Commerce Cart
    Commerce Checkout
    Commerce Log
    Commerce Number Pattern
    Commerce Order
    Commerce Payment
    Commerce Payment Example
    Commerce Price
    Commerce Product
    Commerce Promotion
    Commerce Store
    Commerce Tax

    Commerce (contrib)

    Commerce Email
    Commerce License

    • TomTech β†’ authored a2376d57 on 3.0.x
      Issue #3363060 by dalra, TomTech, 1959mvp: Unexpected error in the...
    • TomTech β†’ authored 6cad1b0e on 8.x-2.x
      Issue #3363060 by dalra, TomTech, 1959mvp: Unexpected error in the...
  • Assigned to TomTech
  • Status changed to Fixed about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States TomTech

    Thanks @dalra, for providing the stack trace message.

    The issue has been identified and an rc6 has been tagged to address it.

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

Production build 0.69.0 2024