The footer acts appropriately, until adding a header
$textHeaderOptions = array('fontSize' => 14,'b' => 'on','color' => COLOR_PAGE_HDR,);
$headerAssessment = new WordFragment($docx, 'defaultHeader');
$headerAssessment->addText('APPLICATION ASSESSMENT', $textHeaderOptions);
$valuesHeaderAssessment = array(array(array('value' =>$headerAssessment, 'vAlign' => 'center',), ),);
$tableProperties = array('border' => 'nil',
'tableAlign' => 'left',
'tableLayout' => 'fixed',
'tableWidth' => array('type' => 'dxa', 'value' => 10100),
'columnWidths' => array(10100,), // in twips
);
$headerAssessmentTable = new WordFragment($docx, 'defaultHeader');
$headerAssessmentTable->addTable($valuesHeaderAssessment, $tableProperties);
$docx->addHeader(array('default' => $headerAssessment));