简体   繁体   English

Joomla 从 v3.1.1 升级数据库错误到 3.1.5

[英]Joomla Upgrade Database Error from v3.1.1 to 3.1.5

I have been upgrade joomla from 3.1.1 to 3.1.5 site locally.我已经在本地将 joomla 从 3.1.1 升级到 3.1.5 站点。 But both frontend & backend is broken.但是前端和后端都坏了。 Fronend url is redirecting to www.mywebsite.com/index.php?option=com_content&view=article&id=1799. Fronend url 正在重定向到 www.mywebsite.com/index.php?option=com_content&view=article&id=1799。 The sql upgrade did not pass. sql升级没有通过。 I tried to apply database fix option but even like that did not get it to work in my case.我试图应用数据库修复选项,但即使这样也没有让它在我的情况下工作。 Actually I need to upgrade joomla to latest version.实际上我需要将 joomla 升级到最新版本。 Checked in joomla forums, but couldn't be able to solve this issue.已在 joomla 论坛中查看,但无法解决此问题。

Got the following error when checked the Extension > Database option.检查扩展 > 数据库选项时出现以下错误。

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.)

Getting the following error when clicked on Fix button:单击“修复”按钮时出现以下错误:

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

How could I fix my broken tables?我怎样才能修理我坏掉的桌子? Any help would be really appreciated.任何帮助将非常感激。 Sitting with this for one week, still not able to solve this issue.坐了一个星期,仍然无法解决这个问题。

versions: PHP 5.6.38-3+ubuntu16.04.1+deb.sury.org+1 (cli) mysql Ver 15.1 Distrib 10.0.36-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2版本: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

In local I am using mariaDb and in live I am using mysql.在本地我使用的是 mariaDb,而在现场我使用的是 mysql。 mysql Ver 15.1 Distrib 10.0.36-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 mysql Ver 15.1 Distrib 10.0.36-MariaDB,用于 debian-linux-gnu (x86_64) 使用 readline 5.2

Will this cause an issue?这会导致问题吗?

Your update may be incomplete.您的更新可能不完整。 Update the file directly on your root and replace it with the previous Joomla!直接在您的根目录上更新文件并将其替换为之前的 Joomla! To download the update file from version 3.1.1 to 3.1.5, go to the link below and download the update file in zip format.要下载从版本 3.1.1 到 3.1.5 的更新文件,请转到以下链接并下载 zip 格式的更新文件。

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

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

Encountered the same issue few months back.几个月前遇到了同样的问题。 You are getting the database error because of not discovering the new components.由于未发现新组件,您收到数据库错误。 Please do the following and discover components.请执行以下操作并发现组件。

Please revert back the Joomla Version.请恢复 Joomla 版本。 (3.1.1) (3.1.1)

Go to Admin Area > Extensions > Manage > Discover.转到管理区域 > 扩展 > 管理 > 发现。

Click on Discover Button.单击“发现”按钮。

There you will see newly Discovered items.在那里你会看到新发现的物品。 Click and install those items.单击并安装这些项目。

Then after clearing cache, click on Database Option and Try Fix Button.然后清除缓存后,单击数据库选项和尝试修复按钮。

After that do upgrade.之后做升级。

Hope this will solve your problem.希望这能解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM