Skip to content
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

Conversation

abpai94
Copy link
Collaborator

@abpai94 abpai94 commented Jul 23, 2024

@abpai94 abpai94 requested a review from coudot July 23, 2024 12:04
@abpai94 abpai94 self-assigned this Jul 23, 2024
@coudot coudot requested a review from davidcoutadeur July 26, 2024 15:12
@coudot coudot added the bug Something isn't working label Jul 26, 2024
@coudot coudot added this to the 0.6 milestone Jul 26, 2024
@coudot coudot linked an issue Jul 26, 2024 that may be closed by this pull request
Copy link

@davidcoutadeur davidcoutadeur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you review, but I don't think we can accept it like because of the lack of availability of smarty4 for now.

@@ -218,7 +218,7 @@

# Smarty
if (!defined("SMARTY")) {
define("SMARTY", "/usr/share/php/smarty3/Smarty.class.php");

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


.. _php-Smarty: https://pkgs.org/download/php-Smarty
.. _smarty4: https://pkgs.org/download/smarty4

Choose a reason for hiding this comment

The 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.

@@ -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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.

The value of $ppolicy_entry[0]['pwdlockout'][0] is TRUE (or FALSE, or nonexistent)

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.

@@ -82,6 +82,9 @@
$smarty->setCacheDir($cache_dir);
$smarty->debugging = $smarty_debug;

# Muting warnings due to PHP 8+
$smarty->muteUndefinedOrNullWarnings();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems really interesting, but:

  • the method is not available on smarty 3, making service-desk crashing
  • on smarty4, we still have a lot of warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove deprecated Smarty elements
3 participants