Custom Page for 404 Error Not Found

Linxor

Joined: 2010-12-17
Posts: 1
Posted: Fri, 2010-12-17 22:33

I'm running Gallery 2.3.1 with URL Rewrites turned on.

I'm wondering if there is a way to display a custom error page instead of the debug trace that appears when visiting a URL that doesn't exist (e.g. if an image has been deleted or moved).

Here's what I see right now:

Quote:
Error
Item not found.

Back to the Gallery

Error Detail -
Error (ERROR_MISSING_OBJECT) : Parent 7 path MYMISSINGIMAGE.jpg
* in modules\core\classes\helpers\GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
* in modules\core\classes\GalleryCoreApi.class at line 1952 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
* in modules\core\classes\helpers\GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
* in modules\core\classes\GalleryCoreApi.class at line 1901 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
* in modules\rewrite\classes\RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
* in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
* in modules\rewrite\classes\RewriteUrlGenerator.class at line 103
* in modules\rewrite\classes\parsers\modrewrite\ModRewriteUrlGenerator.class at line 56 (RewriteUrlGenerator::_onLoad)
* in init.inc at line 170 (ModRewriteUrlGenerator::initNavigation)
* in main.php at line 197
* in main.php at line 104
* in main.php at line 88