0

几天前我安装了GD Star rating插件,现在我想添加新帖子,但出现错误:

Fatal error: Call to a member function render_article() on a non-object in /wp-content/plugins/gd-star-rating/code/class.php on line 266

第 266 行是:

return $this->f->render_article($post, $userdata, $override);

所有功能是:

function shortcode_starratingblock($atts = array()) {
    global $userdata;
    $user_id = is_object($userdata) ? $userdata->ID : 0;
    $this->cache_posts($user_id);

    $override = shortcode_atts($this->default_shortcode_starrater, $atts);
    if ($override["post"] == 0) global $post;
    else $post = get_post($override["post"]);

    return $this->f->render_article($post, $userdata, $override);
}
4

1 回答 1

0

您好,我最近遇到了类似的问题,这是因为插件模板 sql 表已损坏。请更新 sql 表。这是代码http://pastebin.com/9T0u3W6E

通过 phpmyadmin 运行这些查询。祝你好运

于 2013-11-07T11:24:54.003 回答