RPC Mode set at ALL but only sender executes function

I was creating a simple chat script. Here is what it is:

if (GUILayout.Button ("Send") && chat != "") {
        networkView.RPC ("PrintText", RPCMode.All, chat, username);
        chat = "";
    }

Once the button is clicked it sends a message to call the PrintText funtion:

@RPC function PrintText (text : String, namez : String)
{
    log+= "<" + namez + "> " + text + "
";
}

log here is a GUI Label.

But only the sender can see what he typed. He cannot see what others typed. Why so?

The problem was that Network View was not attached to Server file.