“Deprecated: Using php-function “trim” as a modifier is deprecated”
I get this message. What does it mean and what can I do about it?
Hi @gdlenne,
Could you give some additional context - where are you seeing the message displayed (e.g. on the site itself,in your PHP. error logs?)
-roger
PKP Team
It is in the head of the site it self.
I have put “on” config.inc.
; Display an error message when something goes wrong.
display_errors = On
I have also just installed 3.4.0.4 and all seems to work fine
Except the error message in the header
Hi @gdlenne,
Can you clarify? This is no longer working for you, despite having installed 3.4.0-4? Perhaps you could send a screenshot of the error?
-Roger
PKP Team
I have deleted the history better and now the error message does not come up anymore.
Sorry that I have reacted perhaps a little unnecessarily.
Thank You for Your respons.
Now I was a little too fast again. The error warning comes up at the top of the middle section (not the head) when I click on a journal:
Deprecated : Using php-function “array_values” as a modifier is deprecated and will be removed in a future release. Use Smarty::registerPlugin to explicitly register a custom modifier. in /home/httpd/vhosts/mypage.se/httpdocs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_private_modifier.php on line 114
Hi @gdlenne,
Thanks for the additional clarification. Not totally sure about what these messages might apply, but I’ll see if one of our team members can comment when available.
-Roger
PKP Team
Hi @gdlenne,
This is just a warning that appears due to code appearing in a couple of the theme plugins we maintain, and you can ignore it. But I’ve added a change to resolve it; if you like, you can apply the following patches depending on your version of OJS/OMP/OPS:
- OJS/OMP/OPS 3.3.0-x: Add array_values to Smarty function list · pkp/pkp-lib@be6817d · GitHub
- OJS/OMP/OPS 3.4.0-x: Add array_values to Smarty function list · pkp/pkp-lib@2846e35 · GitHub
Regards,
Alec Smecher
Public Knowledge Project Team