[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 #?ini charset="iso-8859-1"? 2 # eZ publish configuration file for error handling 3 # 4 # NOTE: It is not recommended to edit these files directly, instead 5 # a file in override should be created for setting the 6 # values that is required for your site. Either create 7 # a file called settings/override/error.ini.append or 8 # settings/override/error.ini.append.php for more security 9 # in non-virtualhost modes (the .php file may already be present 10 # and can be used for this purpose). 11 12 # The following error codes for kernel is currently defined 13 # 1 - Access denied 14 # 2 - Object not found 15 # 3 - Object not available 16 # 20 - Module not found 17 # 21 - Module view not found 18 # 22 - Module or view disabled 19 # 50 - No DB connection 20 21 # Global error settings which are used for all error types 22 # A specific error type group is defined with ErrorSettings followed 23 # by a - (dash) and the error type name, e.g. ErrorSettting-kernel 24 [ErrorSettings] 25 # Which handler to use, possible handlers are: 26 # displayerror - Displays a text explaining the error 27 # redirect - Redirect to a specific url 28 # rerun - Rerun a module/view on the page, specified by a url 29 # embed - Run a module/view and embed the results on the 30 # same page used in displayerror 31 DefaultErrorHandler=displayerror 32 DefaultRedirectURL=/content/view/full/2 33 DefaultRerunURL=/content/view/full/2 34 DefaultEmbedURL=/user/login 35 36 # Error handling for kernel errors 37 [ErrorSettings-kernel] 38 # A list of error codes and which handler to use for it 39 # Overrides DefaultErrorHandler 40 # Example: 41 # What to do when a module does not exists, use either displayerror or redirect 42 # ErrorHandler[20]=displayerror 43 ErrorHandler[] 44 # A list of error codes and the url for redirection. 45 # Redirection tells the browser to choose another url for display. 46 # Overrides DefaultRedirectURL 47 # Example: 48 # Redirect to user/login if access was denied 49 # RedirectURL[1]=/user/login 50 RedirectURL[] 51 # A list of error codes and the url for rerunning. 52 # Rerunning means executing another module and view 53 # as though that module was specified in the browser url. 54 # Overrides DefaultRerunURL 55 # Example: 56 # Rerun user/login if access was denied 57 # RerunURL[1]=/user/login 58 RerunURL[] 59 # A list of error codes and the url for embedding. 60 # Embedding means running the module as in rerun but 61 # the result of the module is sent to the error template 62 # and embedded. 63 # Overrides DefaultEmbedURL 64 # Example: 65 # Embed user/login if access was denied 66 # EmbedURL[1]=/user/login 67 EmbedURL[] 68 69 # Set access denied to embed login 70 ErrorHandler[1]=embed 71 EmbedURL[1]=/user/login 72 73 # Defines the HTTP error code to use for the specified eZ publish error code. 74 # The definition is HTTPError[eZ publish error code]=HTTP error code. 75 # The HTTP error code must be defined with a HTTPError-code group as seen below. 76 # Example: 77 # Add 404 for module not found error 78 # HTTPError[20]=404 79 HTTPError[2]=404 80 HTTPError[3]=404 81 # 301 = moved permanently 82 HTTPError[4]=301 83 HTTPError[20]=404 84 HTTPError[21]=404 85 HTTPError[22]=404 86 87 # Error handling for shop errors 88 # See the kernel errors for details on usage 89 [ErrorSettings-shop] 90 ErrorHandler[] 91 RedirectURL[] 92 RerunURL[] 93 EmbedURL[] 94 HTTPError[1]=404 95 96 # Definition for the HTTP error code 404. 97 # It's possible to specify more error codes by creating a group called 98 # HTTPError followed by a - (dash) and the HTTP error code. 99 # The group most contain the HTTPName variable, if not the error code 100 # is not issed to the browser. 101 # Note: The HTTPName must be contain the correct string for the 102 # specific HTTP error code. 103 [HTTPError-404] 104 HTTPName=Not Found 105 106 # Definition of the HTTP error code 301 107 # URL moved permanently 108 [HTTPError-301] 109 HTTPName=Moved Permanently
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |