When top page navigation is enabled in instance-config.php the button form inside the page navigation bar is selected instead of the main post form with the correct action tribute causing the script to post to the action of the next button in the top page navigation bar instead of the action attribute of the form with the name "post" which caused the message "an unknown error occured".