Drupal:使用 Drush 更新不会更改更新状态
我已经更新了我的 drupal 安装和 drupal 模块,但 admin/reports/updates 说 Drupal 版本仍然是 6.12。 为了更新 drupal 我跑了 - 刷新更新代码 - drush updateb (这仅更新了模块,并且所述代码仍然需要手动更新)。 然后我上传核心,解压缩它,允许覆盖旧版本并再次运行 - drush 更新 启用更改。 尽管如此,admin/reports/status 显示的不是预期的 6.13 版本,而是 6.12,并表示核心不安全。我什至最后运行了 update.php 脚本,但核心仍然显示为红色以及位于 管理/报告/更新。
使用 drupal shell (drush) 是更新的好习惯吗?为什么状态仍然显示为未更新?
I've updated my drupal installation and drupal modules, but admin/reports/updates says that Drupal version is still 6.12.
To update drupal I ran
- drush updatecode
- drush updatedb
(this updated only modules and said code still needs to be updated manually).
Then I uploaded core, unzipped it, allowed to overwrite older versions and again ran
- drush updatedb
to enable changes.
Still, admin/reports/status shows not 6.13 version as expected, but 6.12 and says core is not secure. I even ran update.php script in the end, but still core is displayed in red as well as modules located at
admin/reports/updates.
Is using drupal shell (drush) a good practice for updates? Why is status still displayed as unupdated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我已按照将 Drupal 核心从 7.22 升级到 7.35 的所有步骤进行操作,从复制核心文件到运行 update.php,没有任何错误,没有重复的模块,所有模块都已更新。运行 Cron 显示我有 Drupal Core 7.26,但收到安全警告
“您的 Drupal 版本有可用的安全更新。为了确保服务器的安全,您应该立即更新!请参阅可用更新页面以获取更多信息和安装您缺少的更新。”
当我进入可用更新时,我可以看到已安装版本为 7.22,推荐版本为 7.35。
我还尝试从更新前的备份返回到版本 7.22,然后尝试升级到 7.23 而不是 7.35,但情况仍然相同。
I have followed all the steps to upgrade Drupal core from 7.22 to 7.35, from copying core files to runing update.php without any error, there are no duplicate modules, all modules are updated. Running Cron shows that I have Drupal Core 7.26 but I get the security warning
"There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates."
When I go into available updates I can see INSTALLED VERSION as 7.22 and RECOMMENDED VERSION as 7.35.
I have also tried going back to version 7.22 from backup that I took before update and then tried to upgrade to 7.23 instead of 7.35 but situation is still the same.
您是否检查过 drush 实际上更改了系统上的正确文件。您可能会发现它配置错误。
Did you check that drush actually changed the correct files on your system. You may find it is misconfigured.
诡异的。访问 admin/build/modules 应该会刷新模块缓存,但我敢打赌,您的站点中有多个模块的副本。检查 ./modules、./sites/default/modules、./sites/all/modules 和 ./profile/yourprofile/modules 是否有重复项。 (之后,访问admin/build/modules)
Weird. Visitting admin/build/modules should flush the modules cache, but I would bet you have more than one copy of the modules in your site. Check ./modules, ./sites/default/modules, ./sites/all/modules and ./profile/yourprofile/modules for duplicates. (afterwards, visit admin/build/modules)