Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter CHabte

    (@chabte)

    Got help from a WP troubleshooter on Fiverr (he was great btw). Thankfully the site is back up and running. Here’s the report he sent me:

    ####
    Begin report

    Client send a message that a error occurred after updating WordPress to the latest version.

    ## Details of the error message:

    Warning: require(D:\Hosting\12302316\html/wp-includes/random_compat/random.php) [function.require]: failed to open stream: No such file or directory in D:\Hosting\12302316\html\wp-includes\compat.php on line 338

    Fatal error: require() [function.require]: Failed opening required ‘D:\Hosting\12302316\html/wp-includes/random_compat/random.php’ (include_path=’.;C:\php\pear’) in D:\Hosting\12

    ## Analyses:
    Error message “no such file or directory in .. on line 338”

    – File content compete.php line 338 ->
    // random_int was introduced in PHP 7.0
    if ( ! function_exists( ‘random_int’ ) ) {
    require ABSPATH . WPINC . ‘/random_compat/random.php’;
    }

    # Details error message:
    random_compat offers a set of compatible functions for older versions of PHP, filling in the gap by using other PHP extensions when available. (introduced for PHP7 fallback to older versions)

    # Analyses:
    – System is running on PHP Version <= 5.4
    – Problem must be a reference to a non existing file named random.php
    – File random.php is used for the Random_* Compatibility Library for using the new PHP 7 random_* API in PHP 5 projects.

    – This file is missing on the server. Probable cause: Failed Installation or incomplete installation due to server timeout.

    – Probable justified action: Try uploading new WordPress folder and underlying files to /wp-includes

    # Action:
    – Created a complete backup of WordPress installation Supportasista. Saved to local machine for fallback.
    – Replaced wp-includes and underlying files and folders on server
    – No effect. Error message is persistent.

    ## follow up actions:
    – replace every WordPres file and subfolder except wp-content
    – outcome is positive; Site is fully functioning and running.

    # feedback:
    – Client informed that wp-admin shows a message that the WordPress database needs an upgrade.

    # Action:
    – Updated the WordPress database; received success message from WordPress
    – Site is fully functional and running

    ## Follow up action:
    – Created a complete backup of both the WordPress installation files and the MySQL database, will send these to client for save keeping.

    End report

    Thread Starter CHabte

    (@chabte)

    Hi Samuel,

    I’m not sure what file your referring to? Do you mean this: D:\Hosting\12302316\html/wp-includes/random_compat/random.php ?

    If so, I wouldn’t know where to look specifically. I did login to Godaddy, and saw that there’s a folder called update (under wp-content) that was modified today. When I clicked on it, the folder inside of it is called wordpress-441.tmp.

    Anyway, I will try to do the update manually as you suggested and let you know what happens. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)