• 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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, jeeguiguren, & welcome to the WordPress support forum.

    You don’t give us a site url, which can often be helpful in these types of situations. Please try deactivating all plugins again, as well as your theme, if it is not a default theme, & let’s see if that works.

    Please let us know how you fare, won’t you?

    Thread Starter Jeeguiguren

    (@jeeguiguren)

    Hello Jackie,

    Thats right! I forgot. Cheers for reminding me!

    Here is the website

    I tried using phpMyAdmin yet again in order to change the theme and deactivate plugins, yet it still doesnt work.

    The page works perfectly, I just cannot access the backend.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to undefined function – pluggable.php’ is closed to new replies.