Hi, I've recently moved from local MAMP server to live site. There were some minor problems, but I've fixed them all, except for the one I'm having with conditional views. Below is the error - can you help me fix it, please?
error:
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Component\Plugin\Exception\PluginException</em>: Plugin (views_conditional_field) instance class "Drupal\views_conditional\Plugin\views\field\ViewsConditionalField 2" does not exist. in <em class="placeholder">Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass()</em> (line <em class="placeholder">97</em> of <em class="placeholder">ore/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php</em>). <pre class="backtrace">Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('views_conditional_field', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('views_conditional_field', Array) (Line: 121)
Drupal\views\Plugin\ViewsHandlerManager->createInstance('views_conditional_field', Array) (Line: 106)
Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL) (Line: 889)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('field') (Line: 1040)
Drupal\views\ViewExecutable->_initHandler('field', Array) (Line: 898)
Drupal\views\ViewExecutable->initHandlers() (Line: 2267)
Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1692)
Drupal\views\ViewExecutable->preExecute(Array) (Line: 1627)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 77)
Drupal\views\Element\View::preRenderViewElement(Array)
call_user_func(Array, Array) (Line: 378)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
bona2001 commentedComment #3
avpadernoComment #4
bona2001 commentedanyone, please? I'm not a dev or even a webdesigner so I'm not going to figure it out on my own :(
I googled a similar problem with a different module and they mentioned namespaces but I have no idea what that is or how to fix it. Is that the problem? what should I do?
Comment #5
shelaneI have not been able to reproduce this error. Can you please provide some steps to reproduce and screen shots if possible?
Comment #6
shelaneReopen this issue when you can provide steps to reproduce.