DEDE prompt: The template file does not exist and the document resolution cannot be found.

Source: Internet
Author: User
Tags php file

The added topic indicates that the template does not exist.

All DEDE columns use templates in the ". HTM" format, but some columns seem to be usable.

(1) templates in the. HTML format can be used for "cover pages" and "list pages;

(2) The ". HTML" format cannot be used for the "document page". You need to use ". HTM" or other formats (other formats have not been tested yet ).


Seriously think about the following:

1. The template file must exist;
2. The path is correct;
3. Other "list pages" can generate HTML files normally;
4. Use the default topic page. Later, I found the defaultBoth are .htm. I am .html.Rename. Submit the modification again. Successful. The topic cannot be generated, prompting me to try it. Please check this carefully.


When you update the document html, 'Template file does not exist and the document cannot be parsed 'appears'


If the 'Template file does not exist and the file cannot be parsed 'prompt appears when you update the html of the document, find the arc under the root directory include. archives. class. php file. The echo "template file does not exist and the file cannot be parsed! "; Changed to echo" the template file does not exist and cannot be parsed! ". $ This-> ArcID; this change means that you can see the ID number of the problematic document when prompted, and then find the corresponding document to see if it does not specify the template category, just change it.

If the 'Template file does not exist and the document cannot be parsed 'prompt appears in the html update column, find the arc under the root directory include. listview. class. php file. The echo "template file does not exist and the file cannot be parsed! "; Changed to echo" the template file does not exist and cannot be parsed! ". $ This-> TypeID; this change means that you can see the ID number of the problematic topic when prompted and modify it accordingly.

The topic I encountered was a message board. After passing through baidu, I found the answer provided by a friendly person on the dede Forum:

Solution 1: delete/dede/makehtml_list_action.php row 101: $ lv-> CountRecord (); (I didn't use this)

Method 2: delete the message book in the topic management. Do not delete plus/guestbook. php! (I didn't use this either)

Method 3: modify the online messages in the column and enter the template file by default! (I used this to choose index_default.htm?# list_default.htm and article_default.htm from the topic management> online message class .)

If the above methods are all tried, we need to think about whether it is a file directory permission problem, which may cause the template not to read or write.

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.