-
Notifications
You must be signed in to change notification settings - Fork 65
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
deprecation warnings in footer template #258
Comments
@OyvindLGjesdal, what version of OJS are you using, and what version of the health sciences theme? |
3.3.0.17 and a bit behind on the the healthSciences theme 722d2ba I did a fast check in the stable-3.3 branch for both ojs and the theme to see if the section had changed, or the library version for smarty, and it looked likely to me that the bug was also present there. Haven't confirmed. |
@OyvindLGjesdal, can you quickly verify if this change resolves the issue? diff --git a/templates/frontend/components/footer.tpl b/templates/frontend/components/footer.tpl
index 3b3e6f2..126ea2c 100644
--- a/templates/frontend/components/footer.tpl
+++ b/templates/frontend/components/footer.tpl
@@ -33,7 +33,7 @@
</footer><!-- pkp_structure_footer_wrapper -->
{* Load author biography modals if they exist *}
-{if !empty($smarty.capture.authorBiographyModals|trim)}
+{if !empty($smarty.capture.authorBiographyModals|default:""|trim)}
{$smarty.capture.authorBiographyModals}
{/if} |
It removes the previous message and returns a different deprecation message:
Looking at previous issues on the forum and fixes, I guess trim can also be added to https://github.com/pkp/pkp-lib/blob/stable-3_3_0/classes/template/PKPTemplateManager.inc.php#L259 |
@OyvindLGjesdal You're right, thanks -- added here for For 3.4.0, it's pkp/pkp-lib@c91897c; for |
Describe the bug
After upgrading to php 8.2, I see deprecation warning and smarty warning:
refers to
https://github.com/pkp/healthSciences/blob/main/templates/frontend/components/footer.tpl#L36
Would skipping the trim filter make sense (if it exists as whitespace, it will only input whitespace).
I don't know if this is fixed upstream in smarty, but the smarty version used is the same as the in 3.3 stable branch of pkp-lib, which is 0.2 versions behind main. (v4.3.1).
The text was updated successfully, but these errors were encountered: