Results 1 to 5 of 5

Thread: SugarCRM producing garbage characters

  1. #1
    Jashank is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    15

    Default SugarCRM producing garbage characters

    Hi,

    Sugar 5.1.0 CE, from a FreeBSD hosted system to XAMPP on Windows (Apache 2.2.14, PHP 5.3.1, MySQL 5.1.41).

    I'm about to upgrade an aging (well, 5.1.0) SugarCRM installation to 6.1. I've copied the database and SugarCRM install directory off our live server onto a test box, and have prodded settings to be correct for this system in config.php.

    I have some very bizarre issues on my copy. It looks like some form of content encoding or compression, but no compression or encoding makes this display correctly. Here's an excerpt from the very beginning:

    ��������Z{o�6�?/�߁Uѕ��_yt���"q���K6A�84E@K����t����w�>dɯ8٦���D9?�� :A
    No idea what's going on here; I've checked compression settings and encodings, to no avail.

    Jashank

    Edit: Here's a screenshot to go with it. Name:  sugar-rubbish.PNG
Views: 87
Size:  95.6 KB
    Last edited by Jashank; 2010-12-21 at 03:03 AM. Reason: Attaching screenshot

  2. #2
    rohitk is offline Sugar Community Member
    Join Date
    Mar 2010
    Location
    Poona
    Posts
    84

    Default Re: SugarCRM producing garbage characters

    Check the permissions of file. Also refer this link....

    http://www.sugarcrm.com/forums/showthread.php?t=66060

    Rohit

  3. #3
    Jashank is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    15

    Default Re: SugarCRM producing garbage characters

    Hi,

    I have no idea what was causing that issue, but after upgrading to XAMPP 1.7.4b2, it seems to work. I'm suspicious that PHP 5.3.1 is broken with SugarCRM (I know it is with other applications).

    Jasank

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: SugarCRM producing garbage characters

    Quote Originally Posted by Jashank View Post
    Hi,

    Sugar 5.1.0 CE, from a FreeBSD hosted system to XAMPP on Windows (Apache 2.2.14, PHP 5.3.1, MySQL 5.1.41).

    I'm about to upgrade an aging (well, 5.1.0) SugarCRM installation to 6.1. I've copied the database and SugarCRM install directory off our live server onto a test box, and have prodded settings to be correct for this system in config.php.

    I have some very bizarre issues on my copy. It looks like some form of content encoding or compression, but no compression or encoding makes this display correctly. Here's an excerpt from the very beginning:



    No idea what's going on here; I've checked compression settings and encodings, to no avail.

    Jashank

    Edit: Here's a screenshot to go with it. Name:  sugar-rubbish.PNG
Views: 87
Size:  95.6 KB

    This is due a conflict on a specific stack. I don´t know how to fix that by php.ini configuration, but this hack should works:

    Edit script include/utils.php
    Go to function "setPhpIniSettings"
    Comment the lines

    PHP Code:
        if(function_exists('gzclose') && headers_sent() == false) {
            
    ini_set('zlib.output_compression'1);
        } 
    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    Jashank is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    15

    Default Re: SugarCRM producing garbage characters

    Quote Originally Posted by andopes View Post
    I don´t know how to fix that by php.ini configuration,
    There is an option to do that, actually; search zlib.output_compression in php.ini. The issue is that it can be overridden in-script (which is occasionally useful, but occasionally not).

    Even so, setting zlib compression should send headers proclaiming zlib-compressed content. In this case, this wasn't happening, so I suspect a bug in PHP 5.3.1.

    In any case, an upgrade to PHP fixed the issue. Thanks, andopes and rohitk.

    Jashank

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-11-15, 09:11 AM
  2. Replies: 2
    Last Post: 2009-08-10, 11:18 PM
  3. Replies: 1
    Last Post: 2009-04-02, 04:48 AM
  4. Replies: 3
    Last Post: 2006-12-29, 09:06 PM
  5. Replies: 2
    Last Post: 2006-06-20, 03:38 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
  •