‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Page\PageAccessFailureReasons Class Reference

Public Member Functions

string getMessageForReason (string $reasonCode)
 

Public Attributes

const NO_PAGES_FOUND = 'page.database.empty'
 
const PAGE_NOT_FOUND = 'page'
 
const PAGE_ALIAS_NOT_FOUND = 'page.alias'
 
const ROOTLINE_BROKEN = 'page.rootline'
 
const RENDERING_INSTRUCTIONS_NOT_FOUND = 'rendering_instructions'
 
const RENDERING_INSTRUCTIONS_NOT_CONFIGURED = 'rendering_instructions.type'
 
const CACHEHASH_COMPARISON_FAILED = 'cache_hash.comparison'
 
const CACHEHASH_EMPTY = 'cache_hash.empty'
 
const LANGUAGE_NOT_AVAILABLE = 'language'
 
const LANGUAGE_NOT_AVAILABLE_STRICT_MODE = 'language.strict'
 
const LANGUAGE_AND_FALLBACKS_NOT_AVAILABLE = 'language.fallbacks'
 
const LANGUAGE_DEFAULT_NOT_AVAILABLE = 'language.default'
 
const ACCESS_DENIED_GENERAL = 'access'
 
const ACCESS_DENIED_PAGE_NOT_RESOLVED = 'access.page'
 
const ACCESS_DENIED_SUBSECTION_NOT_RESOLVED = 'access.subsection'
 
const ACCESS_DENIED_HOST_PAGE_MISMATCH = 'access.host_mismatch'
 
const ACCESS_DENIED_INVALID_PAGETYPE = 'access.pagetype'
 
const DATABASE_CONNECTION_FAILED = 'system.database'
 

Protected Attributes

string[] $messages
 

Detailed Description

Contains a list of all reasons that TYPO3 internally uses when a page cannot be found/rendered etc. See TypoScriptFrontendController for more details and the usage.

Definition at line 22 of file PageAccessFailureReasons.php.

Member Function Documentation

◆ getMessageForReason()

string TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::getMessageForReason ( string  $reasonCode)
Parameters
string$reasonCode‪a valid reason code (see above)
Returns
‪string

Definition at line 88 of file PageAccessFailureReasons.php.

Member Data Documentation

◆ $messages

string [] TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::$messages
protected
Initial value:
= array(
self::NO_PAGES_FOUND => 'No page on rootlevel found',
self::PAGE_NOT_FOUND => 'The requested page does not exist',
self::PAGE_ALIAS_NOT_FOUND => 'The requested page alias does not exist',
self::RENDERING_INSTRUCTIONS_NOT_FOUND => 'No TypoScript template found',
self::RENDERING_INSTRUCTIONS_NOT_CONFIGURED => 'The page is not configured',
self::CACHEHASH_COMPARISON_FAILED => 'Request parameters could not be validated (&cHash comparison failed)',
self::CACHEHASH_EMPTY => 'Request parameters could not be validated (&cHash empty)',
self::LANGUAGE_NOT_AVAILABLE => 'Page is not available in the requested language',
self::LANGUAGE_NOT_AVAILABLE_STRICT_MODE => 'Page is not available in the requested language (strict)',
self::LANGUAGE_AND_FALLBACKS_NOT_AVAILABLE => 'Page is not available in the requested language (fallbacks did not apply)',
self::LANGUAGE_DEFAULT_NOT_AVAILABLE => 'Page is not available in default language',
self::ACCESS_DENIED_GENERAL => 'The requested page was not accessible',
self::ACCESS_DENIED_PAGE_NOT_RESOLVED => 'ID was not an accessible page',
self::ACCESS_DENIED_SUBSECTION_NOT_RESOLVED => 'Subsection was found and not accessible',
self::ACCESS_DENIED_HOST_PAGE_MISMATCH => 'ID was outside the domain',
self::ACCESS_DENIED_INVALID_PAGETYPE => 'The requested page type cannot be rendered',
self::DATABASE_CONNECTION_FAILED => 'Database Connection failed',
self::ROOTLINE_BROKEN => 'The requested page did not have a proper connection to the tree-root'
)

Labels for the status codes

Definition at line 58 of file PageAccessFailureReasons.php.

◆ ACCESS_DENIED_GENERAL

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::ACCESS_DENIED_GENERAL = 'access'

◆ ACCESS_DENIED_HOST_PAGE_MISMATCH

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::ACCESS_DENIED_HOST_PAGE_MISMATCH = 'access.host_mismatch'

◆ ACCESS_DENIED_INVALID_PAGETYPE

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::ACCESS_DENIED_INVALID_PAGETYPE = 'access.pagetype'

◆ ACCESS_DENIED_PAGE_NOT_RESOLVED

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::ACCESS_DENIED_PAGE_NOT_RESOLVED = 'access.page'

◆ ACCESS_DENIED_SUBSECTION_NOT_RESOLVED

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::ACCESS_DENIED_SUBSECTION_NOT_RESOLVED = 'access.subsection'

◆ CACHEHASH_COMPARISON_FAILED

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::CACHEHASH_COMPARISON_FAILED = 'cache_hash.comparison'

◆ CACHEHASH_EMPTY

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::CACHEHASH_EMPTY = 'cache_hash.empty'

◆ DATABASE_CONNECTION_FAILED

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::DATABASE_CONNECTION_FAILED = 'system.database'

◆ LANGUAGE_AND_FALLBACKS_NOT_AVAILABLE

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::LANGUAGE_AND_FALLBACKS_NOT_AVAILABLE = 'language.fallbacks'

◆ LANGUAGE_DEFAULT_NOT_AVAILABLE

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::LANGUAGE_DEFAULT_NOT_AVAILABLE = 'language.default'

◆ LANGUAGE_NOT_AVAILABLE

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::LANGUAGE_NOT_AVAILABLE = 'language'

◆ LANGUAGE_NOT_AVAILABLE_STRICT_MODE

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::LANGUAGE_NOT_AVAILABLE_STRICT_MODE = 'language.strict'

◆ NO_PAGES_FOUND

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::NO_PAGES_FOUND = 'page.database.empty'

◆ PAGE_ALIAS_NOT_FOUND

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::PAGE_ALIAS_NOT_FOUND = 'page.alias'

◆ PAGE_NOT_FOUND

◆ RENDERING_INSTRUCTIONS_NOT_CONFIGURED

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::RENDERING_INSTRUCTIONS_NOT_CONFIGURED = 'rendering_instructions.type'

◆ RENDERING_INSTRUCTIONS_NOT_FOUND

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::RENDERING_INSTRUCTIONS_NOT_FOUND = 'rendering_instructions'

◆ ROOTLINE_BROKEN

const TYPO3\CMS\Frontend\Page\PageAccessFailureReasons::ROOTLINE_BROKEN = 'page.rootline'