Jump to content

ERROR: MCRYPT_CREATE_IV() when installing


Lance O.
 Share

Recommended Posts

I'm getting the following error when installing PW on a client's server. It appears after I've entered admin account information. Unfortunately, my client's hosting customer support is worthless and hasn't been able to help. Does anyone have any idea why this error is occurring?

ERROR: MCRYPT_CREATE_IV(): COULD NOT GATHER SUFFICIENT RANDOM DATA (LINE 161 OF C:\HOSTINGSPACES\CPVINCCO\RETHINKPAINT.COM\WWWROOT\WIRE\CORE\PASSWORD.PHP) 

THIS ERROR MESSAGE WAS SHOWN BECAUSE /INSTALL.PHP STILL EXISTS. ERROR HAS BEEN LOGGED.

Link to comment
Share on other sites

Just to make sure: you're running Windows? Which PHP version?

Based on some quick Googling, this sounds like a Win + PHP issue, reported in various places and affecting (at least some revisions of) PHP 5.3 and even 5.4.

Edit: only place where PW uses mcrypt_create_iv() is Password.php, to generate random base64 strings for salts. If you're in a hurry, you could try commenting out that whole block (lines 160..163), but after that you really should make sure that this method still provides sensible output.

I'm not too familiar with what's happening there, so I'd still suggest that you either try to fix this somehow else or at least wait for someone who knows better to step in and help with this.

Edited by teppo
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...