• Resolved npiper

    (@npiper)


    PHP Warning: require_once(C:\i): failed to open stream: No such file or directory in C:\inetpub\wwwroot\wordpress\wp-includes\random_compat\random.php on line 58
    PHP Fatal error: require_once(): Failed opening required ‘C:\inetpub\wwwroot\wordpress\wp-includes\random_compat/cast_to_int.php’ (include_path=’.;C:\php\pear’) in C:\inetpub\wwwroot\wordpress\wp-includes\random_compat\random.php on line 58

Viewing 6 replies - 1 through 6 (of 6 total)
  • Paste the contents of random.php here

    Thread Starter npiper

    (@npiper)

    file removed by mod

    Ok, does this file C:\inetpub\wwwroot\wordpress\wp-includes\random_compat/cast_to_int.php exist?

    Thread Starter npiper

    (@npiper)

    Yes it does, here is the code for that php file:
    file removed by mod

    Ok try replacing line #58 in random.php with

    include_once $RandomCompatDIR . ‘\\cast_to_int.php’;

    Let us know the output / error after that.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    @rajeshsoni Please don’t ask people to paste files here, or suggest that they edit core files. These are not good suggestions or solutions.

    @npiper Please don’t paste file contents here. It isn’t necessary, we know what the contents of those files are, they’re part of the WordPress software.

    The problem is likely that you have file permissions on the files incorrect, so that the system cannot read them. Adjust the file permissions on the files to be readable.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My dev site crashed yesterday with this error output in the debug.log’ is closed to new replies.