Announcement

  •  » Beta testing
  •  » [resolved] [2.50beta2] Warnings on adding a user by admin

#1 2012-11-10 19:00:10

Eric
Piwigo Team
VALENCE (FR)
2005-03-25
1767

[resolved] [2.50beta2] Warnings on adding a user by admin

Hi,

On adding a user manually by an admin (Admin panel > Users > Manage), I get this :

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/mnt/100/sdb/8/d/mysite) in /mnt/100/sdb/8/d/mysite/piwigo25b2/include/passwordhash.class.php on line 51

Warning: Cannot modify header information - headers already sent by (output started at /mnt/100/sdb/8/d/mysite/piwigo25b2/include/passwordhash.class.php:51) in /mnt/100/sdb/8/d/mysite/piwigo25b2/include/page_header.php on line 101

Not reproduced on my offline test gallery.

Offline

 

#2 2013-03-09 16:36:03

enone
Member
2013-03-07
8

Re: [resolved] [2.50beta2] Warnings on adding a user by admin

Also appen to me, seems we have not able to access /dev/urandom

But i'm not on a shared server so it's because there are some settings to enable accessing that "device" in /dev/urandom, maybe some one can point out us how to configure php.ini / Apache to have this enabled

Found a code solution here http://stackoverflow.com/questions/10363465/can-i-access-dev-urandom-with-open-basedir-in-effect

phpass is trying to access /dev/urandom, which is not allowed in your php.ini To resolve this issue, you must suppress the warning. To do so, just add @ before is_readable, like this :

Code:

...

@is_readable('/dev/urandom')

...

Last edited by enone (2013-03-09 16:38:18)

Offline

 

#3 2013-03-09 17:24:42

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13171

Re: [resolved] [2.50beta2] Warnings on adding a user by admin


Latest blog post (May 3rd 2018) New subscription form

Offline

 
  •  » Beta testing
  •  » [resolved] [2.50beta2] Warnings on adding a user by admin

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact