【问题标题】:database joomla(jos-Warning: exception 'RuntimeException' with message 'Duplicate entry ')数据库joomla(jos-警告:异常'RuntimeException'与消息'重复条目')
【发布时间】:2015-02-13 07:19:14
【问题描述】:

我的数据库 joomla 有问题...

当我删除旧站点(joomla 2.5)及其包含许多文章并安装新 joomla(joomla 3.3.6)时出现问题,但旧站点的 URL 出现 jos-Warning: exception 'RuntimeException ' 带有消息'重复条目'...

我有 404 错误页面,但无法解决此问题

请帮我解决这个问题

我对数据库没有任何背景

还有这一整页的错误:

jos-Warning: exception 'RuntimeException' with message 'Duplicate entry 'http://my-site.com/index.php/en/using-joomla-2/ext' for key 'idx_link_old' SQL=INSERT INTO `olrky_redirect_links` (`old_url`,`new_url`,`referer`,`comment`,`hits`,`published`,`created_date`) VALUES ('http://my-site.com/index.php/en/using-joomla-2/extensions-2/components-2/content-component-2/article-categories-2/169-5th-en/656-synthesis-and-study-the-biological-activity-of-some-new-bis-maleimide-derivatives-containing-1-3-4-oxadiazole-ring-2.html', '' ,'https://www.google.iq/', '',1,0, '2014-12-15 07:48:36')' in /home/*******/public_html/libraries/joomla/database/driver/mysqli.php:606 Stack trace: #0 /home/*******/public_html/plugins/system/redirect/redirect.php(114): JDatabaseDriverMysqli->execute() #1 [internal function]: PlgSystemRedirect::handleError(Object(JException)) #2 /home/*******/public_html/libraries/legacy/error/error.php(754): call_user_func(Array, Object(JException)) #3 [internal function]: JError::handleCallback(Object(JException), Array) #4 /home/*******/public_html/libraries/legacy/error/error.php(217): call_user_func_array(Array, Array) #5 /home/*******/public_html/libraries/legacy/error/error.php(179): JError::throwError(Object(JException)) #6 /home/*******/public_html/libraries/legacy/error/error.php(253): JError::raise(1, 404, '\xD9\x84\xD9\x85 \xD9\x8A\xD8\xAA\xD9\x85 \xD8\xA7\xD9...', NULL, true) #7 /home/*******/public_html/components/com_content/models/article.php(162): JError::raiseError(404, '\xD9\x84\xD9\x85 \xD9\x8A\xD8\xAA\xD9\x85 \xD8\xA7\xD9...') #8 /home/*******/public_html/plugins/system/helix/core/classes/joomla30/viewlegacy.php(394): ContentModelArticle->getItem() #9 /home/*******/public_html/components/com_content/views/article/view.html.php(44): JViewLegacy->get('Item') #10 /home/*******/public_html/libraries/legacy/controller/legacy.php(693): ContentViewArticle->display() #11 /home/*******/public_html/components/com_content/controller.php(79): JControllerLegacy->display(true, Array) #12 /home/*******/public_html/libraries/legacy/controller/legacy.php(730): ContentController->display() #13 /home/*******/public_html/components/com_content/content.php(16): JControllerLegacy->execute(NULL) #14 /home/*******/public_html/libraries/cms/component/helper.php(352): require_once('/home/*******/...') #15 /home/*******/public_html/libraries/cms/component/helper.php(332): JComponentHelper::executeComponent('/home/*******/...') #16 /home/*******/public_html/libraries/cms/application/site.php(191): JComponentHelper::renderComponent('com_content') #17 /home/*******/public_html/libraries/cms/application/site.php(237): JApplicationSite->dispatch() #18 /home/*******/public_html/libraries/cms/application/cms.php(251): JApplicationSite->doExecute() #19 /home/*******/public_html/index.php(40): JApplicationCms->execute() #20 {main}JApplicationCms -> execute() @ /home/******/public_html/index.php:40
JApplicationSite -> doExecute() @ /home/*******/public_html/libraries/cms/application/cms.php:251
JApplicationSite -> dispatch() @ /home/*******/public_html/libraries/cms/application/site.php:237
JComponentHelper :: renderComponent() @ /home/********/public_html/libraries/cms/application/site.php:191
JComponentHelper :: executeComponent() @ /home/*******/public_html/libraries/cms/component/helper.php:332
require_once() @ /home/*******/public_html/libraries/cms/component/helper.php:352
JControllerLegacy -> execute() @ /home/******/public_html/components/com_content/content.php:16
ContentController -> display() @ /home/*******/public_html/libraries/legacy/controller/legacy.php:730
JControllerLegacy -> display() @ /home/*******/public_html/components/com_content/controller.php:79
ContentViewArticle -> display() @ /home/******/public_html/libraries/legacy/controller/legacy.php:693
JError :: raiseWarning() @ /home/******/public_html/components/com_content/views/article/view.html.php:52
JError :: raise() @ /home/******/public_html/libraries/legacy/error/error.php:276

【问题讨论】:

    标签: php database joomla duplicates


    【解决方案1】:

    请打开你的数据库 phpmyadmin 执行这条 SQL 命令。

    截断表 olrky_redirect_links;

    解决了你的问题

    【讨论】:

    • 警告:这会删除表中的所有元素。无论如何也无济于事。
    • 我测试了我的网站问题已解决。此表 olrky_redirect_links 为空。如果您需要稍后测试您的表备份。如果你生活有问题。您的备用用途
    • 尝试更详细地解释问题是什么以及为什么需要清理桌子等(以及这样做会丢失什么)。如果用户真的想重新开始,他不仅应该清理这张表,还应该彻底重置数据库,否则以后会发生更多陈旧数据的错误。
    猜你喜欢
    • 1970-01-01
    • 2021-01-24
    • 2019-12-22
    • 2010-11-19
    • 2018-07-05
    • 2016-02-25
    • 1970-01-01
    • 2018-01-18
    • 1970-01-01
    相关资源
    最近更新 更多