how to properly set up a 404 error page

Author Message

Michael Kress

Sunday 18 March 2007 11:02:27 am

Hi, on http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/error_ini there's unfortunately not much content. I found out how to redirect to a 404 page, but I'd like somehow to hide the page from the rest of the world, i.e. put the visibility to invisble. But with that ez publish wants me to log in to view the 404 page.
What's the best recipe to create a 404 page?
TIA
Michael

Heath

Sunday 18 March 2007 11:17:09 am

Hello,

You could disable the display of errors to users on your production installation settings.

[SiteSettings]
# If defaultpage is used, the DefaultPage will be shown when an error occurred
# Default
## ErrorHandler=displayerror
ErrorHandler=defaultpage
DefaultPage=/content/view/full/2/

hth

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Monday 19 March 2007 7:07:43 am

Well I could not find any documentation on error.ini @ <i>http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/error_ini</i>

Still, please review your error.ini stock settings as there are a number of useful setting which you can use to more closely achieve the behavior your looking for .. <i>http://pubsvn.ez.no/nextgen/trunk/settings/error.ini</i>

<i>//kracker

Kottonmouth Kings-Joint Venture-07-Put It Down (Vaporized Remix feat. Cypress Hill)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Michael Kress

Monday 19 March 2007 9:35:13 am

whoops, that's right, I used the interface to edit the ini file. Looking closely at the file shows me that there's lot's of comments in the file itself.
Thanks
Michael

Michael Kress

Saturday 31 March 2007 5:43:56 pm

Hi, I've got an error page now. It's working perfectly, but how can I prevent the search module from displaying results from my page named /error_404 ? Is there any black list that tells the search module what files not to treat?

I can prevent being searched by putting the page on "Hidden" but then I can't display the page for anonymous users.

Thanks
Michael

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:30:51
Script start
Timing: Jan 31 2025 01:30:51
Module start 'layout'
Timing: Jan 31 2025 01:30:51
Module start 'content'
Timing: Jan 31 2025 01:30:51
Module end 'content'
Timing: Jan 31 2025 01:30:51
Script end

Main resources:

Total runtime0.0294 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.2578151.2266
Module start 'layout' 0.00660.0046 739.4844220.7188
Module start 'content' 0.01120.0162 960.20311,001.9297
Module end 'content' 0.02740.0019 1,962.132833.9922
Script end 0.0293  1,996.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003010.3325140.0002
Check MTime0.00113.9031140.0001
Mysql Total
Database connection0.00124.092910.0012
Mysqli_queries0.00289.657530.0009
Looping result0.00000.074610.0000
Template Total0.00155.010.0015
Template load0.00123.923410.0012
Template processing0.00031.044910.0003
Override
Cache load0.00072.395710.0007
General
dbfile0.00030.959780.0000
String conversion0.00000.026840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs