Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function password_verify() #1

Closed
mudris opened this issue Jan 1, 2017 · 6 comments
Closed

Call to undefined function password_verify() #1

mudris opened this issue Jan 1, 2017 · 6 comments

Comments

@mudris
Copy link

mudris commented Jan 1, 2017

After fresh install have PHP error
PHP Fatal error: Call to undefined function password_verify() in.... cias_helper.php on line 46

@kishor10d
Copy link
Owner

Please check your php version.
To work password_verify(), you need (PHP 5 >= 5.5.0, PHP 7).

Documentation : http://php.net/manual/en/function.password-verify.php

@priti321
Copy link

priti321 commented Sep 9, 2017

I also having same problem.
previously i have php version 5.4. i'm changed it to 5.6.
but when we enter correct login details it also shows mismatch error.

@kishor10d
Copy link
Owner

Can you please update the comment with error?

If your database don't have such password then please first generate the password using following script. Then, paste that password to your password field in user table.

<?php
if(!function_exists('getHashedPassword'))
{
    function getHashedPassword($plainPassword)
    {
        return password_hash($plainPassword, PASSWORD_DEFAULT);
    }
}
echo getHashedPassword("codeinsect");
?>

You will get hashed password of codeinsect. Paste that into the user table and try to login with your email and password - codeinsect

@sibbu2005
Copy link

yo :)

@ghost
Copy link

ghost commented Mar 24, 2018

hello, I am trying to modifying the code in such way that a user can register himself in the system.. I have made a link just after forgot password and created a corresponding method in the controller class..however it is showing me the following error:
Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'

Filename: core/CodeIgniter.php

Line Number: 532

Backtrace:

File: C:\xampp\htdocs\DUSPORTS2\DUSPORTS\DUSPORTS\index.php
Line: 315
Function: require_once

@GetItBac92
Copy link

hello, I am trying to modifying the code in such way that a user can register himself in the system.. I have made a link just after forgot password and created a corresponding method in the controller class..however it is showing me the following error:
Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'

Filename: core/CodeIgniter.php

Line Number: 532

Backtrace:

File: C:\xampp\htdocs\DUSPORTS2\DUSPORTS\DUSPORTS\index.php
Line: 315
Function: require_once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants