{"id":36428533,"url":"https://github.com/plan2net/sierrha","last_synced_at":"2026-01-11T18:28:16.254Z","repository":{"id":34376739,"uuid":"168538232","full_name":"plan2net/sierrha","owner":"plan2net","description":"Ṣıẹrrḥa - Site Error Handler","archived":false,"fork":false,"pushed_at":"2025-01-08T11:14:40.000Z","size":88,"stargazers_count":5,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-26T19:58:53.757Z","etag":null,"topics":["error-handler","error-handlers","extension","site","typo3"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plan2net.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-01-31T14:27:32.000Z","updated_at":"2024-12-17T12:51:54.000Z","dependencies_parsed_at":"2024-03-07T10:53:36.870Z","dependency_job_id":"b1f8ae64-31bc-4b2b-9984-148f0cf18e9c","html_url":"https://github.com/plan2net/sierrha","commit_stats":{"total_commits":54,"total_committers":6,"mean_commits":9.0,"dds":0.2777777777777778,"last_synced_commit":"a85aedb3cbd285abdf040db1df72b5105508aedf"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/plan2net/sierrha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plan2net%2Fsierrha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plan2net%2Fsierrha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plan2net%2Fsierrha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plan2net%2Fsierrha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plan2net","download_url":"https://codeload.github.com/plan2net/sierrha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plan2net%2Fsierrha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28317704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-handler","error-handlers","extension","site","typo3"],"created_at":"2026-01-11T18:28:15.530Z","updated_at":"2026-01-11T18:28:16.241Z","avatar_url":"https://github.com/plan2net.png","language":"PHP","readme":"# Ṣıẹrrḥa - Site Error Handler\n\nEnhanced error handlers for TYPO3's site error handling system.\n\n## Features\n\n### 404 Not Found Handler\n\n- Displays content from a configurable TYPO3 page or external URL\n- Falls back to standard TYPO3 error layout if content is unavailable\n- Optimized handling for web resources (CSS, JS, fonts, etc.)\n- Bandwidth-saving responses for static resources\n\n### 403 Forbidden Handler\n\n- Redirects unauthenticated users to a configurable login page\n- Optional fallback page for users with insufficient permissions\n- Configurable return URL parameter with marker support\n- Falls back to 404 handler in other cases\n\n## Handlers\n\n### Page Not Found (HTTP Status 404)\n\nDisplays content from a page or external URL.\n\nIf the resource is unavailable or the content is empty, a message in the standard TYPO3 error layout is shown.\n\nWhen the requested URL denotes a web resource (eg a CSS file) only a small response is sent to save bandwidth\n(\"Regular expression for resource file extensions\", see [Extension Manager Configuration][em]).\n\nThe file extensions to be treated by default as web resources:\n\n* css\n* eot, ttf, woff, woff2\n* gif, ico, jpg, jpeg, png, svg, webp\n* js\n* json\n* xml\n\n### Forbidden (HTTP Status 403)\n\nRedirects to a login URL if access to page without a session is not permitted.\n\nIf the user is already logged in, but has no access because of missing group rights he will be optionally redirected to\na fallback page (\"Show Content from Page on Missing Permissions\", see [Site Configuration][site]).\n\nIn any other case a 404 \"Not found\" error is triggered. TYPO3 will invoke the configured error handler.\n\n## Requirements\n\n* TYPO3 13 LTS, PHP 8.2+\n* 404: A page/URL that contains a human-readable \"page not found\" message\n* 403: A URL that performs a login and a redirect to a supplied URL (eg. extension \"felogin\")\n* the web server must be able to reach itself under the configured domain\n\n## Installation\n\nInstall via composer\n\n```sh\ncomposer require plan2net/sierrha\n```\n\n## Extension Manager Configuration\n\n_Regular Expression for Resource File Extensions_:\n\nThis is the default regular expression.\n\n`css|eot|gif|ico|jpe?g|js(?:on)|png|svg|ttf|webp|woff2?|xml`\n\n_Enable Debug Mode_:\n\nIn case of configuration errors a detailed error will be shown when in _debug mode_ or if the HTTP request comes from an\nIP listed in `$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']`. Otherwise, the error will be passed on to be handled by\nTYPO3.\n\n## Site Configuration\n\n### 404 \"not found\"\n\nOn tab \"Error Handling\" create a new handler.\n\n**HTTP Error Status Code:** \"404\"\n**How to handle Errors:** \"PHP Class\"\n\nSave the configuration.\n\n**ErrorHandler Class Target (FQCN):** `Plan2net\\Sierrha\\Error\\StatusNotFoundHandler`\n**Show Content from Page on Not Found:** TYPO3 page or external URL\n\n### 403 \"forbidden\"\n\nOn tab \"Error Handling\" create a new handler.\n\n**HTTP Error Status Code:** \"403\"\n**How to handle Errors:** \"PHP Class\"\n\nSave the configuration.\n\n**ErrorHandler Class Target (FQCN):** `Plan2net\\Sierrha\\Error\\StatusForbiddenHandler`\n**Login Page:** TYPO3 page or external URL\n**Show Content from Page on Missing Permissions:** TYPO3 page or external URL\n**Return Parameter for Login Page URL:** URL query parameter of the login page without leading ? or \u0026\n\n_Note:_ The parameter for the login page used by the extension \"felogin\" is `return_url=###URL###`.\n\n### URL Markers\n\nThe return parameter of the URL supports marker substitution.\n\nMarker | Description\n------ | -----------\n###URL### |current URL (URL encoded)\n###URL_BASE64### | current URL base64 encoded (URL encoded)\n###ISO_639-1### | current language as two letter ISO code (ISO 639-1)\n###IETF_BCP47### | current language as IETF language tag (IETF BCP 47, RFC 5646/4646/3066/1766) aka \"hreflang\"\n\n## Caching\n\nError pages are cached in TYPO3's page cache. For TYPO3 pages (not external URLs), the cache is automatically invalidated when page content changes.\n\n## Changelog\n\n* 0.4.3 TYPO3 CMS 13 and PHP 8.2 compatible release\n* 0.4.2 PHP 8.1 compatible release\n* 0.4.1 Prevent exception when language not available from request\n* 0.4.0\n    * Error pages are cached in TYPO3's page cache\n    * Set as compatible with v11 LTS\n* 0.3.8 Add extension-key to composer.json\n* 0.3.7 Prevent 403 handler from getting caught in a loop\n* 0.3.6 Prevent 404 handler from getting caught in a loop\n* 0.3.5 Don't fetch error page twice\n* 0.3.4 Set as compatible with v10 LTS\n* 0.3.3\n    * Add fallbacks for missing error content\n    * Do not throw exceptions in case of configuration errors by default\n* 0.3.2 Add eot, ttf and woff/woff2 to the list of web resources\n* 0.3.0 Show error page for 404 status; send only a small 404 response for missing web resources\n* 0.2.0 Show error page on missing permission for current login\n* 0.1.0 Redirect to login page\n\n[em]: #extension-manager-configuration\n\n[site]: #site-configuration\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplan2net%2Fsierrha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplan2net%2Fsierrha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplan2net%2Fsierrha/lists"}