Disable Error Messages

accleas

Joined: 2005-04-20
Posts: 25
Posted: Mon, 2005-05-02 05:01

Hi all,

When an item is NOT found in G2, error messages will be shown as below:

Error Detail - 
Error (ERROR_MISSING_OBJECT)
in odules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 117 (gallerystatus::error) 
in modules/core/classes/GalleryCoreApi.class at line 1710 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent) 
in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 63 (gallerycoreapi::fetchchildidbypathcomponent) 
in modules/core/classes/GalleryCoreApi.class at line 1658 (galleryfilesystementityhelper_simple::fetchitemidbypath) 
in modules/core/ShowItem.inc at line 88 (gallerycoreapi::fetchitemidbypath) 
in modules/core/classes/GalleryView.class at line 214 (showitemview::loadtemplate) 
in main.php at line 293 (showitemview::doloadtemplate) 
in main.php at line 79
in main.php at line 70

System Information 
...................

As sensitive system information is also displayed on the error message, I want disable this feature. Could somebody give me hints how to prevent from showing the error messages?

Or how can I forward the invalid url to the home page?

Thanks in advance.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-02 06:13

you can modify ShowItem.inc around the line mentioned to handle ERROR_MISSING_OBJECT and take some action.
which sensitive information is listed? there aren't any full paths shown..