Menu

tmp folder

ron
2003-10-11
2003-11-29
  • ron

    ron - 2003-10-11

    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?

     
    • Kris Leech

      Kris Leech - 2003-10-12

      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.

       
      • ron

        ron - 2003-10-12

        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...

         
    • Anonymous

      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!!!

       
      • ron

        ron - 2003-10-12

        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!

         
    • Anonymous

      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;
        }
      }

       
      • Anonymous

        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

         
        • Michael Oertel

          Michael Oertel - 2003-10-13

          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

           
          • Anonymous

            Anonymous - 2003-10-13

            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)

             
      • Kris Leech

        Kris Leech - 2003-10-13

        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.

         
        • ron

          ron - 2003-10-13

          Yep same here as blank as my mind at present...

           
    • Kris Leech

      Kris Leech - 2003-10-13

      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.

       
    • Anonymous

      Anonymous - 2003-10-23

      I have done the above fixes and  NOW i have my chat room working with this software  ALOT NICER AND FASTER!!!
      www.mr2livechat.com

       
    • eddycurrents

      eddycurrents - 2003-11-19

      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.

       
      • Anonymous

        Anonymous - 2003-11-29

        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");

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.