2012-12-30 77 views
0

我有一个博客网页,意思是当你点击'阅读更多'或博客标题时,它会在单独的页面中打开该博客阅读。然而,当我点击这两个东西我得到以下信息:固定链接不能正常工作

Server error The website encountered an error while retrieving mywebsite/wordpress/?p=20. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this web page later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

这里是代码:

<div class="box"> 
<?php while (have_posts()) : the_post(); ?> 
     <article> 
      <h2><a href="<?php esc_url(the_permalink()); ?>"<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 
      <h7>BY LOUIS MOORE ON</h7> <time datetime="<?php the_time('Y-m-d'); ?>" pubdate><?php the_date(); ?> <?php the_time(); ?></time><?php the_content(); ?> 
<a href="<?php esc_url(the_permalink()); ?>"/><h8>READ MORE</a></h8> </br> 
</br><div class="h9"></div> 
</article></br></br></br> 
<?php endwhile; ?> 
</div> 

我在哪里去了?

+0

看到我下面的更新... –

回答

1

你应该尝试删除esc_url ...
除了移动</h8>a标签

<a href="<?php the_permalink(); ?>"><h8>READ MORE</h8></a> 

UPDATE

让调试,把这个在您的wp-配置中:

define('WP_DEBUG', true); 
define('WP_DEBUG_LOG', true); // creates and update wp-content/debug.log 
define('WP_DEBUG_DISPLAY', true); 
@ini_set('display_errors', 1); 

在scre中获取错误信息恩,这是一个发展阶段,对吧?

+0

没有打破了整个页面。删除所有帖子 – Louismoore18

+0

@ louismoore18它是在线检查它更接近?该问题似乎存在于目标页面中,而不是永久链接中。你能看到服务器的error_log吗?在那里你有所有的信息,你需要赶上bug ... –

+0

http://www.louismoore.net/wordpress/然后单击标题或阅读更多 – Louismoore18