å一
08

wordpressçš„æ¨¡æ¿æ–‡ä»¶ï¼Œç¼ºå°‘访问验è¯ï¼Œç›´æŽ¥è®¿é—®æ¨¡æ¿é‡Œçš„æ–‡ä»¶ï¼Œå°±ä¼šæ³„露物ç†è·¯å¾„ã€‚è¿™ä¸ªä¸æ˜¯PHPæ¼æ´žï¼Œæ˜¯WordPressçš„æ¼æ´žã€‚

比如访问:http://hostname/wordpress/wp-content/themes/default

就会显示:

Fatal error: Unknown function: get_header() in /home/public_html/blog/wp-content/themes/default/index.php on line 1

解决办法

在模æ¿é‡Œçš„æ–‡ä»¶å¤´éƒ¨åŠ ä¸Šä»¥ä¸‹ä»£ç ï¼Œå¯ä»¥é˜²æ­¢æ³„露路径。

<?php
if(!defined('WP_USE_THEMES')) {
exit(
'Access Denied');
}
?>

相关日志

推è几个wordpress themes 主题网站 激活wordpresséšè—的文章分页功能 Wordpressçš„PDA和手机iPhoneæ’ä»¶ 在WordPress首页和目录页显示摘è¦çš„æ–¹æ³•å’Œæ’ä»¶ WordPress长文章分页



标签:WordPress, æ¼æ´ž

View:335 views

No Responses

Leave a Response

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser
Mobilytics