hata gösterimini aktif et,

error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);

hata mesajına göre çözüm bulunur.