我在 14.04 服务器上安装了 cURL,但这种情况仍然发生... Drupal 安装非常顺利(没有错误),但现在每当我尝试单击管理面板中的配置链接时,它都会转到此页面。任何见解都将不胜感激。
RuntimeException: Guzzle requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler. in GuzzleHttp\Client::getDefaultHandler() (line 125 of core/vendor/guzzlehttp/guzzle/src/Client.php).
GuzzleHttp\Client->__construct(Array)
Drupal\Core\Http\Client->__construct()
Drupal\Core\DependencyInjection\Container\prod\service_container_prod->getHttpClientService()
Symfony\Component\DependencyInjection\Container->get('http_client')
Drupal\Core\DependencyInjection\Container\prod\service_container_prod->getUpdate_FetcherService()
Symfony\Component\DependencyInjection\Container->get('update.fetcher')
Drupal\Core\DependencyInjection\Container\prod\service_container_prod->getUpdate_ProcessorService()
Symfony\Component\DependencyInjection\Container->get('update.processor')
Drupal\Core\DependencyInjection\Container\prod\service_container_prod->getUpdate_ManagerService()
Symfony\Component\DependencyInjection\Container->get('update.manager')
Drupal::service('update.manager')
update_get_available()
update_requirements('runtime')
update_page_top(Array)
Drupal\Core\Render\MainContent\HtmlRenderer->buildPageTopAndBottom(Array)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)
Stack\StackedHttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)
The website has encountered an error. Please try again later.
答案1
事实证明这sudo apt-get install php-guzzle
解决了这个问题。只是为其他人发帖。