I just made an OJS upgrade from ver. 2.3.6 to 2.4.8 and i noticed deprecated function errors in log files. So, when “deprecation_warnings” are turned on in config.inc.php i get something like this when i do a logout as some user (also happening in other cases that deal with user functions)
ojs2 has produced an error Message: USER NOTICE: Deprecated function. In file: /var/www/ojs/lib/pkp/classes/user/PKPUserDAO.inc.php At line: 60 Stacktrace: Server info: OS: Linux PHP Version: 5.6.20-0+deb8u1 Apache Version: Apache/2.4.10 (Debian) DB Driver: mysql DB server version: 5.5.49-0+deb8u1-log
So, what happens is that OJS calls function “getUser” that seems to be deprecated. Can anybody tell me why is this happening and what should I do? Btw. i’m using PHP 5.6.20, that has also been upgraded from 5.3.x. Thx.
The deprecation warnings are generally useful for developers, but not for administrators or end users. If you are not doing OJS development yourself, this option can be turned off in your configuration.