search
HomeCMS TutorialDEDECMSSolution 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

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
织梦cms忘记密码怎么办织梦cms忘记密码怎么办Mar 08, 2023 am 09:39 AM

织梦cms忘记密码的解决办法:1、登录MySql,找到网站对应的数据库的名称,点击进入该数据库;2、找到dede_admin表,然后找到管理员相关信息行并选中;3、通过还原的方式将密码还原为初始值,将pwd的值修改为默认的“f297a57a5a743894a0e4”即可。

织梦cms系统有收费的吗织梦cms系统有收费的吗Aug 11, 2023 pm 01:57 PM

织梦cms系统没有收费。织梦CMS是一款开源的内容管理系统,其核心代码是免费提供的,用户可以免费下载最新版本的织梦CMS,并且还可以获取相关的技术支持和文档。但在使用过程中,用户可能需要购买额外的功能模块或者主题模板,这些是收费的,购买这些收费的模块和模板,价格根据具体的功能和设计复杂度而定。

织梦cms安全性怎么样织梦cms安全性怎么样Jul 27, 2023 pm 05:32 PM

织梦cms安全性相对比较好,其原因有:1、漏洞修复速度快;2、CSRF(跨站点请求伪造)保护;3、XSS(跨站脚本攻击)保护;4、SQL注入保护;5、代码审计。

织梦cms连接数据库失败怎么办织梦cms连接数据库失败怎么办Jul 20, 2023 pm 02:22 PM

织梦cms连接数据库失败解决方法:1、检查数据库配置,确保在织梦CMS的根目录下的 /data/config.php 文件中正确设置了数据库的相关信息;2、测试数据库连接,通过创建一个简单的PHP脚本来测试数据库连接是否成功;3、检查数据库服务器状态,在织梦CMS的根目录下的 /data/config.php 文件中更换数据库服务器地址;4、检查网络连接。

织梦cms是什么语言写的织梦cms是什么语言写的Feb 21, 2023 am 09:45 AM

织梦cms是用PHP语言写的。织梦CMS(DedeCMS)是一个PHP开源网站管理系统,作用是构建中小型网站;它采用PHP+MySQL技术开发,可同时使用于windows、linux、unix平台。

织梦cms数据库名称怎么修改织梦cms数据库名称怎么修改Feb 28, 2023 am 09:39 AM

织梦cms数据库名称的修改方法:1、直接修改mysql里的数据库名称;2、打开根目录下的“data”文件夹,然后找到“common.inc.php”文件;3、修改其中“$cfg_dbname”后面的数据即可。

织梦cms主要是做什么的织梦cms主要是做什么的Aug 08, 2023 pm 03:24 PM

织梦cms主要是做网站的建设、管理和维护。1、网站建设,织梦CMS提供了丰富的模板和插件资源,用户可以根据自己的需求选择合适的模板和插件,快速搭建自己的网站;2、网站管理,织梦CMS提供了简单易用的管理后台界面,用户可以通过浏览器登录后台进行网站管理;3、网站维护,织梦CMS提供了自动备份和数据库管理等功能,保证网站的安全和稳定运行。

织梦cms备案号位置怎么更改织梦cms备案号位置怎么更改Feb 27, 2023 am 09:46 AM

织梦cms备案号位置的更改方法:1、进入织梦后台,然后找到“模板”分类;2、点击“默认模板管理”;3、找到“footer.htm”,并点击修改;4、找到“{dede:global.cfg_powerby/}”,然后填写备案号即可。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft