You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Craft is unable to make a connection to the database or the database contents are emptied/being imported from scratch (causing a 500/503 error) the custom error templates are not rendered.
When using a hosting provider with the ability to restore a database backup (Servd is one such host) the database is emptied and then the backup is imported to take its place.
During this time, even with a 500.twig, 503.twig, offline.twig, and error.twig none of these templates will be shown during this process. Instead you receive (what seems to be) Yii's general error message:
An internal server error occurred.
Steps to reproduce
Create an error.twig template
Set invalid database credentials
Disable dev mode
Visit site and see that the error.twig template is not rendered
Expected behavior
The error.twig template should display
Actual behavior
A general "An internal server error occurred." is shown
Craft CMS version
3.7.x (and 4.x)
PHP version
8.0.22
Operating system and version
Darwin 21.6.0
Database type and version
MySQL 5.7.38
Image driver and version
GD 8.0.22
Installed plugins and versions
None
The text was updated successfully, but these errors were encountered:
What happened?
Description
When Craft is unable to make a connection to the database or the database contents are emptied/being imported from scratch (causing a 500/503 error) the custom error templates are not rendered.
When using a hosting provider with the ability to restore a database backup (Servd is one such host) the database is emptied and then the backup is imported to take its place.
During this time, even with a
500.twig
,503.twig
,offline.twig
, anderror.twig
none of these templates will be shown during this process. Instead you receive (what seems to be) Yii's general error message:Steps to reproduce
error.twig
templateerror.twig
template is not renderedExpected behavior
The
error.twig
template should displayActual behavior
A general "An internal server error occurred." is shown
Craft CMS version
3.7.x (and 4.x)
PHP version
8.0.22
Operating system and version
Darwin 21.6.0
Database type and version
MySQL 5.7.38
Image driver and version
GD 8.0.22
Installed plugins and versions
None
The text was updated successfully, but these errors were encountered: