If debug is needed, i.e.
(error_reporting = E_ALL)
is set then many errors occurs:
/*
Warning: Undefined variable: XX in yy.php on line zz
*/
This is due to using of undefined variables-cookies
without checking its by function isset.
(Variables like $kid, $ptid, $lang ... and so on).
Thus normal execution been interrupted...