Children's shoes often ask why similar errors will be prompted after the CMS layout is enabled when the HotNewsPro2.7 theme is tested locally:
Parse error : syntax error, unexpected $end in H:\wamp\www\wordpress\wp-content\themes\HotNewspro\cms.php on line one hundred and eighty-two The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
Solution: Take the WAMP program in the commonly used local php test environment as an example. The default state of WAMP is short_open_tag=Off, which means that PHP<??>is not allowed Abbreviation form, change to On. The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
This is also a necessary setting for building the local environment test website program. The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
Specific setting method: click Taskbar WAMP icon, Php php settings - check short_open_tag=on The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
If you use xampp , you can open the php directory and the php.ini of the apache bin directory to find: short_open_tag =off The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
Revised as: short_open_tag =on The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
Note: The local environment needs to be restarted to take effect The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
Related reading: Green xampp tutorial The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html The article comes from the knowledge that more birds- https://zmingcx.com/local-test-hotnewspro2-7-error-solution.html
Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!