运行使用WP函数的基本PHP脚本的意外错误500

时间:2019-05-20 18:18:17

标签: php wordpress centos whm

运行此脚本时,出现500 HTTP错误(启用显示错误)。

centOS 7最新版,带WHM和Wordpress

<?php
include 'wp-includes/pluggable.php';
$user = wp_get_current_user();
echo $user
?>

期望在页面上回显的用户ID。导致HTTP 500错误。 php日志中没有任何记录。

我研究了wordpress文档,pluggable.php应该是要包含的脚本。

0 个答案:

没有答案