Fatal error: Call to undefined function – pluggable.php
-
I am currently getting the following error when trying to access the admin panel:
Fatal error: Call to undefined function random_int() in /home2/monappar/public_html/wp-includes/pluggable.php on line 2196
I opened pluggable.php and looked for line 2196 and this is the code within that line:
$val = random_int( $_min, $_max );
And here is is within a few lines of code:
// Use PHP’s CSPRNG, or a compatible method
static $use_random_int_functionality = true;
if ( $use_random_int_functionality ) {
try {
$_max = ( 0 != $max ) ? $max : $max_random_number;
// wp_rand() can accept arguements 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 {
$use_random_int_functionality = false;
}
} catch ( Error $e ) {
$use_random_int_functionality = false;
} catch ( Exception $e ) {
$use_random_int_functionality = false;
}
}I deactivated all the plugins by using phpMyAdmin yet that didn’t do anything.
Cheers in advance for any insight on this error!
- The topic ‘Fatal error: Call to undefined function – pluggable.php’ is closed to new replies.