Admin login issue

Hi there,

I have an issue related to admin/user loginwhich stopped working without any plugin install/upgrade or modification (at least this is what I know since the system is operated by a friend).

Code version: 2.4.8.0
Database version: 2.4.8.0
Latest version: 3.1.0.1

Tried everything mentioned in forums (switch between encryption modes, manually running the pass change in php myadmin, changed cookie). This does not solve the problem. The only error displayed in error_log is below:

[07-Jan-2018 09:56:51 Europe/Bucharest] ojs2 has produced an error
Message: USER NOTICE: Deprecated function.
In file: /home/bhpj/public_html/lib/pkp/classes/user/PKPUserDAO.inc.php
At line: 60
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: Apache
DB Driver: mysql
DB server version: 5.5.58-cll
[07-Jan-2018 09:56:51 Europe/Bucharest] ojs2 has produced an error
Message: WARNING: Cannot modify header information - headers already sent by (output started at /home/bhpj/public_html/lib/pkp/classes/core/PKPApplication.inc.php:381)
In file: /home/bhpj/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php
At line: 340
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: Apache
DB Driver: mysql
DB server version: 5.5.58-cll
[07-Jan-2018 09:56:51 Europe/Bucharest] ojs2 has produced an error
Message: WARNING: Cannot modify header information - headers already sent by (output started at /home/bhpj/public_html/lib/pkp/classes/core/PKPApplication.inc.php:381)
In file: /home/bhpj/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php
At line: 343
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: Apache
DB Driver: mysql
DB server version: 5.5.58-cll
[07-Jan-2018 09:58:35 Europe/Bucharest] ojs2 has produced an error
Message: USER NOTICE: Deprecated function.
In file: /home/bhpj/public_html/lib/pkp/classes/user/PKPUserDAO.inc.php
At line: 60
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: Apache
DB Driver: mysql
DB server version: 5.5.58-cll
[07-Jan-2018 09:58:35 Europe/Bucharest] ojs2 has produced an error
Message: WARNING: Cannot modify header information - headers already sent by (output started at /home/bhpj/public_html/lib/pkp/classes/core/PKPApplication.inc.php:381)
In file: /home/bhpj/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php
At line: 340
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: Apache
DB Driver: mysql
DB server version: 5.5.58-cll
[07-Jan-2018 09:58:35 Europe/Bucharest] ojs2 has produced an error
Message: WARNING: Cannot modify header information - headers already sent by (output started at /home/bhpj/public_html/lib/pkp/classes/core/PKPApplication.inc.php:381)
In file: /home/bhpj/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php
At line: 343
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.4.45
Apache Version: Apache
DB Driver: mysql
DB server version: 5.5.58-cll

apache logs
89.136.123.47 - - [07/Jan/2018:10:51:56 +0200] “GET /js/statistics/ReportGeneratorFormHandler.js HTTP/1.1” 200 18625 “http://.com/index.php/index/login/signIn" “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299”
89.136.123.47 - - [07/Jan/2018:10:51:56 +0200] “GET /lib/pkp/js/lib/jquery/plugins/validate/jquery.validate.js HTTP/1.1” 200 36526 "http://
.com/index.php/index/login/signIn” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299”

I don’t know where to look further so any help is appreciated.

Thank you.
Catalin

I would strongly suggest to upgrade PHP to at least 5.6.32.
As far as I know at least one library requires PHP 5.6.X.
Thanks

Hi @romedchim,

I would suggest setting PHP up to direct error and warning messages to the log, rather than to the browser. When messages are directed to the browser it interferes with HTTP headers, including setting cookies as part of the login process. (Plus it’s ugly.)

Regards,
Alec Smecher
Public Knowledge Project Team

Thank you for your answers.

Switched to php 5.6. without effect.

I encountered such issue in some journals and solution was usually based on one or more solutions:

  1. someone changed permsissions of folders that are restrictive for OJS so OJS cannot work properly, change of permissions on needed values solved problem
  2. it was needed to empty cache
  3. OJS was not installed/upgraded properly. Fresh install/upgraded solved problem
  4. PHP is below 5.6
  5. someone tried manually to change users in databse and did not do it properly

Please check does some of above mentioned cases is validfor your situation.

1 Like

Hello,

Thank you very much for the info.

I managed to make the problem disappear by moving the account on another server (with php 5.4.). Therefore, I can only presume that the issue was related to a recent upgrade of CPanel software we use for server management.

Thank you again for the detailed answer.

Hello,
Please try to upgrade to PHP 5.6.32 since version PHP 5.5 and below are obsolete and may have serious security issues which can jeopardize your server.