帮助此错误消息>意外的T
下面的代码是使用WordPress的simplepie fetch_feed()的rss feed解析器的一部分...
代码是:
if ($enclosure = $item->get_enclosure(0))
{
$image_thumb = $item->get_enclosure()->get_link().'screenshot.jpg';
$image = $item->get_enclosure()->get_link().'screenshot-full.jpg';
}
$link = esc_url( strip_tags( $item->get_link() ) );
$content = $item->get_content();
在尝试激活出现此代码的主题时,出现以下错误:
解析错误:语法错误,第1341行的/home/.../functions.php中意外的T_OBJECT_OPERATOR
1341行是以$ image_thumb开头的行
我的猜测是,这是PHP 4,它不支持方法链接。
是的它的PHP 4不支持单一的多方法访问
链接地址: http://www.djcxy.com/p/11915.html上一篇: Help with this error message > unexpected T
下一篇: What does this mean? "Parse error: syntax error, unexpected T