Results 1 to 3 of 3

Thread: Help Please!? - Sudden fatal error on sugarcrm

  1. #1
    amcrann is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    26

    Exclamation Help Please!? - Sudden fatal error on sugarcrm

    Just five minutes ago I was using sugar 5.1 and everything was fine. I performed a search and received this message:
    Fatal error: Call to undefined function can_start_session() in /chroot/home/twozeroo/2010brochures.com/html/sugar2008/include/MVC/SugarApplication.php on line 382

    Does anyone have any ideas how to fix this? All I did today was a backup of the db and the site files, but that was hours ago and I've been using the program just fine until now.

  2. #2
    Join Date
    Oct 2005
    Posts
    5

    Default Re: Help Please!? - Sudden fatal error on sugarcrm

    I think there is coding error in includes/utils.php:

    function can_start_session(){
    $session_id = session_id();
    return empty($session_id) ? true : false;
    }

    This makes sugarcrm think it cannot start sessions when it can. I think the code for the above function needs to read:

    function can_start_session(){
    $session_id = session_id();
    return empty($session_id) ? false : true;
    }

    We found this when running install.php and got this message:

    A common misconfiguration is that the 'session.save_path' directive is not pointing to a valid directory.

    Please correct your PHP configuration in the php.ini file located here below.

    /path/hidden/php5/php.ini


    Perhaps someone in development can review.

  3. #3
    Join Date
    Oct 2005
    Posts
    5

    Default Re: Help Please!? - Sudden fatal error on sugarcrm

    Actually our error is a different than yours because we have the function defined. A simple fix in your case is to edit SugarApplication.php and change:

    if(can_start_session()){
    session_start();
    }

    to:

    // if(can_start_session()){
    session_start();
    // }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Module Builder
    By Olavo in forum Downloads
    Replies: 418
    Last Post: 2009-02-26, 06:36 AM
  2. Help cant use Sugar anymore
    By mjcr777 in forum Help
    Replies: 14
    Last Post: 2008-09-17, 01:20 PM
  3. Check Inbound Mail scheduler item fails
    By stephen.bass in forum Help
    Replies: 3
    Last Post: 2008-07-01, 09:55 PM
  4. Replies: 19
    Last Post: 2008-04-11, 05:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •