Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have no idea why. When I try creating a field, I get this. #8

Closed
lquessenberry opened this issue Dec 13, 2017 · 4 comments
Closed

Comments

@lquessenberry
Copy link

TypeError: Argument 1 passed to Drupal\wsdata\WSDataService::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /var/www/my_project/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\wsdata\WSDataService->__construct() (line 17 of /var/www/my_project/web/modules/contrib/wsdata/src/WSDataService.php) #0 /var/www/my_project/web/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\wsdata\WSDataService->construct(Object(Drupal\webprofiler\Entity\EntityManagerWrapper)) #1 /var/www/my_project/web/core/lib/Drupal/Component/DependencyInjection/Container.php(171): Drupal\Component\DependencyInjection\Container->createService(Array, 'wsdata') #2 /var/www/my_project/web/core/lib/Drupal.php(158): Drupal\Component\DependencyInjection\Container->get('wsdata') #3 /var/www/my_project/web/modules/contrib/wsdata/modules/wsdata_field/src/Form/WSFieldConfigForm.php(92): Drupal::service('wsdata') #4 /var/www/my_project/web/core/lib/Drupal/Core/Entity/EntityForm.php(117): Drupal\wsdata_field\Form\WSFieldConfigForm->form(Array, Object(Drupal\Core\Form\FormState)) #5 /var/www/my_project/web/modules/contrib/wsdata/modules/wsdata_field/src/Form/WSFieldConfigForm.php(51): Drupal\Core\Entity\EntityForm->buildForm(Array, Object(Drupal\Core\Form\FormState)) #6 [internal function]: Drupal\wsdata_field\Form\WSFieldConfigForm->buildForm(Array, Object(Drupal\Core\Form\FormState), 'node.article.fi...') #7 /var/www/my_project/web/core/lib/Drupal/Core/Form/FormBuilder.php(514): call_user_func_array(Array, Array) #8 /var/www/my_project/web/core/lib/Drupal/Core/Form/FormBuilder.php(271): Drupal\Core\Form\FormBuilder->retrieveForm('wsfield_config...', Object(Drupal\Core\Form\FormState)) #9 /var/www/my_project/web/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm('wsfield_config...', Object(Drupal\Core\Form\FormState)) #10 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #11 /var/www/my_project/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #12 /var/www/my_project/web/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}() #13 /var/www/my_project/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #14 /var/www/my_project/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #15 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber{closure}() #16 /var/www/my_project/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #17 /var/www/my_project/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #18 /var/www/my_project/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #19 /var/www/my_project/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/my_project/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/my_project/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/my_project/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/my_project/web/modules/contrib/devel/webprofiler/src/StackMiddleware/WebprofilerMiddleware.php(38): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/my_project/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/my_project/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/my_project/web/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/my_project/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.

@lquessenberry
Copy link
Author

It has a conflict of some sort with webprofiler. I thought it similar to this:

https://www.drupal.org/project/devel/issues/2639452

I turned off web profiler and all is well. Might want to look into this issue.

morinluc0 pushed a commit that referenced this issue Dec 13, 2017
…r to use the interface class to fix the issue with webprofiler.

References #8
@morinluc0
Copy link
Collaborator

It appears that when you enable the webprofiler the class that gets used it one specific to the webprofiler.

I changed out the entity type manager class to the interface and now it appears to be working correctly.

@lquessenberry
Copy link
Author

Excellent! I hope I am being helpful.

@morinluc0
Copy link
Collaborator

Issue was fixed with the merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants