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
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
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
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
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
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
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.
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?
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.
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.
Hi! I am from 2020! 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!