From 4b27fa611e0b4151f5d460c23a7d3397707f7f24 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:06:19 +0000 Subject: [PATCH 1/7] add something to the FAQ to help people find error messages --- DOCUMENTS/FAQ.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/DOCUMENTS/FAQ.txt b/DOCUMENTS/FAQ.txt index 9d1f8952..fe806814 100644 --- a/DOCUMENTS/FAQ.txt +++ b/DOCUMENTS/FAQ.txt @@ -34,3 +34,24 @@ Frequently Asked Questions: if it doesn't for you, try editing $CONF['emailcheck_resolve_domain'] to 'NO' in config.inc.php and try again. + +5) Postfixadmin is telling me an error occurred, and I should look at the server error logs for more details. Where do I look? + + - This depends on your server setup (distribution, how PHP is executed etc). + + - Postfixadmin typically calls PHP's error_log() function to log some detail about errors. This may write to : + + * /var/log/syslog + * /var/log/apache2/error.log + * /var/log/php7.4-fpm.log (or equivalent for your PHP version) + * or somewhere you may have manually configured. + + You can change where it logs by adding something like : + +```PHP + ini_set('error_log', '/tmp/postfixadmin.log'); // example only +``` + + into config.local.php, or you can change your PHP configuration. + + See also: https://stackoverflow.com/questions/5127838/where-does-php-store-the-error-log-php5-apache-fastcgi-cpanel From c61939ce5c745461a7cf78d3ccc6438e6c6f76e6 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:07:06 +0000 Subject: [PATCH 2/7] bootstrap 3.x does not have a .ml-x or .mr-x class, so create something for now so i can move buttons apart a little --- public/css/bootstrap.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/css/bootstrap.css b/public/css/bootstrap.css index 9bdf518a..86b790c4 100644 --- a/public/css/bootstrap.css +++ b/public/css/bootstrap.css @@ -20,6 +20,13 @@ body { background-color: #f5f5f5; } +.mr { + margin-right: 5px; +} + +.ml { + margin-left: 5px; +} /* Custom page CSS -------------------------------------------------- */ From ecb114d7c562fe9ef58108360c09fe9b4c1e4e0d Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:10:33 +0000 Subject: [PATCH 3/7] fix users/edit-forward to not include space - see https://github.com/postfixadmin/postfixadmin/issues/442 --- templates/users_edit-alias.tpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/templates/users_edit-alias.tpl b/templates/users_edit-alias.tpl index 1d267605..714bb351 100644 --- a/templates/users_edit-alias.tpl +++ b/templates/users_edit-alias.tpl @@ -11,11 +11,8 @@
- +
From 30f47f7480952d0b943c1856b2ff5bee7c13a295 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:20:44 +0000 Subject: [PATCH 4/7] fix labels not showing on password-change and password-recover pages; remove table layout; update bootstrap stuff --- templates/password-change.tpl | 63 ++++++++++++++++++---------------- templates/password-recover.tpl | 47 +++++++++++-------------- 2 files changed, 54 insertions(+), 56 deletions(-) diff --git a/templates/password-change.tpl b/templates/password-change.tpl index f280605a..8c01f4b3 100644 --- a/templates/password-change.tpl +++ b/templates/password-change.tpl @@ -9,32 +9,37 @@
-
-
- - - - - - - - - - - - - - - - - - - - - - - -

{$PALANG.pPassword_welcome}

{$PALANG.pLogin_username} :
{$PALANG.pPassword_password_code} :
{$PALANG.pPassword_password} :
{$PALANG.pPassword_password2} :
-
-
+ +

{$PALANG.pPassword_welcome}

+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ diff --git a/templates/password-recover.tpl b/templates/password-recover.tpl index 1afa5da4..920a5723 100644 --- a/templates/password-recover.tpl +++ b/templates/password-recover.tpl @@ -9,30 +9,23 @@ - -
-
- - - - - - - - - - - - -
{$PALANG.pPassword_recovery_title}
  - -
-
- {literal} - - {/literal} -
+ +

{$PALANG.pPassword_recovery_title}

+ +
+ +
+ + + + +
+ + + +
+ + From 51db965e66dfc6b1f953ebf177805cff550c1800 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:21:24 +0000 Subject: [PATCH 5/7] change to use an A link for cancel, change to + From 9d282d3320bbe29176a89e3ad8ca800104ec2123 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:22:58 +0000 Subject: [PATCH 6/7] space buttons in toolbar --- templates/vacation.tpl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/vacation.tpl b/templates/vacation.tpl index ef8ef8bb..654522ea 100644 --- a/templates/vacation.tpl +++ b/templates/vacation.tpl @@ -62,14 +62,15 @@ From ead6daa05c9344f7648bb666f82f035cfc4eca39 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 26 Jan 2021 19:23:48 +0000 Subject: [PATCH 7/7] update templates - use A link for cancel buttons, use button for submit, space buttons --- templates/login.tpl | 40 +++++++++++++++------------------- templates/users_edit-alias.tpl | 11 ++++++---- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/templates/login.tpl b/templates/login.tpl index 090dadf9..a6e7ad21 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -10,37 +10,37 @@ -
-

{if $logintype=='admin'}{$PALANG.pLogin_welcome} - {else}{$PALANG.pUsersLogin_welcome} - {/if}

+
+ +

{if $logintype=='admin'}{$PALANG.pLogin_welcome}{else}{$PALANG.pUsersLogin_welcome}{/if}

+
+ {if $logintype == 'admin'} @@ -50,12 +50,8 @@
{/if}
- {literal} - - {/literal} +
diff --git a/templates/users_edit-alias.tpl b/templates/users_edit-alias.tpl index 714bb351..e25dfa5c 100644 --- a/templates/users_edit-alias.tpl +++ b/templates/users_edit-alias.tpl @@ -36,12 +36,15 @@