An analysis of discuz "Internal error, cannot display this content" solution

Source: Internet
Author: User
Keywords Discuz

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest stationmaster buy cloud host technology Hall

Some time ago to help a friend to modify the Web site with DZ program template when there is a problem, that is, the site suddenly appeared "internal error, can not show this content" problem. We all know that DZ is completely take the main program and the front-end template apart, this can be said to be a set of excellent program characteristics, this point of global well-known open source program WordPress is the same. And DZ There is an easy-to-use function is the module DIY function, this feature can make a lot of HTML do not understand the webmaster friends to make their own personalized modules.

However, this problem is basically all the Web site can not operate, in DIY points such as data, style, attributes and so on all options have an error. And that's when my friends always ask me if I'm done. Because I promised him to help him solve the template of the first page in the prescribed time, but I did not dare to talk to him because I did not have the absolute assurance that this thing was not caused by me, although it is impossible for me to make this mistake when I operate the style of the front end. But in practice anything unexpected can happen.

So I had to bite the bullet and search for answers. Search on the internet for more than 10 minutes, found that most people do not have any results of such problems, the answer is most of the update cache and so on, it seems that this program appears all problems are not updated background cache caused, of course, DZ often need to update the background cache, Especially when you modify something to get it into effect.

The search for a lap did not solve the problem, although there are a lot of answers to the final solution, but those circumstances and my actual does not match, because I was in trouble before and after only the operation of CSS, the result of a friend suddenly said I help you modify the config in the verification of IP function to prevent you go into the background always say jump out of the landing As a result, I asked him to replace this file with a backup to solve the problem.

I've never solved a problem, I've always solved it and summed up why. So I also deliberately kept those files during the failure of the current normal contrast, analysis of new problems. Summary of the online and their new figure out to do a summary, resulting in this problem the most common factors are the following points, of course, there may be more new problems.

First, modify the file directly open with Notepad, resulting in extra space, resulting in the program can not recognize the XML file.

With DZ that program friends know that many places in the program using XML technology, our plug-in and template installation files are written in the XML file, and then through the internal function mechanism call execution. There are also in the template DIY process generated files are actually XML, such as our DIY after the export of the file is this format. This friend of mine is the error of not recognizing the XML caused by the opening of the file in the FTP file when the profile config is modified. Because I later went back to the abnormal state to open the error report, I found that there is a section of an error code is included in the XML, and the next part of our normal use of the time that part, but the format is very confusing. The solution is to restore the normal format of those files with specialized code-writing tools such as DW.

Second, modify the XML file error, resulting in unrecognized.

In dz many templates of the home page are made with DIY or use a lot of DIY, sometimes we modify the information above the template in order to save time is not to edit the name of a frame, but to guide the XML, and then unified modify it. The result may be a format confusion using Notepad or other tools that are not specifically coded, or the closing symbol of the tag may be deleted because of a momentary error. Can cause an unrecognized problem as it appears in the first case, and many times such a file can be successfully imported, but this fatal error occurs after the import. The solution is to empty the wrong import first, and then modify the XML with the right tools and correct methods so that it is not imported incorrectly.

Third, in the DIY state import and the program itself conflict or wrong JS.

Within DZ has come with a lot of very practical JS special effects, such as slide transitions and scrolling, and so on, these effects only need a property value can be directly invoked, and the implementation of the built-in functions of the special effects will be very high efficiency. But a lot of technical not understand webmaster often like to collect some JS code from the Internet, maybe those codes do not have any errors when they are executed alone, but there will be conflicts in the DZ program even if this fatal error is mentioned here, such as one of the well-known JS framework jquery default $ will conflict with DZ Must be modified to work properly. In fact, this type of failure, often directly in the foreground empty DIY are invalid, the best solution is to go to the database to find Template page Data archive table Pre_common_diy_data DIY Delete recently added data records, and then again to make the current page.

Four, no solution of the strange caching problem.

This is a question that can be a bit of a nonsense, but I've been able to solve this problem several times before. In fact, I think it is not surprising, because DZ is a set of full use of the caching mechanism of the program, such as our front-end to see a lot of JS and CSS are first through the template file into the cache, and then let the front-end read execution. Many times we've fixed the error in the previous ways, but we're still wrong when we look at the front end, and we have to think about caching, and there are a lot of reconfigured servers. The solution is to reboot a Web server such as IIS or Apache or simply reboot, and check that the cache directory is written, because our changes must be written to the cache at execution time.

These situations are a lot of people have been a problem, but also experienced in person, but the first case is the most recent I encountered. Although generally as long as there is a solution to the problem, but I think sometimes such a problem will cause us to waste a lot of unnecessary time. Finally, it is recommended that the novice friends do not understand the relevant knowledge at the time to change at will, and I hope that we do not make it easy to modify the file directly to avoid causing trouble to find the cause of the fault, of course, the most insurance method or in the modification before the backup of our valuable data.

This article source: Http://www.zgwen.net (by the Western Digital agent China steady Speed original, reprint please specify the source!)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.