Error Display

D

drommk

Guest
How can I Hide the php errors (undefined variable/index etc.).

My application works quite well but these "notice" are always displayed. How can I stop it ?
 
D

Debbie Sontag

Guest
Insert the following as LINE 2 to all your header***.php files in the includes directory:

error_reporting (E_ALL ^ E_NOTICE);

This suppresses the Notices but will still advise you of errors/warnings/crashes.

Debbie
 
M

Michele

Guest
Hi Debbie.
I had the same issue and I have added that line in the files:
header.php
header_admin.php
and they look like:

<!--
function fill_cap(city_field){

error_reporting (E_ALL ^ E_NOTICE);
temp = 'document.contacts_form.'+city_field+'.value';

city = eval(temp);
....

Have I added that line in the right place?
I amsorry, but I have never done any php scripting or any coding before.
Thanks,
Michele

 
D

Debbie S

Guest
Michele

The error_reporting line must be added, as stated, to line 2 of the header.php and header_admin.php files so it appears right beneath the opening <?php tag:

<?php
error_reporting (E_ALL ^ E_NOTICE);
/*
***********************************************************************************
DaDaBIK (DaDaBIK is a DataBase Interfaces Kreator) http://www.dadabik.org/

The location where you inserted the line is inside some javascript code.


Debbie
(Latest version of DaDaBIK when this message was posted: 3.1 Beta)
 
Top