I have this error in log, what should be wrong?

is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/mnt/data/accounts/data/www/web:/tmp/uploads) v souboru /mnt/data/accounts/data/www/web/sites/all/modules/phpass/PasswordHash.php on line 51

Comments

grootte’s picture

I have the same error, how could this be solved?

grootte’s picture

Category: support » bug
pwolanin’s picture

Status: Active » Fixed

apparently you are on a lousy host with open_basedir restrictions.

Hopefully fixed in the 6.x-2.x branch via use of:

 if ($fh = @fopen('/dev/urandom', 'rb')) {

instead of

		if (is_readable('/dev/urandom') &&
		    ($fh = @fopen('/dev/urandom', 'rb'))) {

that's in the original library.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

feuillet’s picture

#3 fixed it here. Thanks!