Hi ,
1st question , why have you got php notice reporting switched on? It is totally un-nesscesary..
errors yes - warning - perhaps - but notices??
stick
error_reporting(E_ERROR);
at the top of the page after
jimport( 'joomla.html.parameter' );
so it only shows you errors
Cheers