当前位置:首页 > 电脑知识 > 正文内容

速看(织梦DEDECMS)dedecms是什么,dedecms织梦:Call to a member function GetInnerText() 报错解决方法,dedecms织梦:Call to a member function GetInnerText() 报错解决方法,

sauo3年前 (2022-12-15)电脑知识89

使用织梦cms建完网站以后,新建了个栏目,添加文章时一切正常,但是,当再此打开这个文章进行编辑时,就出现了下面的错误,这是什么情况呢?

Fatal error: Uncaught Error: Call to a member function GetInnerText() on string in /www/wwwroot/www.5imoban.net/include/customfields.func.php:539 Stack trace: #0 /www/wwwroot/www.5imoban.net/woaimoban/inc/inc_archives_functions.php(560): GetFormItemValue(Object(DedeTag), ”, ‘admin’) #1 /www/wwwroot/www.5imoban.net/woaimoban/inc/inc_archives_functions.php(615): GetFormItemValueA(Object(DedeTag), ”) #2 /www/wwwroot/www.5imoban.net/woaimoban/templets/archives_edit.htm(195): PrintAutoFieldsEdit(‘<field:flashpic…’, Array) #3 /www/wwwroot/www.5imoban.net/woaimoban/archives_edit.php(50): include(‘/www/wwwroot/ww…’) #4 {main} thrown in /www/wwwroot/www.5imoban.net/include/customfields.func.php on line 539

结合网上的方法,需要修改两处,即可解决问题(之前没有出现这种情况,换成了php 7就出现了,应该是之前的dedecms织梦版本问题): 1、打开找到/inculde/taglib/channel/img.lib.php,51行所在的代码

$innerTmp = $arcTag->GetInnerText();

将以上代码替换为:

$innerTmp =($arcTag=="")? trim($arcTag): trim($arcTag->GetInnerText());

2、打开/include/customfields.func.php,找到539行:

$fvalue = trim($ntag->GetInnerText());

替换为:

$fvalue = $ntag==""? trim($ntag): trim($ntag->GetInnerText());

这样就可以完美的解决了。

(window.slotbydup = window.slotbydup || []).push({ id: "u6835052", container: "_96bek913mdb", async: true });

本文链接:http://blog.sauo.top/?id=491 感谢分享!

分享到:

扫描二维码推送至手机访问。

版权声明:本文由冬眠先生个人博客发布,如需转载请注明出处。

本文链接:http://blog.sauo.top/?id=491

分享给朋友:

“速看(织梦DEDECMS)dedecms是什么,dedecms织梦:Call to a member function GetInnerText() 报错解决方法,dedecms织梦:Call to a member function GetInnerText() 报错解决方法,” 的相关文章

万万没想到(Ubuntu安装ssh服务)ubuntu配置ssh服务器,ubuntu安装ssh服务器的方法,ubuntu安装ssh服务器的方法,

万万没想到(Ubuntu安装ssh服务)ubuntu配置ssh服务器,ubuntu安装ssh服务器的方法,ubuntu安装ssh服务器的方法,

免费领取腾讯云服务器! 安装了一个ubuntu系统,想着在内网中用ssh进行远程连接管理。下面这篇博文就说说如果在ubuntu系统中安装ssh远程管理服务。 ubuntu 安装ssh服务器的方法 1、安装 openssh-s...

干货分享(php file_get_contents curl)php file_get_contents post,php file_get_contents(): SSL operation failed with code 1. OpenSSL Error message.....,php file_get_contents(): SSL operation failed with code 1. OpenSSL Error message.....,

免费领取腾讯云服务器! 在调试php脚本代码时,发现使用 file_get_contents() 函数请求HTTPS的网址链接时出现了报错,其报错代码如下面所示“file_get_contents(): SSL operation failed with...

一看就会(imagefilter过滤图像方法)php imagefill,php imagefilter()图片滤镜函数的用法与示例,php imagefilter()图片滤镜函数的用法与示例,

一看就会(imagefilter过滤图像方法)php imagefill,php imagefilter()图片滤镜函数的用法与示例,php imagefilter()图片滤镜函数的用法与示例,

免费领取腾讯云服务器! 有个小需求,需要使用php代码对图片进行颜色调整,比如变成灰色,改变图片的亮度,对比度等等。而php中就内置了一个图片的滤镜函数 imagefilter() ,下面就来具体说说这个函数的用法。 php imagefi...

速看(js将图片转换为二进制流)js将图片转换为webp,js将图片转换为base64编码方法,js将图片转换为base64编码方法,

免费领取腾讯云服务器! js可以将图片文件转成base64编码的,便于图片文件的上传与处理,下面就写几种关于js脚本来转换图片为base64编码的方法。 js将图片转换为base64编码的方法 方法1 将自身...

不要告诉别人(php求数组交集)php数组取差集,php计算两个数组的交集与差集,php计算两个数组的交集与差集,

免费领取腾讯云服务器! php中计算两个数组之间的交集与差集可以使用 array_intersect() 与 array_diff() 数组处理函数,这两个数组的具体使用方法如下。 php计算两个数组之间的交集 array_...

这都可以(判断是否是ajax请求)php判断请求方式,php判断是否为ajax请求的方法,php判断是否为ajax请求的方法,

免费领取腾讯云服务器! 在后端可以利用php代码来判断前台提交的数据是否通过ajax进行提交的,其方法也非常的简单,只需要判断$_SERVER["HTTP_X_REQUESTED_WITH"] 是否存在,以及判断 $_SERVER["HTTP_X_REQU...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。