• Resolved manq

    (@manq)


    Hi all

    I run 2 blogs and after updating them to wordpress 4.4 this error came out:

    Warning: com() has been disabled for security reasons in D:…\wordpress\wp-includes\random_compat\random.php on line 94

    Aparently no issues in navigation when you’re not logged in, but still I would like to solve the problem quickly.
    Any suggestion?

    Thanks!

    Manq

Viewing 15 replies - 1 through 15 (of 20 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter manq

    (@manq)

    Hi

    Thanks for the answer.

    1) Yes, the issue remains

    2) My two blogs have different themes and the issue is theme independent

    3) I do not have any inactive plugin.

    Any other suggestion?

    Please try all of the suggestions I listed above.

    Thread Starter manq

    (@manq)

    I did.

    What method did you use to rest the plugins folder?

    Thread Starter manq

    (@manq)

    The one you linked:

    Or reset your plugins folder via FTP or the file manager provided in your host’s control panel. This method preserves plugin options but requires plugins be manually reactivated.

    Via FTP or your host’s file manager, navigate to the wp-contents folder (directory)
    Via FTP or your host’s file manager, rename the folder “plugins” to “plugins.hold”
    Login to your WordPress administration plugins page (/wp-admin/plugins.php) – this will disable any plugin that is “missing”.
    Via FTP or your host’s file manager, rename “plugins.hold” back to “plugins”

    Can you please try the Phpmyadmin method. I’ve known that work when the FTP method hasn’t.

    Thread Starter manq

    (@manq)

    I was not able, honestly. I restored the 4.3 version on the server and the error went away.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Pushed the issue upstream to the random_compat library:

    https://github.com/paragonie/random_compat/issues/79

    Thread Starter manq

    (@manq)

    I’ve problem in understanding the point, sorry.
    Can someone explain me (slowly ?? ) what’s happened when I updated to 4.4 and why this generated an error to my blogs?
    Thanks for your patience.

    Warning: com() has been disabled for security reasons in D:…\wordpress\wp-includes\random_compat\random.php on line 94

    That’s troubling. I’ll look into getting a new random_compat patch out ASAP.

    Can someone explain me (slowly ?? ) what’s happened when I updated to 4.4 and why this generated an error to my blogs?

    Yes: https://paragonie.com/blog/2015/10/coming-wordpress-4-4-csprng

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    WordPress 4.4 includes a new system for generating random numbers, as part of the underlying security enhancements. This was made in combination with the new random number generator functions added to PHP 7.

    Random numbers are important to security. So they need to be generated in secure and safe ways. For users of PHP that are older than PHP 7, WordPress includes a library called “random_compat” which basically does the same thing entirely in PHP.

    Now, your server appears to be running Windows. Because it’s Windows, some things are harder to do than on Linux servers. Random numbers happen to be one of them. For that, the library uses a function called “COM” which basically allows it to call the Windows system functions to get a secure random number.

    It appears that your server administrator has used a configuration which disables the use of the COM command in PHP. Thus, the warning message you get.

    The ticket I linked to above is an “issue” in the system for the random_compat library. Hopefully, they will solve the problem in the library to make it compatible, and get a fix made. When the fix is made, it will be ported into WordPress. You can follow along at that link to see the progress being made.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Also, they have created a patch which you can try on your system to see if it helps you or not. Basically, download this file:

    https://raw.githubusercontent.com/paragonie/random_compat/1.1.4/lib/random.php

    Save it as “random.php” and use it to replace the random.php file in /wp-includes/random_compat/random.php and see if that solves the issue. If so, you can leave a comment on that issue above and help them solve the problem.

    You’ll want this version:

    https://raw.githubusercontent.com/paragonie/random_compat/1.1.4/lib/random.php

    It resolves a case sensitivity edge case pointed out by Dion Hulse (@dd32).

    https://github.com/paragonie/random_compat/releases/tag/1.1.3

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Issue after updating to 4.4’ is closed to new replies.