Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装simple_oauth模块失败后出现Drupal 8错误_Drupal_Drupal 8_Ddev - Fatal编程技术网

安装simple_oauth模块失败后出现Drupal 8错误

安装simple_oauth模块失败后出现Drupal 8错误,drupal,drupal-8,ddev,Drupal,Drupal 8,Ddev,我试图安装一个模块,它有一个致命的错误。我现在无法访问该网站。该模块称为simple_oauth。Drush不会工作,因为我没有建立数据库,至少我认为我没有。我使用ddev设置我的环境——将php.ini更改为更高的内存限制。 使用php--ini查找位置,确保它是否有另一个文件,memory_allocation_php.ini或类似文件,也可以编辑该文件 将内存限制更改为1028M或-1(无限)。是否通过composer使用模块的安装过程composer配置存储库.drupal compos

我试图安装一个模块,它有一个致命的错误。我现在无法访问该网站。该模块称为simple_oauth。Drush不会工作,因为我没有建立数据库,至少我认为我没有。我使用ddev设置我的环境

——将php.ini更改为更高的内存限制。 使用php--ini查找位置,确保它是否有另一个文件,memory_allocation_php.ini或类似文件,也可以编辑该文件
将内存限制更改为1028M或-1(无限)。

是否通过composer使用模块的安装过程<代码>composer配置存储库.drupal composerhttps://packages.drupal.org/8 &&composer需要drupal/simple_oauth:^3是,由于内存问题,我每次都会超时。致命错误:允许的内存大小为1610612736字节(已尝试分配4096字节)在里面phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Rule2Literals.php 在第53行,您可能应该首先使用drush禁用模块。你给这个贴上了“ddev”标签。在ddev上执行
ddev composer require
,是否内存不足?如果是这样,如果在macOS或Windows上使用Hyper-V,请增加分配给docker的内存。谢谢@rfay和@sharkalau的帮助
The website encountered an unexpected error. Please try again later.
Error: Class 'Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap' not found in Drupal\Component\DependencyInjection\Container->createService() (line 259 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\Component\DependencyInjection\Container->createService(Array, 'simple_oauth.http_middleware.basic_auth_swap') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('simple_oauth.http_middleware.basic_auth_swap', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'http_middleware.session') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('http_middleware.session', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'http_middleware.kernel_pre_handle') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('http_middleware.kernel_pre_handle', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'http_middleware.page_cache') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('http_middleware.page_cache', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'http_middleware.reverse_proxy') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('http_middleware.reverse_proxy', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'http_middleware.negotiation') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('http_middleware.negotiation', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'http_kernel') (Line: 173)
Drupal\Component\DependencyInjection\Container->get('http_kernel') (Line: 1401)
Drupal\Core\DrupalKernel->getHttpKernel() (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)