Thanks bcworkz for your answer.
P.S : I’m not in control of the rushabh77. I thought that he tried to modify the code, but no. I think you can block this user account, and delete his message which had no sense.
Thanks,
to help other novice like me, find below an exemple to create a page (let the field guid free to let wordpress choose the URL) :
$user_id = get_current_user_id();
$defaults = array(
'post_author' => $user_id,
'post_content' => '',
'post_content_filtered' => '',
'post_title' => 'Page_title',
'post_excerpt' => '',
'post_status' => 'publish',
'post_type' => 'page',
'comment_status' => '',
'ping_status' => '',
'post_password' => '',
'to_ping' => '',
'pinged' => '',
'post_parent' => 0,
'menu_order' => 0,
'guid' => '',
'import_id' => 0,
'context' => '',
);
$postspe = wp_parse_args($postspe, $defaults);
wp_insert_post( $postspe);