4/11/2013

php5.4のWarningを消せ

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'RakutenLink' does not have a method 'add_head'

はWPrakutenlinkが出すエラー。
とりあえず、rakuten_link.php内の

class RakutenLink の中にfunction add_head(){}を追加して消す。



Warning: Missing argument 2 for Vicuna_Widget_Recent_Comments::update(), called in
のvicunaのエラーは


     */
    function update($new_instance= "", $old_instance= "")
    {
        Vicuna :: cache_del('recent_comments', 'recent_comments_list');
        return $new_instance;
    }

    /**
     * constructor
     */
    function Vicuna_Widget_Recent_Comments()
    {
        parent :: WP_Widget(false, __('Recent comments (Vicuna)', 'vicuna'));
        unregister_widget('Widget_Recent_Comments');
$this->update("");
    }

って変える。これは自分でコメント関連を書き換えてたから出ていたエラー。


これでphp5.4のエラーと警告が無くなった。嬉しい。