Home  >  Article  >  CMS Tutorial  >  Solution to the problem of errors in reading additional information in some articles of Dedecms.com

Solution to the problem of errors in reading additional information in some articles of Dedecms.com

(*-*)浩
(*-*)浩Original
2019-12-14 14:51:371762browse

Solution to the problem of errors in reading additional information in some articles of Dedecms.com

Problem: It is estimated that when the new version was developed, the old version and the news with empty article content were not considered. The new version no longer allows news with empty article content, so the content of the old version is empty. After the news is upgraded, it can no longer be edited.

Solution:

You can modify the following files as follows:                                                                                                                                                                                                                                                         article_edit.php (This file is in the background folder) 35 lines (specific search: "Error reading additional information" will know where it is)

    /*5.3版本注释掉
    $addRow = $dsql->GetOne("Select * From `$addtable` where aid='$aid'");
    if(!is_array($addRow))
    {
        ShowMsg("读取附加信息出错!","javascript:;");
        exit();
    }
    */结束我只做到了这一步,后台就不提示错误了,可以修改了 
    /*兼容5.3以前版本,文章内容为空,自行修改
    $addRow = $dsql->GetOne("Select * From `$addtable` where aid='$aid'");  
    if(!is_array($addRow)) $body = "";
    else $body = $addRow["body"];
    */结束

------ ----------------------------------The above is a problem that occurs when the website is moved or the version is updated. --------------------------

The problem I encountered is that the website is newly installed, has not been moved, and has not been updated. version, and the previous articles had no content and could not be edited, but the article posted now has content (after making the above changes, it can be edited, but at first an error was reported and it could not be edited). After making the same changes, I can still edit the previous ones, but there will be no content.

I changed the dede_member table by directly deleting the old table and then recreating it. All the previous registered member data was gone. Now try to restore the previous database, and then restore the previous data without using the new method. In this way, with member information, the article information posted by members will naturally be available.

The above is the detailed content of Solution to the problem of errors in reading additional information in some articles of Dedecms.com. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn