運行下載的網站末班報錯

來源:互聯網
上載者:User
從網上下了一個網站的模板,在本機運行了下,出現這個錯誤:
SCREAM: Error suppression ignored for
( ! ) 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。php的第17行是:
get_header(); // Loads the header.php template. ?>

這是為什嗎?


回複討論(解決方案)

get_headers()

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

但是前面的代碼沒問題啊:
/**
* 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
*/

將17 行附件的代碼貼出來

/**
* 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="">










→', 'zenith' ) ); ?>
'

' . __( 'Pages:', 'zenith' ), 'after' => '

' ) ); ?>































第17行是getheaders

get_headers(); // Loads the header.php template. ?>
這種把注釋刪掉,否則後面的?>的也被注釋掉了,或者就把?>放在下面一行。

知道了,網上下的模板,怎麼這麼多低級錯誤啊

SCREAM: Error suppression ignored for
( ! ) Fatal error: Call to undefined function do_atomic() in C:\wamp\www\zenith\index.php on line 11
現在還是這個報錯,

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.