PHP Warnings
lib/pear/File_Passwd.php:97: Warning[2]: fopen(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed
path(s): (/home/applehom:/usr/lib/php:/usr/local/lib/php:/tmp)
lib/pear/File_Passwd.php:97: Warning[2]: fopen(/etc/passwd): failed to open stream: Operation not permitted
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm getting the following error when i try and sign on with an a new user name ::
Fatal error: Cannot instantiate non-existent class: file_passwd in /home/oranapple/public_html/jwiki/lib/WikiUserNew.php on line 2122
any thoughts ppl?
Yes, you miss the pear File_Passwd class.
Or your system cannot find it.
okay I get it, although i understood Pear support was compiled into PHP.
What can I do include the class and any other missing classes?
Cheers - Jon
pear is not compiled in.
you have to install it.
but most likely you just miss the include_path to your pear directory.
Yep - I added : include_once('pear/File_Passwd.php'); into WikiUserNew.php and it's now working.
Is there a more elegant way i should be doing this?
Cheers - Jon
im getting this error now ...
PHP Warnings
lib/pear/File_Passwd.php:97: Warning[2]: fopen(): open_basedir restriction in effect. File(/etc/passwd) is not within the allowed
path(s): (/home/applehom:/usr/lib/php:/usr/local/lib/php:/tmp)
lib/pear/File_Passwd.php:97: Warning[2]: fopen(/etc/passwd): failed to open stream: Operation not permitted