An error is reported during the last running of the downloaded website-php Tutorial

Source: Internet
Author: User
Tags parse error php template scream
An error is reported when the last class of the downloaded website is run. a website template is downloaded from the website and runs on the local machine. the following error occurs:
SCREAM: Error suppression ignored
(! ) Fatal error: Call to undefined function get_header () in C: \ wamp \ www \ zenith \ index. php on line 17
Call Stack
# Time Memory Function Location
1 0.0004 386824 {main} () .. \ index. php: 0


Index. The first line of php is:
Get_header (); // Loads the header. php template.?>

Why?


Reply to discussion (solution)

Get_headers ()

Or error:
(! ) Parse error: syntax error, unexpected '<'in C: \ wamp \ www \ zenith \ index. php on line 17

But there is no problem with the previous code:
/**
* Index Template
*
* This is the default template. It is used when a more specific template can't be found to display
* Posts. It is unlikely that this template will ever be used, but there may be rare cases.
*
* @ Package Zenith
* @ Subpackage Template
* @ Since 0.1.0
* @ Author Tung Do
* @ Copyright Copyright (c) 2013, Tung Do
* @ Link http://devpress.com/themes/zenith/
* @ License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

Paste the code of 17 lines of attachments

/**
* Index Template
*
* This is the default template. It is used when a more specific template can't be found to display
* Posts. It is unlikely that this template will ever be used, but there may be rare cases.
*
* @ Package Zenith
* @ Subpackage Template
* @ Since 0.1.0
* @ Author Tung Do
* @ Copyright Copyright (c) 2013, Tung Do
* @ Link http://devpress.com/themes/zenith/
* @ License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

Get_headers (); // Loads the header. php template.?>











"Class =" ">




'. _ (' [Entry-edit-link] [entry-published] [entry-author] [entry-comments-link] ', 'Zenith ').'

');?>






'

'. _ ('Pages:', 'Zenith '), 'after' =>'

');?>





'. _ ('[Entry-terms taxonomy = "category" separator = ""] [entry-terms taxonomy = "post_tag" separator = ""]', 'Zenith ').'

');?>

























The first row is getheaders.

Get_headers (); // Loads the header. php template.?>
Delete the comments in this way. Otherwise, what is next?> Is commented out, or is it fixed?> Put it in the following line.

I understand. why are there so many low-level errors in templates on the Internet?

SCREAM: Error suppression ignored
(! ) Fatal error: Call to undefined function do_atomic () in C: \ wamp \ www \ zenith \ index. php on line 11
This error is still reported,

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.