Menu

undefined function: session_start()

Help
2005-04-12
2013-03-22
  • Nobody/Anonymous

    Having installed 0.6 on my Suse 9.2 box (php 4.3.8), when I go to the index page I get the above fatal error reported in connect.php.
    Since this is a basic PHP command I am at a loss to know where to prod, surely not a missing module?

     
    • Nobody/Anonymous

      Forgot to say the session module *is* installed according to  php -m

       
      • Brad Fears

        Brad Fears - 2005-04-12

        What information do you see in the "session" section when you run the phpinfo() command?

        --Brad Fears

         
        • Nobody/Anonymous

          ########################
          session

          Session Support => enabled
          Registered save handlers => files user

          Directive => Local Value => Master Value
          session.auto_start => Off => Off
          session.bug_compat_42 => On => On
          session.bug_compat_warn => On => On
          session.cache_expire => 180 => 180
          session.cache_limiter => nocache => nocache
          session.cookie_domain => no value => no value
          session.cookie_lifetime => 0 => 0
          session.cookie_path => / => /
          session.cookie_secure => Off => Off
          session.entropy_file => no value => no value
          session.entropy_length => 0 => 0
          session.gc_divisor => 100 => 100
          session.gc_maxlifetime => 1440 => 1440
          session.gc_probability => 1 => 1
          session.name => PHPSESSID => PHPSESSID
          session.referer_check => no value => no value
          session.save_handler => files => files
          session.save_path => /var/lib/php => /var/lib/php
          session.serialize_handler => php => php
          session.use_cookies => On => On
          session.use_only_cookies => Off => Off
          session.use_trans_sid => Off => Off

          ############################

           
    • Nobody/Anonymous

      The above is fine and dandy. The problem is that apache (or more probably the modphp) needed a restart after the session module was added, so it all worked fine from the shell, but not via the web browser!
      Problem Solved :)

       
      • Brad Fears

        Brad Fears - 2005-04-14

        That's good to hear.  I was really scratching my head after seeing your phpinfo() output, because everything looked fine.

        --Brad Fears

         

Log in to post a comment.

MongoDB Logo MongoDB