Results 1 to 7 of 7

Thread: Seg fault (11) - 4.0 > 4.0.1 upgrade

  1. #1
    neek is offline Junior Member
    Join Date
    Jan 2006
    Posts
    2

    Default Seg fault (11) - 4.0 > 4.0.1 upgrade

    Just performed the upgrade from 4.0 to 4.0.1 but now I am getting apache segmentation faults when I try and access the Opportunities module, everything else appears to be fine.

    I did have to run the upgrade process twice as the first time I had problems with incorrect permissions on some sugar files, so I just changed teh owner to the apache user on all the sugar files. Upgrade then went fine.

    I see plenty mentioned on these forums about bugs in php 5.x but I'm running php 4.3.9?

    I can actually enter the Opportunities module, but I get this error whenever I try and open or create any opportunities.

    I have repaired the extensions and relationships, but still same error

    One other thing, I also have the following errors that have been appearing in the apache error log:

    [client 10.0.2.58] PHP Notice: Undefined variable: currentModuleFile in /var/www/html/sugar/index.php on line 353
    [client 10.0.2.58] PHP Warning: return_module_language(modules//language/en_us.lang.php): failed to open stream: No such file or directory in /var/www/html/sugar/include/utils.php on line 667
    [client 10.0.2.58] PHP Warning: return_module_language(modules//language/en_us.lang.php): failed to open stream: No such file or directory in /var/www/html/sugar/include/utils.php on line 667
    [client 10.0.2.58] PHP Warning: return_module_language(): Failed opening 'modules//language/en_us.lang.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/sugar/include/utils.php on line 667
    [client 10.0.2.58] PHP Warning: return_module_language(modules//language/en_us.lang.php): failed to open stream: No such file or directory in /var/www/html/sugar/include/utils.php on line 700
    [client 10.0.2.58] PHP Warning: return_module_language(modules//language/en_us.lang.php): failed to open stream: No such file or directory in /var/www/html/sugar/include/utils.php on line 700
    [client 10.0.2.58] PHP Fatal error: return_module_language(): Failed opening required 'modules//language/en_us.lang.php' (include_path='.:/usr/share/pear') in /var/www/html/sugar/include/utils.php on line 700
    Now I'm not sure what causes this error as I can't reproduce it (yet) while I'm watching the log. But from looking at the log history it woudl appear to have started since the 4.0.1 upgrade.

    TIA!
    Nick

  2. #2
    neek is offline Junior Member
    Join Date
    Jan 2006
    Posts
    2

    Default Re: Seg fault (11) - 4.0 > 4.0.1 upgrade

    Looking at the missing file errors a bit more, I notice there is a missing module directory in the middle of the path... Why it's missing, well thats where I bow out, a programmer I am not!

  3. #3
    vtocco is offline Junior Member
    Join Date
    Jan 2006
    Posts
    2

    Default Re: Seg fault (11) - 4.0 > 4.0.1 upgrade

    I am getting this same error from a new install of 4.0.1. Any ideas? This happens when I try to manage user accounts, even trying to edit the admin account..

    thx

  4. #4
    ncobley is offline Junior Member
    Join Date
    Dec 2005
    Posts
    2

    Default Re: Seg fault (11) - 4.0 > 4.0.1 upgrade

    Got it working

    I was running PHP 4.3.9 on Centos 4.2, out of frustration I upgraded PHP to 5.0.5 and it fixed it. Not exactly a graceful solution but did the job. For all the posts I have read of PHP 5 stuffing Sugar, for me it fixed it!

    One point to note if your using Centos and upgrade PHP, I had a problem with the login screen being blank after upgrading PHP. THis was because when upgrading, the extensions directory in php.ini was still set to /usr/lib/php4, changing this to /usr/lib/php/modules fix it.

  5. #5
    nkendrick is offline Sugar Community Member
    Join Date
    Aug 2004
    Posts
    109

    Default Re: Seg fault (11) - 4.0 > 4.0.1 upgrade

    Aha! I have a big thread going about my problems with this - exactly the same things are (not) happening and I'm running Centos 4.2. Can you tell me exactly how and what you upgraded (binaries or rpms etc.) and where you got them so I can try exactly the same 'fix'.

    Thanks (hopefully!)

    Nigel Kendrick

  6. #6
    ncobley is offline Junior Member
    Join Date
    Dec 2005
    Posts
    2

    Default Re: Seg fault (11) - 4.0 > 4.0.1 upgrade

    Hahaha,

    I just spent the better part of the last hour reading yoru thread as it looked very similar to my problem and was about to post a link to this thread!

    Well upgrading to php 5 is very simple actually, just edit /etc/yum.repos.d/CentOS-Base.repo

    Look for the Centos Plus mirror and change enabled=0 to enabled=1

    Then just yum upgrade and it shoudl upgrade php, although you will have to change the path to the extensions in php.ini to /usr/lib/php/modules or your login page will be blank.

    For me this upgraded a number of packages to slightly newer versions, php to 5.0.5 and a few others.

    I have been having a real bad php day problems all over the place, so I have had to make a number of other changes to my php settings, so there is an outside chance that one of these fixed it too. But give this a try, and if it doesnt work post or pm me your php settings and I will compare them to mine.

    Really don't think any of the settings I changed would have resolved it though so hopefully php upgrade is the winner!

  7. #7
    nkendrick is offline Sugar Community Member
    Join Date
    Aug 2004
    Posts
    109

    Default Re: Seg fault (11) - 4.0 > 4.0.1 upgrade

    Further to previous, I have just installed PHP 4.4.2 and that seems to have got things working again. To wade throught the various configuration & make errors trying to install PHP, I recommend the following message thread:

    http://www.vbulletin.com/forum/archi.../t-114170.html

    Hope this saves someone a day or so!!

Thread Information

Users Browsing this Thread

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

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
  •