网站遇到意外错误。请稍后重试。-- Drupal 从 8.9 升级到 9.3.5

发布于 2025-01-09 19:42:07 字数 512 浏览 1 评论 0原文

我正在将我的 drupal 项目从 8.9 升级到 9.3.5,但升级后在访问网站时出现一个错误,即

网站遇到意外错误。请稍后重试。

我按照 drupal 站点中提到的步骤将 drupal 从 8 升级到 9 或(稍后)单击此处了解步骤,但对我不起作用。

有人可以帮助我或提供将 drupal 从 8.9 升级到 9.3.5 的正确步骤吗?

单击此处查看错误图像

I am upgrading my drupal project from 8.9 to 9.3.5 but after the upgrade while hitting website one error occur i.e

The website encountered an unexpected error. Please try again later.

I followed the steps mentioned in the drupal site for upgrading drupal from 8 to 9 or (later) click here for steps but didn't work for me.

Will anyone please help me or provide proper steps to upgrade drupal from 8.9 to 9.3.5?

Click here to see error image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

口干舌燥 2025-01-16 19:42:07

您应该尝试获取有关该错误的更多信息。

添加到您的settings.php 文件:

$config['system.logging']['error_level'] = 'verbose';

并再次检查屏幕上的输出。

您也可以尝试 drush 查看从终端选择选项错误。

drush watchdog:list

You should try to get more information about the error.

Add to your settings.php file:

$config['system.logging']['error_level'] = 'verbose';

and check the output on your screen again.

You may also try drush to take a look at selecting the option errors from the terminal.

drush watchdog:list
暖风昔人 2025-01-16 19:42:07

我多次遇到同样的问题。如果您还没有这样做,请尝试多次访问 /update.php。 (它似乎清除了更新过程中的垃圾/剩余物并让它正常工作。)

除此之外,它总是某种文件问题。 (由于我的服务器设置,我仍然手动更新。)有时是文件夹/子文件夹未完全上传,有时是某些模块只是拒绝使用新的升级,直到更新为止。

I've run into this same issue multiple times. If you haven't already done so, try going to /update.php multiple times. (It seems to clear out the update process junk/leftovers and let it work.)

Other than that, it's always some kind of file issue. (I still update manually due to my server setup.) Sometimes it was a folder/sub folder that didn't upload fully or other times it was that some module simply refused to work with the new upgrade until that was updated.

秋千易 2025-01-16 19:42:07

尝试清除缓存,它对我有用。
在 Drupal 的根目录中运行命令
Drush 缓存:重建

Try to clear the cache, it worked for me.
In the root of the Drupal run the command
drush cache: rebuild

ぇ气 2025-01-16 19:42:07

您已关闭数据库。 请打开


示例:**在 Xampp 中启动 MySQL
**

You have turned off the database. Please turn it on


Example: **Start MySQL in Xampp
**

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文