I find some strange problem. I use hook_node_insert(). In order to create the other node after the user create the specific node! Then, I redirect the user to the other pages But there are some error messages that i can't figure out!
the below code is my hook_node_insert()
function campaign_node_insert($node)
{
global $user;
global $base_url;
if($node->type=="my_content_type")
{
$userid=$user->uid;
/**
My code is right here !
**/
drupal_goto('/user/'.$userid);
}
}
My error Message is as belowed :