Fatal error: Call to undefined function random_int() in … pluggable.php
-
I’m trying to log in to my wordpress site, but I’m getting the below error after entering the password.
?>
Fatal error: Call to undefined function random_int() in D:\xxx.co.uk\wwwroot\wp-includes\pluggable.php on line 2146The relevant lines are below, line 2146 is $val = random_int( $_min, $_max );
Any ideas how to fix it?
// wp_rand() can accept arguments in either order, PHP cannot.
$_max = max( $min, $_max );
$_min = min( $min, $_max );
$val = random_int( $_min, $_max );
if ( false !== $val ) {
return absint( $val );
} else {
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error: Call to undefined function random_int() in … pluggable.php’ is closed to new replies.