You should only place the include file at the top of the page:
<?php require_once("CMS/HTMLEditor/WARichEditorPHP.php"); ?>
but under the globals and connection include.
the other piece of code you would place inside the body tag of your page where you want the editor to show.