Results 1 to 8 of 8

Thread: Blank page on saving changes to a record after server migration

  1. #1
    marcuscherry is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    44

    Default Blank page on saving changes to a record after server migration

    I have migrated my installation of sugar across to a new server from a shared hosting environment to a virtual private server.

    Everything seems to work ok - I can view records, search etc.. - but I can't save changes to any records in any of the modules.

    I can edit records but then when I click save I just get a blank page with the standard tabs and sidebar. The changes are not saved if I then go into the record again.

    All files are set to permission 755 and all set to the correct owner and group.

    System setup is:
    Sugar version 5.1.0a
    Apache version 2.0.63
    PHP version 5.2.8
    MySQL version 5.0.67-community
    Architecture x86_64
    Operating system Linux

    ANy help would be very much appreciated.

    thanks

    Marcus

  2. #2
    JVWay is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Corvallis, Oregon
    Posts
    452

    Default Re: Blank page on saving changes to a record after server migration

    Sometimes this happens due to missing fields in the database. I do a lot of development and with source code control the db sometimes gets out of synch and there are missing custom fields.

    If you've customized Sugar, I would look into the db and see if your _cstm tables are there and have the right fields.
    Jerry Way
    Business Process Administrator

    Sugar 6.1.4 Professional
    (Testing 6.1.2)
    LAMP on Centos 5
    PHP 5
    MySQL 5
    Apache 2.2

  3. #3
    gdoss's Avatar
    gdoss is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Kenwood, CA
    Posts
    39

    Default Re: Blank page on saving changes to a record after server migration

    First, php 5.2.8 is not supported for SugarCRM 5.1. PHP 5.2.8 support does not kick in until 5.2a, so that may be the issue. You should roll back to php 5.2.6 to meet the 5.1 standards. Did your previous setup have the exact same server specs?

    http://www.sugarcrm.com/crm/products...tforms/51.html

    Also, since you are getting a blank page it is likely an error is being suppressed, which it should be for a production environment. However this is hiding problems. Check your /var/log/httpd/error_log (or ssl_error_log if you are running ssl) and see what errors show.

    You may need to adjust your php error settings in /etc/php.ini. Restart httpd if you do make any changes to this file. The following should be suitable.
    error_reporting = E_ALL & ~E_NOTICE

    Also, you mention your OS as Linux, but providing the specific distro version could be more useful (eg, CentOS 5.3 or Ubuntu 8.04 LTS server) since distros customize their packages.

  4. #4
    marcuscherry is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    44

    Default Re: Blank page on saving changes to a record after server migration

    Thanks for the help guys. I've tried reimporting the database from a fresh dump and have checked the custom tables - they all look identical. I don't think this is the issue.

    I'm using CentOS 5.3 - the server setup is not identical to the previous server.

    I've rolled back to 5.2.6 now and changed the php config to display errors. Error I get is:

    Fatal error: Call to undefined function mb_substr() in /home/cpi/public_html/sugarcrm/include/database/DBManager.php on line 1725.

    No idea what this means.
    Last edited by marcuscherry; 2009-05-14 at 06:30 PM.

  5. #5
    gdoss's Avatar
    gdoss is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Kenwood, CA
    Posts
    39

    Default Re: Blank page on saving changes to a record after server migration

    I believe your server is missing the package php-mbstring. Install that and see if that works.

  6. #6
    marcuscherry is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    44

    Default Re: Blank page on saving changes to a record after server migration

    Yes that's it - managed to work that out.

    Now I've done that, it works.

    The next issue is that the only way I can make the dashlets work is by changing the cache file permissions to 777.

    For some reason they don't work when set to 755 - I'm pretty sure I've got the owner and group set correctly.

    What should the owner, group and permissions be set to?

  7. #7
    gdoss's Avatar
    gdoss is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Kenwood, CA
    Posts
    39

    Default Re: Blank page on saving changes to a record after server migration

    Great. Glad we got the first part fixed for you.

    Apache must be able to write to all files and directories, so I'd guess apache is unable to write to the cache directory in 755 mode. Here is where you should check and answer these questions:
    In the SugarCRM directory, what are your user and group set as? Are there files/directories that are set differently than others?

    What does apache run as for user (found in /etc/httpd/conf/http.conf)? These must match on the user level to run as 755. The default for apache in CentOS for user and group is apache.

    If your user is apache for your SugarCRM files, and apache runs as user apache, writing to all files/directories in SugarCRM should not be a problem.

  8. #8
    marcuscherry is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    44

    Thumbs up Re: Blank page on saving changes to a record after server migration

    Great! It's all working fine!

    Thanks so much for the help.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Blank contacts page after server migratoin
    By aaelghat in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2009-05-13, 05:03 PM
  2. Replies: 7
    Last Post: 2008-12-31, 03:54 AM
  3. Replies: 14
    Last Post: 2007-05-29, 11:09 PM
  4. Blank page when saving new record on custom module
    By Susana in forum Developer Help
    Replies: 1
    Last Post: 2006-09-19, 08:05 AM

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
  •