• Resolved creepycree

    (@creepycree)


    ERROR:

    Warning: fopen(/dev/urandom) [function.fopen]: failed to open stream: Operation not supported in /wp-includes/random_compat/random_bytes_dev_urandom.php on line 58

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 920

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 921

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 922

    I post this one yesterday…

    I already tried several solution…

    – from deleting the extra spaces in the php file (which actually is unnecessary because there are no spaces)
    – replacing the the whole random_compat folder and pluggable.php (the file I use was fresh from the wordpress zip file)

    It all started last March 14, 2018. I updated to the latest wordpress and also the themes. I was still able to log in to the admin panel and I was able to edit some of the data in the website.

    And then office hours is done and I shut off the pc. (The typical close-shutdown)

    I tried to log in at home… but the error occurs for the 1st time.

    Since yesterday, I’ve been trying to find solution been into many forums but nothing seems to be working for me.

    Hoping that this post will not be deleted. A help from a Moderator or anybody who experience the same problem as I am is highly appreciated.

    THANK YOU SO MUCH.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter creepycree

    (@creepycree)

    Thanks James.

    I already did the manual resetting of the plugins, will try your second option right now (though I already try to rename the themes folders name yesterday.)

    I’am already worried that I might not be able to edit the website forever. (Its a company website by the way)

    Hope you’ll stick around and let’s see if we could fix this issue.

    Thread Starter creepycree

    (@creepycree)

    UPDATE:

    Warning: fopen(/dev/urandom) [function.fopen]: failed to open stream: Operation not supported in /wp-includes/random_compat/random_bytes_dev_urandom.php on line 58

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 920

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 921

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 922

    Powered by WordPress

    ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.

    Nothing happens when I change the /wp-content/themes/ active themes directory.

    Our website is working fine by the way.. I just couldn’t really log in to the admin.

    • This reply was modified 6 years, 11 months ago by creepycree.
    Moderator James Huff

    (@macmanx)

    The tricky problem is that it could either be /wp-includes/random_compat/random_bytes_dev_urandom.php or something running *through* that file.

    So, since you’ve ruled out the file itself, by replacing it, and the plugins and themes, by disabling them, it’s time for everything else.

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter creepycree

    (@creepycree)

    Hi James,

    I am on that process right now, may I just ask when you say everything (except the 2 mentioned) are these files gonna be replaced too?

    wp-active.php
    wp-blog-header.php
    wp-commenth-post.php
    wp-config-sample.php
    wp-cron.php
    wp-links-opml.php
    wp-load.php
    wp-login.php
    wp-mail.php
    wp-settings.php
    wp-signup.php
    wp-trackback.php
    xmlrpc.php

    Thank you!

    Moderator James Huff

    (@macmanx)

    Yes, those too.

    Thread Starter creepycree

    (@creepycree)

    UPDATE:

    I replace both wp-includes and wp-admin… plus the other files.

    I still got the same error.

    Warning: fopen(/dev/urandom) [function.fopen]: failed to open stream: Operation not supported in /wp-includes/random_compat/random_bytes_dev_urandom.php on line 58

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 920

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 921

    Warning: Cannot modify header information – headers already sent by (output started at /wp-includes/random_compat/random_bytes_dev_urandom.php:58) in /wp-includes/pluggable.php on line 922

    what the … is happening

    Moderator James Huff

    (@macmanx)

    Hm, can you contact your hosting provider’s support and ask them to make sure that fopen is supported on your server?

    Thread Starter creepycree

    (@creepycree)

    Hi James,

    I just had a reply from our hosting provider, they do not support fopen… is there anything I could do to atleast fixed the website so I could access to the admin?

    Thread Starter creepycree

    (@creepycree)

    UPDATE:

    I downgraded the version of the wordpress to 4.3.16, it turns out that our web hosting provider (which is yahoo business) doesn’t support the ‘random compat’ folder in the wp-includes folder.

    I called their customer service and they told me they only support up to 4.6, but still when I did that it didn’t work.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Log In Error’ is closed to new replies.