请在Chrome、Firefox等现代浏览器浏览本站。网站域名:森林之家(www.foresthouse.cn)爱学习、爱分享、爱绿软、爱恐怖、爱音乐、爱唠叨、爱折腾、爱生活!

织梦高度时友情连接报错Warning: Illegal string offset ‘url’ in…

织梦教程 forest 59℃ 已收录 0评论

织梦在调试的时候出现如下错误:

Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141
Warning: Illegal string offset 'url' in G:\wwwroot\include\taglib\flink.lib.php on line 139
Warning: Illegal string offset 'webname' in G:\wwwroot\include\taglib\flink.lib.php on line 140
Warning: Illegal string offset 'logo' in G:\wwwroot\include\taglib\flink.lib.php on line 141

解决织梦友情连接报错的方法:

打开“\include\taglib\flink.lib.php”文件把里面的“$row[‘url’]”、“$row[‘webname’]”、“$row[‘logo’]”按下面代码进行替换即可。

源代码如下:

 
$rbtext = preg_replace("/\[field:url([\/\s]{0,})\]/isU", $row['url'], $innertext);
$rbtext = preg_replace("/\[field:webname([\/\s]{0,})\]/isU", $row['webname'], $rbtext);
$rbtext = preg_replace("/\[field:logo([\/\s]{0,})\]/isU", $row['logo'], $rbtext);
$rbtext = preg_replace("/\[field:link([\/\s]{0,})\]/isU", $link, $rbtext);
$revalue .= $rbtext;
改完后正确的代码如下:
$rbtext = preg_replace("/\[field:url([\/\s]{0,})\]/isU", $dbrow->url, $innertext);
$rbtext = preg_replace("/\[field:webname([\/\s]{0,})\]/isU", $dbrow->webname, $rbtext);
$rbtext = preg_replace("/\[field:logo([\/\s]{0,})\]/isU", $dbrow->logo, $rbtext);
$rbtext = preg_replace("/\[field:link([\/\s]{0,})\]/isU", $link, $rbtext);
$revalue .= $rbtext;
本站文章如未注明,均为原创丨本网站采用BY-NC-SA协议进行授权,转载请注明转自:https://www.foresthouse.cn/archives/6079.html
喜欢 (0)or分享 (0)
发表我的评论(注:在您评论完以后不会立即显示,请不要重复刷新以免进入黑名单。)
取消评论
表情 代码 贴图 加粗 链接 私信 删除线 签到

Hi,请填写昵称和邮箱!

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