I am getting sometimes this error on production at:
if( true == $objWebsite ) { $arrobjProperties = (array) $objWebsite->fetchProperties( ); if( false
If within a function just change break; to return;