bbalet / jorani

Leave and Overtime Management System
http://jorani.org/
GNU Affero General Public License v3.0
389 stars 276 forks source link

Errors on login #293

Closed ArisTsevrenis closed 4 years ago

ArisTsevrenis commented 4 years ago

What is the version of Jorani?

0.7 and 1.0

Expected behavior

login without errors

Actual behavior

login with errors: A PHP Error was encountered Severity: Notice

Message: Undefined property: stdClass::$random_hash

Filename: models/Users_model.php

Line Number: 481

A PHP Error was encountered Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home2/martialc/public_html/websites/terahard/Holiday/system/core/Exceptions.php:271)

Filename: helpers/url_helper.php

Line Number: 564

Steps to reproduce the behavior

We migrated our database over in hopes that the error will be fixed but we still are getting it. So it happened before and it's still happening now

bbalet commented 4 years ago

This error means that the table users in your database doesn't have the field random_hash It looks that you did not patch the database by applying sql/patch_to_1.0.0.sql ?

ArisTsevrenis commented 4 years ago

Hi! I am not sure how to apply it, I thought it would check it automatically if I added it in the folder :( But similar errors happened before the update as well

bbalet commented 4 years ago

These patches cannot by run with regular DB user that is generally configured for the production. So you have to do this operation my using an application such as phpmyadmin. The same as you did to create the database: by using the import tool. Patches are not cumulative, so you have to execute them if you are late. For example if you were using Jorani 0.5.0, you have to apply the patches for 0.6.0 and for 1.0.0

Please join the google group and ask your questions there. GitHub issue tab is for declaring bugs only. https://groups.google.com/forum/?hl=en#!forum/jorani