Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of errors in reading additional information in some articles in dedecms

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to solve the problem of errors in reading additional information in some articles in dedecms? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

What if there is an error in reading additional information in some articles in dedecms?

Today, I changed the table prefix in the database of the dede website because of some needs, and also changed the table prefix in the database configuration information file, and then there was a "error reading additional information!" when editing the published document. The message is the same as adding documents. "error occurred while saving the data to the database additional table `dede_ addonSecretle`. Please submit the relevant information to the DedeCms official." The original document is also missing when the html file is regenerated.

Recommended study: dream weaving cms

So I searched for "error reading additional information!" with the code editor. In the file in which it is located, it is found that this piece of information is in admin/article_edit.php, and the condition that it appears is that the array $addRow does not exist, that is, the above sql statement "SELECT * FROM `$addtable` WHERE aid='$aid'" returns a result of 0. With this sql statement, you can see that the problem occurs when the table name $addtable goes wrong, or the document aid does not exist, and $addtable = $cInfos ['addtable'] $cInfos is also done through "SELECT * FROM `dede_ channeltype` WHERE id='". $arcRow ['channel']. "'" Come, we can see that the table name $addtable is stored in the addtable field in the table dede_channeltype (in which dede_ is the table prefix), rather than by adding the table name with a table prefix similar to dede_channeltype. As a result, I went to the dede_channeltype table of the database and found that there was information about the content model, while the prefix of the table name stored inside was the original, so I corrected the table name inside and went to the background to see that the error was gone.

Summary: this error occurs because the database table name does not match the table name stored in dede_channeltype. Those who can operate the database can modify the database, and those who do not know how to operate the database can correct the model 'additional tables' in the core-channel model-content model management.

Attachment: when I looked at the dede_channeltype table, I found that there is also a table name in the field maintable, and those who can change the database had better change the table prefix inside, although it is said that as long as the addtable field is changed, the error can be solved.

Here is how to use the dedecms forum:

Today, I checked the old articles on the website and found that many of them were "error reading additional information!" When browsing the content, there is only a description section, and all the text content is missing.

Open the dede_addonarticle table in phpmyadmin to search for the ID of the article in question, and you can't find it, so you try to insert the content, and the aid field enters the ID of the article in question.

Sure enough, the background can be edited, but the text content can not be found, only to rewrite the content, or look at Baidu snapshot bar ~ ~

I haven't found this problem for a long time. I don't know how many times Baidu has updated, and the snapshot can't find the content. Sadly, I want to find one article after another.

There is also this problem does not know how to occur, how to prevent ~ ~ experts come out to talk about it.

Solution:

There is an error in the sub-table storage of dedecms, so we can store it manually. In dedecms5.1, dede_archives and dede_addonarticle respectively add the content of the specified id, and then modify it to the content you want, which is solved perfectly.

Thank you for reading! After reading the above, do you have a general understanding of how to solve the problem of reading additional information in some dedecms articles? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report