Opened 17 years ago

Closed 16 years ago

#22 closed defect (fixed)

Hide mysql errors

Reported by: DavidSmith Owned by: DavidSmith
Priority: minor Component: web archive
Version: Keywords:
Cc:

Description

Vince has suggested that we hide mysql errors and produce some appropriate user errors, also have the page email the administrator when errors occur. I think this is sensible and will implement it.

Change History (3)

comment:1 Changed 17 years ago by DavidSmith

Status: newassigned

comment:2 Changed 16 years ago by DavidSmith

Exception handling is the best way to deal with errors in a web page. However, the version of php on herschel is 4.something, exception handling was only implemented in php5.

If its not a hassle upgrading to php5, I would suggest it, in the meantime I will solve this without exception handling.

comment:3 Changed 16 years ago by DavidSmith

Resolution: fixed
Status: assignedclosed

All usage of mysql_query has been removed and replaced with usage of MysqlDB objects. Exceptions are caught in index.php, query.php and conesearch.php and more appropriate messages are output, all the exceptions are also logged to the log file via logger_exception calls.

Note: See TracTickets for help on using tickets.