-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#112: Fixing deprecated error messages by upgrading to smarty4. #151
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ You need to install these prerequisites: | |
* Apache or another web server | ||
* php | ||
* php-ldap | ||
* Smarty (version 3) | ||
* Smarty (version 4) | ||
|
||
Debian / Ubuntu | ||
--------------- | ||
|
@@ -54,14 +54,14 @@ You are now ready to install: | |
|
||
.. prompt:: bash # | ||
|
||
apt install service-desk smarty3 | ||
apt install service-desk smarty4 | ||
|
||
CentOS / RedHat | ||
--------------- | ||
|
||
.. warning:: You may need to install first the package `php-Smarty`_ which is not in official repositories. | ||
.. warning:: You may need to install first the package `smarty4` which is not in official repositories. | ||
|
||
.. _php-Smarty: https://pkgs.org/download/php-Smarty | ||
.. _smarty4: https://pkgs.org/download/smarty4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, you are in CentOS / RedHat section, and unfortunately, https://pkgs.org/download/smarty4 is only available for debian packages. |
||
|
||
Configure the yum repository: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ | |
} | ||
|
||
# Lock | ||
$pwdLockout = strtolower($ppolicy_entry[0]['pwdlockout'][0]) == "true" ? true : false; | ||
$pwdLockout = strtolower(isset($ppolicy_entry[0]['pwdlockout'][0])) == "true" ? true : false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. The value of This value is the one of pwdLockout attribute in LDAP directory Also, please don't mix multiple features/bug fixes in the same commit or pull request. |
||
$pwdLockoutDuration = $ppolicy_entry[0]['pwdlockoutduration'][0]; | ||
$pwdAccountLockedTime = $entry[0]['pwdaccountlockedtime'][0]; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,9 @@ | |
$smarty->setCacheDir($cache_dir); | ||
$smarty->debugging = $smarty_debug; | ||
|
||
# Muting warnings due to PHP 8+ | ||
$smarty->muteUndefinedOrNullWarnings(); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems really interesting, but:
|
||
error_reporting(0); | ||
if ($debug) { | ||
error_reporting(E_ALL); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @abpai94
This won't be possible for now, because smarty4 is not available on RHEL platforms.
Please give a look at this issue I have opened here: #158