Error reported when files are generated by template compilation in smarty

Source: Internet
Author: User
Tags smarty template
The error code of the files generated by the smarty template compilation is good on my friend's computer. When it is opened on my computer, an error will be reported at template_c. Check that the Code pointing to the error does not find any problem.
How is temlpate_c generated? Can I delete it? Is it related to configuration? Later, I used another person's full set of code, and there were more files with errors reported in template_c, but there was nothing wrong with the original computer. Depressed.


Reply to discussion (solution)

Check whether the directory of the generated cache file has the write permission.

Check whether the directory of the generated cache file has the write permission.


This?
Var $ compile_dir = 'templates _ C ';

Files in temlpate_c are executable php files generated by smarty from template files in temlpate according to rules
You can delete all the files in temlpate_c and re-generate the smarty.
This error does not exist.


Check whether the directory of the generated cache file has the write permission.


This?
Var $ compile_dir = 'templates _ C'; [/quote



Check whether the directory of the generated cache file has the write permission.


This?
Var $ compile_dir = 'templates _ C ';


Pair

Files in temlpate_c are executable php files generated by smarty from template files in temlpate according to rules
You can delete all the files in temlpate_c and re-generate the smarty.
This error does not exist.


How can I generate a new one after deletion?
I haven't moved any other places. After I deleted template_c, I reported an error when I opened almost every page on the webpage. After I restored it, I got it again.

What error is reported ????

Files in temlpate_c are executable php files generated by smarty from template files in temlpate according to rules
You can delete all the files in temlpate_c and re-generate the smarty.
This error does not exist.


After the file is deleted and regenerated, the tpl folder under the templates folder is almost full of red ...... Is there a problem with the code of my template file?

Can't you say something that is understandable?

Can't you say something that is understandable?



An error is reported, with a Red Cross

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.