TransWikia.com

Drupal payment method getting access denied for admin

Stack Overflow Asked by Vijayanand Premnath on December 27, 2021

In our company we have a payment gateway and I am doing an integration but after doing it when I do checkout I get the below error as

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

InvalidArgumentException: Class "DrupalcommerceworldlinesrcPluginFormWorldlineCheckoutForm" does not exist. in DrupalCoreDependencyInjectionClassResolver->getInstanceFromDefinition() (line 24 of core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).
DrupalCorePluginPluginFormFactory->createInstance(Object, 'offsite-payment') (Line: 103)
Drupalcommerce_paymentPluginCommerceInlineFormPaymentGatewayForm->buildInlineForm(Array, Object) (Line: 218)
Drupalcommerce_paymentPluginCommerceCheckoutPanePaymentProcess->buildPaneForm(Array, Object, Array) (Line: 559)
Drupalcommerce_checkoutPluginCommerceCheckoutFlowCheckoutFlowWithPanesBase->buildForm(Array, Object, 'payment')
call_user_func_array(Array, Array) (Line: 521)
DrupalCoreFormFormBuilder->retrieveForm('commerce_checkout_flow_multistep_default', Object) (Line: 278)
DrupalCoreFormFormBuilder->buildForm(Object, Object) (Line: 219)
DrupalCoreFormFormBuilder->getForm(Object, 'payment') (Line: 94)
Drupalcommerce_checkoutControllerCheckoutController->formPage(Object)
call_user_func_array(Array, Array) (Line: 123)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 573)
DrupalCoreRenderRenderer->executeInRenderContext(Object, Object) (Line: 124)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
DrupalCoreEventSubscriberEarlyRenderingControllerWrapperSubscriber->DrupalCoreEventSubscriber{closure}() (Line: 151)
SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 68)
SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57)
DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupalpage_cacheStackMiddlewarePageCache->pass(Object, 1, 1) (Line: 85)
Drupalpage_cacheStackMiddlewarePageCache->handle(Object, 1, 1) (Line: 47)
DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
StackStackedHttpKernel->handle(Object, 1, 1) (Line: 708)
DrupalCoreDrupalKernel->handle(Object) (Line: 19)

But In actual I have the WorldlineCheckoutForm class same way when I go for Payment method module I get access denied but I am logedin as admin which has all rights. I tried to check support but could not succeed. I am able to access all pages except this particular module.

One Answer

Try the following things:

  1. Delete the module completely and install it on Fresh Drupal installation.
  2. In your existing installation, clear the cache by using cli or page (whatever you can access) and then try to access payment page again. (3) Also open that page of your existing installation in Incognito mode so that it cannot get anything from cache

Hope these steps help, otherwise upload it elsewhere and share the link.

Answered by Eshban on December 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP