Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm receiving the following error during installation on Drupal 8.2.
Warning: require(/code/modules/geofield/src/Plugin/GeofieldBackendManager.php): failed to open stream: No such file or directory in Symfony\Component\ClassLoader\ApcClassLoader->loadClass() (line 110 of /code/vendor/symfony/class-loader/ApcClassLoader.php)
#0 /code/core/includes/bootstrap.inc(548): _drupal_error_handler_real(2, 'require(/srv/bi...', '/srv/bindings/a...', 110, Array)
#1 /code/vendor/symfony/class-loader/ApcClassLoader.php(110): _drupal_error_handler(2, 'require(/srv/bi...', '/srv/bindings/a...', 110, Array)
#2 /code/vendor/symfony/class-loader/ApcClassLoader.php(110): Symfony\Component\ClassLoader\ApcClassLoader->loadClass()
#3 [internal function]: Symfony\Component\ClassLoader\ApcClassLoader->loadClass('Drupal\\geofield...')
#4 [internal function]: spl_autoload_call('Drupal\\geofield...')
#5 /code/core/lib/Drupal/Core/Plugin/PluginManagerPass.php(21): is_subclass_of('Drupal\\geofield...', '\\Drupal\\Compone...')
#6 /code/vendor/symfony/dependency-injection/Compiler/Compiler.php(104): Drupal\Core\Plugin\PluginManagerPass->process(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
#7 /code/vendor/symfony/dependency-injection/ContainerBuilder.php(590): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Drupal\Core\DependencyInjection\ContainerBuilder))
#8 /code/core/lib/Drupal/Core/DrupalKernel.php(1254): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#9 /code/core/lib/Drupal/Core/DrupalKernel.php(866): Drupal\Core\DrupalKernel->compileContainer()
#10 /code/core/lib/Drupal/Core/DrupalKernel.php(790): Drupal\Core\DrupalKernel->initializeContainer()
#11 /code/core/lib/Drupal/Core/Extension/ModuleInstaller.php(540): Drupal\Core\DrupalKernel->updateModules(Array, Array)
#12 /code/core/lib/Drupal/Core/Extension/ModuleInstaller.php(191): Drupal\Core\Extension\ModuleInstaller->updateKernel(Array)
#13 /code/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#14 /code/core/modules/system/src/Form/ModulesListForm.php(450): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array)
#15 [internal function]: Drupal\system\Form\ModulesListForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#16 /code/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array)
#17 /code/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#18 /code/core/lib/Drupal/Core/Form/FormBuilder.php(583): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#19 /code/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object(Drupal\Core\Form\FormState))
#20 /code/core/lib/Drupal/Core/Controller/FormController.php(74): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesListForm), Object(Drupal\Core\Form\FormState))
#21 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#22 /code/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #23 /code/core/lib/Drupal/Core/Render/Renderer.php(574): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#24 /code/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#25 /code/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#26 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#27 /code/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Object(Closure), Array)
#28 /code/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#29 /code/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /code/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /code/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /code/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /code/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /code/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /code/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}.
Comments
Comment #2
caldenjacobs CreditAttribution: caldenjacobs commentedComment #3
dremy CreditAttribution: dremy commentedHi @caldenjacobs, can you share how you solved? I am seeing the exact same issue.
Comment #4
caldenjacobs CreditAttribution: caldenjacobs commentedHi @dremy — I ended up uninstalling the module, running cache rebuild (using Drush), and then reinstalling the module & dependencies (using Composer). Everything's working for me with no errors on multiple installs, now.
Comment #5
dremy CreditAttribution: dremy commentedya interesting. I had to do the same thing. I got it working though. For me, it was working locally but not on Pantheon dev site. Turns out that even though I had removed the .git directory, somewhere deep in the bowels of git it still had it removed. So had to go back and cleanup some git stuff so it'd actually push to the server. Crazy.
Comment #6
caldenjacobs CreditAttribution: caldenjacobs commented