Menu

Errors after installation

Help
2002-12-17
2003-02-10
  • Stephen Swan

    Stephen Swan - 2002-12-17

    I have received the following errors after I installed everything.  I can still do everything, but the errors show at the top of the page.  As a result the tree view covers over some of the buttons.

    Warning: Cannot set time limit in safe mode in /home/virtual/site489/fst/var/www/html/phpGedView/config.php on line 22

    Warning: Cannot send session cookie - headers already sent by (output started at /home/virtual/site489/fst/var/www/html/phpGedView/config.php:22) in /home/virtual/site489/fst/var/www/html/phpGedView/config.php on line 176

    Warning: Cannot send session cache limiter - headers already sent (output started at /home/virtual/site489/fst/var/www/html/phpGedView/config.php:22) in /home/virtual/site489/fst/var/www/html/phpGedView/config.php on line 176

     
    • John Finlay

      John Finlay - 2002-12-18

      PHPGedView doesn't run well when "safe mode" is turned on in PHP.  If you can edit your PHP.ini file, then the best option would be to turn off safe mode. 

      If you don't have access to edit the php.ini file, then start by removing the line "set_time_limit(10*60);" from the config.php file.  That should take care of the errors.  If not, then post the new errors.  When "safe mode" is set, the host can turn PHP functions on and off at will.  This makes it difficult to guess which functions need to be removed and which ones can remain.

      --John

       
    • Anonymous

      Anonymous - 2003-02-09

      John,
      I've made the requested change and I now have the following error message:

      >>>>
      Fatal error: open(O_RDWR) failed for session file. The error is No such file or directory (2). Please consult http://support.free.fr/web/php/php4.html in config.php on line 150

      Fatal error: open(O_RDWR) failed for session file. The error is No such file or directory (2). Please consult http://support.free.fr/web/php/php4.html in your script on line 0
      <<<<

      What should I do?
      TIA -- Ben

       
    • John Finlay

      John Finlay - 2003-02-10

      It looks like your host does not support sessions which means that you will not be able to use the Tree Clipping cart.  You will need to turn off the session support in PHPGedView by editting the config.php file and setting:
      $ENABLE_CLIPPINGS_CART = false;

      If that doesn't get rid of the errors then completely remove the following section of code from the config.php file:
      // -- setup session information for tree clippings cart features
      if ($ENABLE_CLIPPINGS_CART) {
          $sessionname = session_name();
          if (!isset($$sessionname)) {
              $sessionID = uniqid("");
          }
          else {
              $sessionID = $$sessionname;
          }
          session_id($sessionID);
          session_start();
          if (!session_is_registered('cart')) {
              session_register('cart');
              $cart = array();
          }
      }

      Let me know if that helps you...
      Thanks
      --John

       

Log in to post a comment.