DOMDocument::loadHTML(): Empty string supplied as input

用户 lzxgh621 8月前 299

使用 XML-RPC 通过 Word 2016 发布博客
成功发布,文章管理也能看到,但是打不开。提示错误。
错误提示

错误信息
(2)E_WARNING : DOMDocument::loadHTML(): Empty string supplied as input (set_error_handler) (1.5.2.1935 (Zero)) (Linux; nginx1.14.0; PHP 7.2.4 x64; sqlite3; curl)

文件位置
/www/wwwroot/www.liyunbin.com/blog/zb_users/plugin/Editormd/include.php
386 	$article = $template->GetTags('article');
387 	
388 	$doc = new DOMDocument();
389 	libxml_use_internal_errors(true);
390 	$doc->loadHTML($article->Content);
391 	$xpath = new DOMXPath($doc);
392 	
393 	//兼容MIP,检测当前主题是否启用了官方MIP插件依赖
394 	if ($mip_start || $zbp->Config("Editormd")->mipsupport == 'true') {
395 	if (strpos($article, '[TOC]') !== FALSE || strpos($article, '[TOCM]') !== FALSE) {

堆栈跟踪
4 	/www/wwwroot/www.liyunbin.com/blog/zb_users/plugin/Editormd/include.php
	( 390) DOMDocument->loadHTML(0 => ,)
	$doc->loadHTML($article->Content);
5 	/www/wwwroot/www.liyunbin.com/blog/zb_system/function/c_system_event.php
	( 1230) Extra_Support_Editormd(0 => Object,)
	$fpreturn = $fpname($zbp->template);
6 	/www/wwwroot/www.liyunbin.com/blog/zb_system/function/c_system_event.php
	( 686) ViewPost(0 => Object,1 => ,2 => 1,)
	$result = ViewPost($m, null, true);
7 	/www/wwwroot/www.liyunbin.com/blog/zb_system/function/c_system_event.php
	( 370) ViewAuto(0 => /blog/post/216.html,)
	ViewAuto($url);
8 	/www/wwwroot/www.liyunbin.com/blog/index.php
	( 47) ViewIndex()
	ViewIndex();

请求数据

$%_GET = Array
(
)

$%_POST = Array
(
)

$%_COOKIE = Array
(
    [timezone] => 8
    [addinfoblog] => {"chkadmin":1,"chkarticle":1,"levelname":"\u7ba1\u7406\u5458","userid":1,"useralias":"**"}
)

然后,点击一下编辑文章,不修改,再点击提交,即可正常访问。


最新回复 (1)
全部楼主
  • 用户 lzxgh621 8月前 0
    引用 2
    博客版本 1.5.2.1935 (Zero)
    • ZBlogger技术交流中心
      3
          
返回