Tried this change and same thing happens. The odd thing is that the tmp folder is been writen to as normal..all folders that require cmod 777 are right, just something is preventing the index.php from kincking in...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-10-12
I am having the same problem and I have the same settings as above.
This looks like a great application I just wish I could make it work any help sure would be great!!!
Thanks in Advance!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like a common problem with us. The prog looks so good and once this tmp problem cured i look forward to using it..
Someone must have come up against this before!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-10-12
OK I think I found the problem
in the index.php find the following code
function POC_Error_Handler($errno, $errmsg, $filename, $linenum, $vars)
{
if( POC_OS == 'win' ) return;
if( $errno == 2 ){
//the webserver has no write access to the tmp dir
Chat::display_error( $errmsg, $filename );
exit;
}
}
and replace it with this
function POC_Error_Handler($errno, $errmsg, $filename, $linenum, $vars)
{
if( POC_OS == 'win' ) return;
if( POC_OS == 'unix' ) return;
if( $errno == 2 ){
//the webserver has no write access to the tmp dir
Chat::display_error( $errmsg, $filename );
exit;
}
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-10-12
It doesn't solve anything for me (I have the same problem ...)
Now it says :
Warning: Cannot add header information - headers already sent by (output started at .../phpopenchat/index.php:2) in .../phpopenchat/index.php on line 308
Warning: Cannot add header information - headers already sent by (output started at .../phpopenchat/index.php:2) in .../phpopenchat/index.php on line 405
Warning: Cannot add header information - headers already sent by (output started at .../phpopenchat/index.php:2) in .../phpopenchat/include/class.Template.inc on line 220
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had the same problem. The server open_basedir was returning a tmp directory in the root of my webspace. That was good, I thought, so I set it to 777. Didn't work.
I emailed my ISP and they told me to use /tmp (root's tmp). So I forced the TMPDIR to that, and it didn't work either. Also, he said they are using PHP safe_mode and wouldn't change it.
I thought I was screwed but I saw the last notice on the test.php page. I created a tmp directory in the chat directory and forced TMPDIR to use that. I set the options to 777 and it worked!
Hi guys
Installation went fine, had all green to proceed to login.
Wammy I got
Your webserver has no write permissions in "/home/rdescape/www/chat/tmp"!
tmp folder is cmod 777
anyone any ideas how to cure the problem?
I have'nt tried this yet but im told by David Midkiff:
in the config.inc.php
Look for this section
//This is the Linux/Unix case
define('POC_OS','unix');
if( ini_get('open_basedir') ) {
/** @ignore */
// comment this line out
// define('TMPDIR', ini_get('open_basedir'));
// add this new line with the correct dir info
define('TMPDIR', '/same_path_as_in_error/');
Hope it helpps ,Kris.
Hi there, Thanks for the input.
Tried this change and same thing happens. The odd thing is that the tmp folder is been writen to as normal..all folders that require cmod 777 are right, just something is preventing the index.php from kincking in...
I am having the same problem and I have the same settings as above.
This looks like a great application I just wish I could make it work any help sure would be great!!!
Thanks in Advance!!!
Hi Gizmo
Looks like a common problem with us. The prog looks so good and once this tmp problem cured i look forward to using it..
Someone must have come up against this before!
OK I think I found the problem
in the index.php find the following code
function POC_Error_Handler($errno, $errmsg, $filename, $linenum, $vars)
{
if( POC_OS == 'win' ) return;
if( $errno == 2 ){
//the webserver has no write access to the tmp dir
Chat::display_error( $errmsg, $filename );
exit;
}
}
and replace it with this
function POC_Error_Handler($errno, $errmsg, $filename, $linenum, $vars)
{
if( POC_OS == 'win' ) return;
if( POC_OS == 'unix' ) return;
if( $errno == 2 ){
//the webserver has no write access to the tmp dir
Chat::display_error( $errmsg, $filename );
exit;
}
}
It doesn't solve anything for me (I have the same problem ...)
Now it says :
Warning: Cannot add header information - headers already sent by (output started at .../phpopenchat/index.php:2) in .../phpopenchat/index.php on line 308
Warning: Cannot add header information - headers already sent by (output started at .../phpopenchat/index.php:2) in .../phpopenchat/index.php on line 405
Warning: Cannot add header information - headers already sent by (output started at .../phpopenchat/index.php:2) in .../phpopenchat/include/class.Template.inc on line 220
there is a leading CR/LF in index.php (before the '<?php') in version beta-3.0.0b4
please remove this empty line and all will be fine.
-letreo
PS: a new beta5 coming soon
It works fine now, didn't see the problem :o/
Bypassing the error is not a finality, but I will wait for the next beta !!
Thanx a lot ;o)
It works for me, but after I log on as moderator (or any other user) I just get a blank screen. Do you?
Cheers Kris.
Yep same here as blank as my mind at present...
The above code just by passes the possibility of an error by not checking for the error it returns back to the calling code stright away.
The cause of the error must be something that is effecting more than just that bit of code that reports the error.
Kris.
I have done the above fixes and NOW i have my chat room working with this software ALOT NICER AND FASTER!!!
www.mr2livechat.com
I had the same problem. The server open_basedir was returning a tmp directory in the root of my webspace. That was good, I thought, so I set it to 777. Didn't work.
I emailed my ISP and they told me to use /tmp (root's tmp). So I forced the TMPDIR to that, and it didn't work either. Also, he said they are using PHP safe_mode and wouldn't change it.
I thought I was screwed but I saw the last notice on the test.php page. I created a tmp directory in the chat directory and forced TMPDIR to use that. I set the options to 777 and it worked!
Here is my code, from config.inc.php:
...
if( ini_get('open_basedir') ) {
//define('TMPDIR', ini_get('open_basedir'));
define('TMPDIR', "/usr/local/psa/home/vhosts/nameofmysite.com/httpdocs/sfwwchat/tmp");
} else {
etc....
In order to find the "full and correct" path to my new tmp dir I used a shell (they gave me SSH access) and did a pwd in it.
I was having the exact same problem - I tried the suggestion from eddycurrents and it worked perfectly!
//define('TMPDIR', ini_get('open_basedir'));
define('TMPDIR', "/usr/local/psa/home/vhosts/nameofmysite.com/httpdocs/sfwwchat/tmp");