- Issue created by @andras_szilagyi
- First commit to issue fork.
- @saidatom opened merge request.
- 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Please update ticket description and explain the fix.
I have enabled module on D11, next I have updated settings with
`
// Only if you don't use composer.
require_once 'modules/custom/error_page/src/ErrorPageErrorHandler.php';
set_error_handler(['Drupal\error_page\ErrorPageErrorHandler', 'handleError']);
set_exception_handler([
'Drupal\error_page\ErrorPageErrorHandler',
'handleException',
]);
// Log the UUID in the Drupal logs.
$settings['error_page']['uuid'] = TRUE;
`
what generated a fatal error on homepage`
Fatal error: Cannot redeclare _drupal_error_handler_real() (previously declared in /var/www/html/web/core/includes/errors.inc:57) in /var/www/html/web/.../error_page/errors.inc on line 78
` - 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Performed manual tests for D11, enabled error_page_test and visited the following pages:
/error_page_test/exception: simulates an exception.
/error_page_test/fatal_error: simulates a fatal error.
/error_page_test/user_error: simulates a user error.
/error_page_test/php_notice: simulates a PHP notice.Looks fine
Automatically closed - issue fixed for 2 weeks with no activity.