Project

General

Profile

Actions

Feature #17992

closed

Add pageUnavailable_handling for system problems and maintenance

Added by Jeff Segars almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-01-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

There are already several places in the TYPO3 Core where an HTTP 503 Not Available header is sent in response to major problems rendering the page. This occurs mainly when a database connection is unavailable or there's a serious problem getting the requested page and template. In each of these cases, the 503 header is sent and a specific, but static a error message is displayed.

I would propose that we add an equivalent to pageNotFound_handling for the times when a page is unavailable. This would allow a customized maintenance page to automatically be displayed when problems occur (ie. database goes down) and for the normal site to return immediately when those problems are resolved. I'd also suggest an Install Tool setting to manually turn this maintenance page off and on whenever the site admin is performing maintenance.

I'm attaching an inital version of patch for this. It adds some Install Tool settings to t3lib/config_default.php and mimics the pageNotFound_handling in tslib_fe. There's also a small addition to tslib/index_ts.php that checks if pageUnavailable has been forced after TSFE is created, but before a database connection is attempted.

The one thing this patch does not currently handle is the "Page is being generated" message since there's some additional complexity with it.

(issue imported from #M7150)


Files

pageUnavailable.diff (14.3 KB) pageUnavailable.diff Administrator Admin, 2008-01-21 03:23
pageUnavailable_v3.diff (15.2 KB) pageUnavailable_v3.diff Administrator Admin, 2008-02-29 04:53

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Feature #16617: Custom error pagesClosedChristian Kuhn2006-10-04

Actions
Actions

Also available in: Atom PDF