ado*_*eye 1 drupal drupal-8 drupal-modules
“网站遇到意外错误。请稍后再试。” 当我去清除 D8 中的缓存时,没有进一步的细节。我之前在另一个 drupal 站点上遇到过类似的问题,根据我的经验,“意外错误”似乎是 Drupal 给出的一般错误消息,而可能会有更详细的消息。
因此,为了进一步调查我$config['system.logging']['error_level'] = 'verbose';在 settings.php 中启用日志记录的问题 。
刷新网站后产生以下内容:
The website encountered an unexpected error. Please try again later.</br></br><em class="placeholder">Drupal\Core\Extension\InfoParserException</em>: Missing required keys (core) in modules/contrib/redirect/modules/redirect_404/redirect_404.info.yml in <em class="placeholder">Drupal\Core\Extension InfoParserDynamic->parse()</em> (line <em class="placeholder">29</em> of <em class="placeholder">core/lib/Drupal/Core/Extension/InfoParserDynamic.php</em>). <pre class="backtrace">Drupal\Core\Extension\InfoParser->parse('modules/contrib/redirect/modules/redirect_404/redirect_404.info.yml') (Line: 552)
我知道有时会在不清除 Drupal 缓存时出现问题。因此,由于 UI 不可用,我尝试通过截断缓存表来通过数据库刷新所有缓存。还运行了 composer install; 作曲家更新但无济于事。
我将不胜感激有关如何解决手头问题的任何解决方案。
谢谢
小智 8
我也看到了这个错误,虽然在 Drupal 8.7.6 上,在更新重定向模块(及其子模块)之后。我通过添加core: 8.x到每个模块的 .info.yml 文件来修复它,正如管理工具栏模块的类似问题中所建议的那样。
然后我将 Drupal 核心更新到 8.1.1 版,此时我不得不删除该行The 'core_version_requirement' constraint (^8.7.7 || ^9) requires the 'core' key not be set——因此这可能是一个临时措施。
(顺便说一句,您提到通过 UI 和数据库清除缓存,但您也可以使用 Drush 清除缓存:https ://drushcommands.com/drush-8x/cache/cache-rebuild/ )
| 归档时间: |
|
| 查看次数: |
3248 次 |
| 最近记录: |