我正在尝试将一个Drupal8项目推向生产环境,但我遇到了下面所述的错误。
The website encountered an unexpected error. Please try again later.
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The service file "core/core.services.yml" is not valid. in Drupal\Core\DependencyInjection\YamlFileLoader->loadFile() (line 329 of /usr/www/users/playsgwjrd/web/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php).我试着运行build.php,删除了锁编写器文件和供应商文件夹,但没有结果。
Drupal\Core\DependencyInjection\YamlFileLoader->loadFile('core/core.services.yml') (Line: 63)
Drupal\Core\DependencyInjection\YamlFileLoader->load('core/core.services.yml') (Line: 1316)
Drupal\Core\DrupalKernel->compileContainer() (Line: 920)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 476)
Drupal\Core\DrupalKernel->boot() (Line: 692)
Drupal\Core\DrupalKernel->handle(Object) (Line: 23)请建议修复这个错误的方法。
发布于 2019-12-10 22:30:57
请检查以下URL中的解决方案是否有帮助。您将需要应用修补程序:
https://stackoverflow.com/questions/58164151
复制相似问题