The dedecms template file does not exist and cannot be resolved.

Source: Internet
Author: User
Tags error code

I. First Open:/incluede/arc. archives. class. php

Find the word "template file does not exist, unable to parse the document", and then modify the entire line

Echo "the template file does not exist and the document cannot be parsed! ". $ This-> ArcID;

Save the file and generate html in sequence. If the system still prompts "the template file does not exist and the document cannot be parsed", there will be an error article ID later, as long as you find the corresponding article to delete it.

Second. If the above method still does not work, the system prompts "the template file does not exist and the document cannot be parsed" and runs directly in the system> SQL command line tool:
Delete from dede_arctiny
One-click generation again to solve the fault.

Third. If this message is prompted after the upgrade of weimeng 5.6 to 5.7. We can solve this problem using the following method:

First, delete the code of the link.

Second, give up 5.7, or use 5.6

Then clear the cache and refresh it.

Try to see if the problem has been solved. If you have any similar problems, try it.

Another sorting method

The solution is to locate the error where an error occurs!

Search for the string "the template file does not exist and the document cannot be parsed" in the Include folder. Find the following five files:

Arc. archives. class. php
Arc. listview. class. php
Arc. sglistview. class. php
Arc. specview. class. php
Arc. taglist. class. php

Unable to parse the document because the template file does not exist!
 

If this error message is displayed on the document generation page, open the file "arc. archives. class. php" and find row 484th.

Modify the error code: echo "the template file does not exist and cannot be parsed! "; Dedecms5.6 tutorial-js200.CN

Modify to: echo "the template file does not exist and the document cannot be parsed! ". $ This-> ArcID;

In this way, the ID of the first wrong article can be returned. So, when it is regenerated, I get the ID of this article, open this article and edit it, and find that this article does not set a category, it should be because no category is set during collection and warehouse receiving. The problem is solved after the document column is set!

Similarly, if this problem occurs when the column list is generated, you can modify line 168th of the file "arc. listview. class. php. -Js200.CN

Echo "the template file does not exist and the document cannot be parsed! ";

Modify to: echo "the template file does not exist and the document cannot be parsed !. $ Tempfile ";

In this way, you can know exactly which document or template file has an error when generating a static file!


If the problem persists


If your DEDE can be updated without the error "the template file does not exist and the document cannot be parsed", the error message is that static generation is not good, but this is the case now. Maybe you met me like me. I also looked for a lot of methods on the network to solve the problem and all failed. In fact, it is very easy to adjust.

1. Check whether the space is full;
2. If it is not the first point, that is, after the upgrade of V5.7, your template is suffixed with HTML, you need to change it to HTM.

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.