【问题标题】:Joomla Upgrade Database Error from v3.1.1 to 3.1.5Joomla 从 v3.1.1 升级数据库错误到 3.1.5
【发布时间】:2019-04-07 07:02:28
【问题描述】:

我已经在本地将 joomla 从 3.1.1 升级到 3.1.5 站点。但是前端和后端都坏了。 Fronend url 重定向到 www.mywebsite.com/index.php?option=com_content&view=article&id=1799。 sql升级没有通过。我试图应用数据库修复选项,但即使这样也没有让它在我的情况下工作。实际上我需要将 joomla 升级到最新版本。检查了 joomla 论坛,但无法解决此问题。

检查扩展 > 数据库选项时出现以下错误。

Database schema version (3.1.1) does not match CMS version (3.1.5).
Database update version (3.2.7) does not match CMS version (3.1.5).
Table 'j25_associations' does not have column 'id' with type 'INT(11)'. (From file 3.0.3.sql.)
Table 'j25_contentitem_tag_map' does not exist. (From file 3.1.0.sql.)
Table 'j25_tags' does not exist. (From file 3.1.0.sql.)
Table 'j25_ucm_base' does not exist. (From file 3.1.0.sql.)
Table 'j25_ucm_content' does not exist. (From file 3.1.0.sql.)
Table 'j25_modules' does not have column 'asset_id'. (From file 3.2.0.sql.)
Table 'j25_postinstall_messages' does not exist. (From file 3.2.0.sql.)
Table 'j25_ucm_history' does not exist. (From file 3.2.0.sql.)
Table 'j25_users' does not have column 'otpKey'. (From file 3.2.0.sql.)
Table 'j25_users' does not have column 'otep'. (From file 3.2.0.sql.)
Table 'j25_user_keys' does not exist. (From file 3.2.0.sql.)
Table 'j25_update_sites' does not have column 'extra_query'. (From file 3.2.2-2013-12-22.sql.)
Table 'j25_updates' does not have column 'extra_query'. (From file 3.2.2-2013-12-22.sql.)
Table 'j25_updates' does not have column 'version' with type 'varchar(32)'. (From file 3.2.2-2014-01-18.sql.)

点击修复按钮时出现以下错误:

 Fatal error: Call to undefined method InstallerControllerDatabase::checkToken() in /home/myserver/public_html/checker/administrator/components/com_installer/controllers/database.php on line 28

如何修复损坏的桌子?任何帮助将非常感激。坐了一个星期,还是没能解决这个问题。

版本: PHP 5.6.38-3+ubuntu16.04.1+deb.sury.org+1 (cli) mysql Ver 15.1 Distrib 10.0.36-MariaDB,用于 debian-linux-gnu (x86_64) 使用 readline 5.2

在本地我使用mariaDb,在现场我使用mysql。 mysql Ver 15.1 Distrib 10.0.36-MariaDB,用于 debian-linux-gnu (x86_64) 使用 readline 5.2

这会导致问题吗?

【问题讨论】:

    标签: php mysql joomla joomla3.1


    【解决方案1】:

    几个月前遇到了同样的问题。由于未发现新组件,您会收到数据库错误。请执行以下操作并发现组件。

    请恢复 Joomla 版本。 (3.1.1)

    转到管理区域 > 扩展 > 管理 > 发现。

    点击发现按钮。

    在那里你会看到新发现的物品。 点击并安装这些项目。

    然后在清除缓存后,点击数据库选项和尝试修复按钮。

    之后进行升级。

    希望这能解决您的问题。

    【讨论】:

    • 非常感谢兄弟!
    【解决方案2】:

    您的更新可能不完整。直接在您的根目录上更新文件并将其替换为以前的 Joomla! 要下载版本 3.1.1 到 3.1.5 的更新文件,请转到下面的链接并下载 zip 格式的更新文件。

    https://downloads.joomla.org/cms/joomla3/3-1-5

    请下载此项目“Joomla! 3.1.x to 3.1.5 Patch Package (.zip)”

    【讨论】:

    • 我按照你说的做了手动更新。但不知道为什么会抛出这个错误。
    猜你喜欢
    • 1970-01-01
    • 2018-05-24
    • 1970-01-01
    • 1970-01-01
    • 2014-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多