{"id":2754,"date":"2019-05-21T15:41:19","date_gmt":"2019-05-21T07:41:19","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2754"},"modified":"2019-05-21T15:41:19","modified_gmt":"2019-05-21T07:41:19","slug":"%e7%bb%87%e6%a2%a6dedecms%e9%a6%96%e9%a1%b5%e6%8a%a5%e9%94%99%ef%bc%9awarning-illegal-string-offset-url-in","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2754.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u9996\u9875\u62a5\u9519\uff1aWarning: Illegal string offset ‘url’ in"},"content":{"rendered":"
\u4eca\u5929\u5728\u8bbf\u95ee\u7f51\u7ad9\u9996\u9875\u65f6\uff0c\u53d1\u73b0\u9876\u90e8\u6709\u9519\u8bef\u4ee3\u7801\u663e\u793a \uff1a<\/p>\n
Warning: Illegal string offset 'url' in \/www\/include<\/b>\/taglib\/flink.lib.php on line 139\r\nWarning: Illegal string offset 'webname' in \/www\/include<\/b>\/include\\taglib\\flink.lib.php on line 140\r\nWarning: Illegal string offset 'logo' in \/www\/include<\/b>\/include\\taglib\\flink.lib.php on line 141<\/code><\/pre>\n\u89e3\u51b3\u65b9\u6cd5\uff1a\u6253\u5f00\u201c\\include\\taglib\\flink.lib.php\u201d\u6587\u4ef6\u628a\u91cc\u9762\u7684\u201c$row[\u2018url\u2019]\u201d\u3001\u201c$row[\u2018webname\u2019]\u201d\u3001\u201c$row[\u2018logo\u2019]\u201d\u6309\u4e0b\u9762\u4ee3\u7801\u8fdb\u884c\u66ff\u6362\u5373\u53ef\u3002<\/p>\n
\u539f\u4ee3\u7801\uff1a<\/p>\n
$rbtext = preg_replace(\"\/\\[field:url([\\\/\\s]{0,})\\]\/isU\", $row['url'], $innertext);\r\n$rbtext = preg_replace(\"\/\\[field:webname([\\\/\\s]{0,})\\]\/isU\", $row['webname'], $rbtext);\r\n$rbtext = preg_replace(\"\/\\[field:logo([\\\/\\s]{0,})\\]\/isU\", $row['logo'], $rbtext);\r\n$rbtext = preg_replace(\"\/\\[field:link([\\\/\\s]{0,})\\]\/isU\", $link, $rbtext);\r\n$revalue .= $rbtext;<\/code><\/pre>\n\u4fee\u6539\u540e\u7684\u4ee3\u7801\uff1a<\/p>\n
$rbtext = preg_replace(\"\/\\[field:url([\\\/\\s]{0,})\\]\/isU\", $dbrow->url, $innertext);\r\n$rbtext = preg_replace(\"\/\\[field:webname([\\\/\\s]{0,})\\]\/isU\", $dbrow->webname, $rbtext);\r\n$rbtext = preg_replace(\"\/\\[field:logo([\\\/\\s]{0,})\\]\/isU\", $dbrow->logo, $rbtext);\r\n$rbtext = preg_replace(\"\/\\[field:link([\\\/\\s]{0,})\\]\/isU\", $link, $rbtext);\r\n$revalue .= $rbtext;<\/code><\/pre>\n\u66ff\u6362\u540e\uff0c\u95ee\u9898\u89e3\u51b3\u3002<\/p>\n
\u7ea2\u8272\u90e8\u5206\u5373\u4fee\u6539\u540e\u7684\u4ee3\u7801\uff1a<\/p>\n