Deprecated: Using php-function "trim" as a modifier is deprecated

“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?)

PKP Team

It is in the head of the site it self.
I have put “on”
; Display an error message when something goes wrong.
display_errors = On

I have also just installed and all seems to work fine :smiley:


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?

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. :slightly_smiling_face:

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

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:

Alec Smecher
Public Knowledge Project Team