Online solution to phpSmarty template errors!

Source: Internet
Author: User
Online solution to phpSmarty template errors! PHP Smarty source code

Php Smarty Template error. do you have to install the Smarty template first? I copied the source code directly to the machine that configured the environment, and the above problem occurs, there is no problem with the original machine. I don't know what the problem is. please advise me! Online and other results


Reply to discussion (solution)

Is the path incorrect?

The top class does not define the attributes named mDisabledSmary and mModPath.
Check the definition of the top class.
Note that the versions of Smary are not fully compatible with Smary3 and Smary2.

Is the path wrong? I have said on the Internet where I want to change the path of my de_path smarty file in the php. ini file, but I don't know how to change it.

The top class does not define the attributes named mDisabledSmary and mModPath.
Check the definition of the top class.
At the same time, pay attention to the Smary version. the Smary3 and Smary2 are not fully compatible. how should I change them?

Add
Error_reporting (E_ALL ^ E_NOTICE );

Avoid conflicts first.

Add
Error_reporting (E_ALL ^ E_NOTICE );

Avoid conflicts first. then, the navigation page is displayed, but the homepage cannot be loaded.

Let's take a look at the configuration. just do it step by step.
Http://blog.csdn.net/happyxjg/article/details/4398336


Add
Error_reporting (E_ALL ^ E_NOTICE );

Avoid conflicts first, and then the navigation page is displayed, but the homepage cannot be loaded. thank you!



Add
Error_reporting (E_ALL ^ E_NOTICE );

Avoid conflicts first, and then the navigation page is displayed, but the homepage cannot be loaded. thank you!

Add
Error_reporting (E_ALL ^ E_NOTICE );

First, we will avoid the conflict. later, we will ask you an oracle question. if The smarty framework reads the oracle database, the text will appear ???, How can we solve the garbled problem?

The reason why the Chinese character becomes question mark is: the content stored in the table cannot be converted into the character set you need.

The reason why Chinese characters become question marks is: the content stored in the table cannot be converted to the character set you need. Is there any solution? What we can see in the database is normal. when we read the page, it is garbled. the encoding machine is okay, and it won't work if it is configured to someone else.


The reason why Chinese characters become question marks is: the content stored in the table cannot be converted to the character set you need. Is there any solution? What we can see in the database is normal. when we read the page, it is garbled. the encoding machine is okay, and it won't work if it is configured to someone else.

This problem can be solved by collecting information first.

1. what is the field encoding in the table?
2. what is the code of the program file?

Solve these two basic problems

We recommend that you paste the code for analysis.

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.