From 8bad857edb382b9a9af7100a62ac6a62653bfe9c Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Wed, 17 Nov 2021 09:26:13 +0100 Subject: [PATCH] Modified the exception and error messages so that they display nicely within the modal and on standalone pages --- application/views/errors/html/error_404.php | 83 ++++++++++--------- application/views/errors/html/error_db.php | 83 ++++++++++--------- .../views/errors/html/error_exception.php | 58 +++++++++++-- .../views/errors/html/error_general.php | 83 ++++++++++--------- application/views/errors/html/error_php.php | 57 +++++++++++-- 5 files changed, 237 insertions(+), 127 deletions(-) diff --git a/application/views/errors/html/error_404.php b/application/views/errors/html/error_404.php index db669908..6df3688b 100644 --- a/application/views/errors/html/error_404.php +++ b/application/views/errors/html/error_404.php @@ -1,48 +1,46 @@ + + - + - 404 Page Not Found - - -
-

+ +
+

+ +

+ + +

+ + Powered by + Easy!Appointments + +

diff --git a/application/views/errors/html/error_db.php b/application/views/errors/html/error_db.php index 38b6c998..c389f6d6 100644 --- a/application/views/errors/html/error_db.php +++ b/application/views/errors/html/error_db.php @@ -1,48 +1,46 @@ + + - + - Database Error - - -
-

+ +
+

+ +

+ + +

+ + Powered by + Easy!Appointments + +

diff --git a/application/views/errors/html/error_exception.php b/application/views/errors/html/error_exception.php index 45112efb..91648b91 100644 --- a/application/views/errors/html/error_exception.php +++ b/application/views/errors/html/error_exception.php @@ -1,17 +1,61 @@ -
+ -

An uncaught Exception was encountered

+
-

Type:

-

Message:

-

Filename: getFile() ?>

-

Line Number: getLine() ?>

+

+ An uncaught Exception was encountered +

+ +
+ Type +
+ +

+ +

+ +
+ Message +
+ +

+ +

+ +
+ Filename +
+ +

+ getFile() ?> +

+ +
+ Line Number +
+ +

+ getLine() ?> +

-

Backtrace:

+
+ Backtrace +
getTrace() as $error): ?> diff --git a/application/views/errors/html/error_general.php b/application/views/errors/html/error_general.php index e477b493..70af3c87 100644 --- a/application/views/errors/html/error_general.php +++ b/application/views/errors/html/error_general.php @@ -1,48 +1,46 @@ + + - + - Error - - -
-

+ +
+

+ +

+ + +

+ + Powered by + Easy!Appointments + +

diff --git a/application/views/errors/html/error_php.php b/application/views/errors/html/error_php.php index dd2c3601..a3af58f4 100644 --- a/application/views/errors/html/error_php.php +++ b/application/views/errors/html/error_php.php @@ -1,8 +1,53 @@ -
-

A PHP Error was encountered

+ -

Severity:

-

Message:

-

Filename:

-

Line Number:

+
+ +

+ A PHP Error was encountered +

+ +
+ Severity +
+ +

+ +

+ +
+ Message +
+ +

+ +

+ +
+ Filename +
+ +

+ +

+ +
+ Line Number +
+ +

+ +