alot of debug information even if debug mode is turned off

slackg2

Joined: 2004-08-19
Posts: 9
Posted: Fri, 2005-11-04 04:54

Gallery2 is in embedded mode using wpg2 plugin for wordpress. when an invalid url is visited. alot of information shows up. basicly i just want to have an error page come up instead of the following.

Error

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_MISSING_OBJECT) : Parent 195 path ee

* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 118 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 1762 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 63 (gallerycoreapi::fetchchildidbypathcomponent)
* in modules/core/classes/GalleryCoreApi.class at line 1708 (galleryfilesystementityhelper_simple::fetchitemidbypath)
* in modules/core/classes/GalleryView.class at line 344 (gallerycoreapi::fetchitemidbypath)
* in modules/core/classes/GalleryView.class at line 219 (showitemview::_getitem)
* in main.php at line 287 (showitemview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /var/www/htdocs/blog/wp-gallery2.php at line 55 (galleryembed::handlerequest)

System Information
Gallery version 2.0.1
PHP version 4.4.0 apache
Webserver Apache/1.3.33 (Unix) mod_ssl/2.8.24 OpenSSL/0.9.7g PHP/4.4.0
Database mysql 4.1.14
Toolkits ImageMagick
Operating system Linux 2.6.13.4 #1 Mon Oct 10 22:17:41 EDT 2005 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7


Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.4.0 apache
Webserver = Apache/1.3.33 (Unix) mod_ssl/2.8.24 OpenSSL/0.9.7g PHP/4.4.0
Database = mysql 4.1.14
Toolkits = ArchiveUpload, Exif, ImageMagick, Thumbnail, Ffmpeg
Operating system = Linux 2.6.13.4 #1 Mon Oct 10 22:17:41 EDT 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

AttachmentSize
error.JPG89.26 KB
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-11-04 09:40

well, we can create a nicer langing page for error_missing_object.
the url you entered isn't just a random url, you entered just an invalid object id... so the error is quite precise.

see modules/core/templates/ErrorPage.tpl