OJS 3 Can't Login

Hi @Oneill381,

Given the fact that at least two of you have encountered the same problem, and the password hash of 0 in the database is obviously wrong, I’m wondering if we can track down the problem rather than working around it with a bit of SQL. Can anyone summarize the conditions that led to the password hash being set to 0? I haven’t been able to replicate this locally.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher
I have installed OJS 2.4.8.1, http://jurnalbeta.com/index.php/BETA, and registered as user
I can directly login without username and password invalid problem
I installed it on the same hosting as OJS 3

How is this login problem? anyway to resolve this?

Hi all,

I haven’t been able to duplicate the problem locally, so I suspect it’s somehow related to your hosting platform. If anyone can clarify a set of steps that lead to a 0 being stored in the users.password column of the database, I can investigate further.

Regards,
Alec Smecher
Public Knowledge Project Team

Since I am just an editor, I think I need a hint or further reading how to do it. Or anybody in this forum can do a favour for checking the steps

Hi @kawahyu,

Are you able to recreate this problem simply by installing OJS on your hosting provider (i.e. the credentials on the administration form immediately don’t work upon trying to login)? If that’s the case, if you’re willing to provide me temporarily with credentials to access your hosting provider, I could take a look.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi all,

This turned out to be causef by a version of PHP that was too old for the password hashing library we use. Make sure your PHP meets the system requirements in docs/README.

Regards,
Alec Smecher
Public Knowledge Project Team

As @asmecher said, it is about old version of PHP so the registered users cannot login in OJS 3. I have switched my shared hosting platform which supports newer version. No problems for login

Thank you all

Hi @asmecher on the system requirement page on the website, it states that you needs php 5.3.x, we have 5.3.3, and at least MySQL 4.1, we have 5.6.19. Seems like we meet the requirments, so I’m not sure why we would’ve had this issue

Hi @Oneill381,

OJS 3.0 requires specifically PHP 5.3.7 or newer – I’ve updated the download page to reflect that. See also the documentation included in each release, which is more detailed than the download page. It’s available in docs/README.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

We have PHP 5.3.3 installed also. I initially couldn’t login with admin either. I tried resetting the password by clicking “Reset Password” button. I was able to reset password and log in then.

There are tight server dependencies between the PHP version and OS and security packages that we cannot easily upgrade PHP. Are you aware of any other feature that might not work with 5.3.3?

I had upgraded from 2.4.6 to 3.0.1 using an existing database.

Regards
Ghazal

Hi @salehig,

As far as I’m aware, it’s only the password-compat library that’s going to cause problems with PHP < 5.3.7.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello,

I am installing to OJS 3 in a web hosting shared with PHP 5.3, I trying to modify the script to create and validate the user password with the password-compat library.

Somebody knows the path to source code to change it?

Thanks

Hi @Elias_Cisneros,

Rather than modifying OJS to work with OJS < 5.3.7, I would strongly suggest using a hosting environment that’s PHP 5.6 or newer. OJS 3.1 will most likely boost PHP requirements to PHP 5.6+. PHP 5.3 is at end-of-life according to Zend (who maintains it).

Regards,
Alec Smecher
Public Knowledge Project Team

My version of php is 5.6 on a shared hosting but I am still having the same problem. Even the SQL update statement did not work as well. My version of OJS is 2.4.8

Please Is there anyone that can help me with this problem I have exhausted my research options. Should I deploy another OJS but I am worried that the issue will re-occur again since this seems to be and issue with the OJS core framework.

Hi @Yugene,

I followed up on your other post at Can't login to OJS. It’s better to just post in one place – otherwise the forum gets messy.

Regards,
Alec Smecher
Public Knowledge Project Team

Alright. Will do next time. I actually posted that first but when I did not
get any response after some days, I decided to send you personal message.
Thank once more.

this morning i try to login to ojs via smartphone, my user and password are correct but ojs just stay on login form. bellow are the error log

[Fri Apr 13 00:09:46.849635 2018] [proxy_fcgi:error] [pid 11144] [client 54.36.148.53:25180] AH01071: Got error ‘PHP message: ojs2: 404 Not Found\n’
[Fri Apr 13 06:18:35.212862 2018] [proxy_fcgi:error] [pid 11102] [client 54.36.148.28:20398] AH01071: Got error ‘PHP message: ojs2: 404 Not Found\n’
[Fri Apr 13 06:48:36.626609 2018] [proxy_fcgi:error] [pid 29470] [client 54.36.148.43:16112] AH01071: Got error ‘PHP message: ojs2: 404 Not Found\n’
[Fri Apr 13 07:02:31.568963 2018] [proxy_fcgi:error] [pid 29477] [client 54.36.148.69:27086] AH01071: Got error ‘PHP message: ojs2: 404 Not Found\n’
[Fri Apr 13 07:07:25.047020 2018] [proxy_fcgi:error] [pid 29615] [client 54.165.90.203:43088] AH01071: Got error ‘PHP message: PHP Warning: Smarty error: unable to read resource: “file:0/plugins/generic/usageStats/templates/outputFrontend.tpl” in /var/www/clients/client1/web9/web/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1094\n’

Hi! I am from 2020! :rofl: And I faced the same problem. I’ve found a solution: You should erase cookies from your browser history and then You will be able to authenticate. Bye! :innocent: