Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Permalink不工作了_Php_Wordpress - Fatal编程技术网

Php Permalink不工作了

Php Permalink不工作了,php,wordpress,Php,Wordpress,我有一个博客页面,当你点击“阅读更多”或博客标题时,它会在单独的页面中打开该博客进行阅读。但是,当我单击这两个按钮时,会收到以下消息: 服务器错误网站在检索时遇到错误 我的网站/wordpress/?p=20。它可能因维护或故障而停机 配置不正确。以下是一些建议:重新加载此网站 稍后再翻页。HTTP错误500(内部服务器错误):意外错误 服务器尝试实现时遇到条件 请求 代码如下: <div class="box"> <?php while ( have_posts() ) :

我有一个博客页面,当你点击“阅读更多”或博客标题时,它会在单独的页面中打开该博客进行阅读。但是,当我单击这两个按钮时,会收到以下消息:

服务器错误网站在检索时遇到错误 我的网站/wordpress/?p=20。它可能因维护或故障而停机 配置不正确。以下是一些建议:重新加载此网站 稍后再翻页。HTTP错误500(内部服务器错误):意外错误 服务器尝试实现时遇到条件 请求

代码如下:

<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>


您应该尝试删除
esc\uURL

此外,将
移动到
标记内

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

要在屏幕上获取错误信息,这是一个开发阶段,对吗?

@louismoore18它是在线的,以便进一步检查?问题似乎存在于目标页面中,而不是永久链接中。你能看到服务器错误日志吗?在这里,您有捕获该漏洞所需的所有信息…@NimikOS得到错误解析错误:语法错误,在第37yipi行的/customers/d/b/a/louismoore.net/httpd.www/wordpress/wp-content/themes/starkers-master/single.php中出现意外的“/”!因此,转到single.php并仔细查看,开始删除该“/”`
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);