• 不断学习才有回报,学无止境!

解决wordpress中文标签无法访问报500错误的问题

wordpress学习 箭翎 5次浏览 0个评论 扫描二维码

首先打开Wordpress站点下wp-includes目录里的class-wp.php文件。操作之前复制备份一个是好的习惯。
搜索$_SERVER[‘REQUEST_URI’]。用“//”注释掉

//list( $req_uri ) = explode( ‘?’, $_SERVER[‘REQUEST_URI’] );注释掉这一行,添加下面两行代码

$Temp_REQUEST_URI= mb_convert_encoding($_SERVER['REQUEST_URI'], "UTF-8", "GBK");
list( $req_uri ) = explode( '?', $Temp_REQUEST_URI );

搜索$_SERVER[‘PATH_INFO’]。用“//”注释掉此行:

//$pathinfo = isset( $_SERVER[‘PATH_INFO’] ) ? $_SERVER[‘PATH_INFO’] : ”;注释掉这一行,添加下面两行代码

$Temp_PATH_INFO = mb_convert_encoding($_SERVER['PATH_INFO'], "UTF-8", "GBK");
$pathinfo = isset( $Temp_PATH_INFO ) ? $Temp_PATH_INFO : '';

箭翎 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明解决wordpress中文标签无法访问报500错误的问题
喜欢 (0)

Warning: copy(D:\phpstudy_pro\WWW\blog/avatar/.png) [function.copy]: failed to open stream: No such file or directory in D:\phpstudy_pro\WWW\blog\wp-content\themes\Record2.0\functions.php on line 495

Warning: filesize() [function.filesize]: stat failed for D:\phpstudy_pro\WWW\blog/avatar/.png in D:\phpstudy_pro\WWW\blog\wp-content\themes\Record2.0\functions.php on line 499

Warning: copy(D:\phpstudy_pro\WWW\blog/avatar/.png) [function.copy]: failed to open stream: No such file or directory in D:\phpstudy_pro\WWW\blog\wp-content\themes\Record2.0\functions.php on line 499
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址