Results 1 to 3 of 3

Thread: Unreadable pages (http encoding issue?) on 5.2.0j

  1. #1
    iancomtek is offline Member
    Join Date
    Oct 2009
    Posts
    5

    Exclamation Unreadable pages (http encoding issue?) on 5.2.0j

    Sugar's pages on my dev machine are completely unreadable. I suspect this was caused by a software upgrade.

    I've attached a screenshot of what I see in Firefox or IE if I visit 'http://sugarcrm.dev/index.php'. Visits to 'http://sugarcrm.dev/install.php' correctly display the 'installer locked page' so the Apache vhost is still generally able to serve pages.

    Using Fiddler (debugging proxy) I see the HTTP request/response looks like:

    Request:
    Code:
    GET /index.php?action=Login&module=Users&login_module=Home&login_action=index HTTP/1.1
    Accept: */*
    Accept-Language: en-gb
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
    Host: sugarcrm.dev
    Connection: Keep-Alive
    Pragma: no-cache
    Cookie: PHPSESSID=3ca30c3007fe537c43e2593c018022d4
    Response:
    Code:
    HTTP/1.1 200 OK
    Date: Mon, 19 Oct 2009 09:54:02 GMT
    Server: Apache/2.2.14 (Debian)
    X-Powered-By: PHP/5.2.11-1
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Vary: Accept-Encoding
    Keep-Alive: timeout=15, max=98
    Connection: Keep-Alive
    Content-Type: text/html; charset=UTF-8
    Content-Length: 4716
    
    �
    If I use the hex view I see complete binary jibberish (the fourth character is a null which, I think is why only 3 characters of the response show above).

    Initially I was using some version of 5.2.0. I used 'silentUpgrade.php' (since I couldn't log in) to upgrade to 5.2.0.j with no change.

    Can anybody shed some light on this? I'm at my wits end.

    Thanks.

    Ian

    -------------------------------------------------

    Probably superfluous information follows:

    /etc/apache2/modules-enabled:
    Code:
    actions.load  auth_basic.load   authz_default.load    autoindex.conf  dav_svn.conf  dir.conf   info.load  negotiation.conf  php5.load      status.conf
    alias.conf    auth_digest.load  authz_groupfile.load  autoindex.load  dav_svn.load  dir.load   ldap.load  negotiation.load  rewrite.load   status.load
    alias.load    authn_file.load   authz_host.load       cgi.load        deflate.conf  env.load   mime.conf  perl.load         setenvif.conf
    apreq.load    authnz_ldap.load  authz_user.load       dav.load        deflate.load  info.conf  mime.load  php5.conf         setenvif.load
    /etc/apache2/sites-available/sugarcrm
    Code:
    <VirtualHost *>
            ServerAdmin it@x
            ServerName sugarcrm.dev.x
            ServerAlias sugarcrm.dev
    
            DocumentRoot /var/www/sugarcrm
            <Directory /var/www/sugarcrm>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride all
                    Order allow,deny
                    allow from all
            </Directory>
    
            ErrorLog /var/log/apache2/error.log
    
            LogLevel warn
    
            CustomLog /var/log/apache2/access.log combined
            ServerSignature On
    
            <Files ~ "\.inc$">
                    Order allow,deny
                    Deny from all
            </Files>
    
            <Location />
                    Order allow,deny
                    Allow from 10.4.1.26/32
                    Allow from 10.4.4.0/24
                    Allow from 127.0.0.1/32
                    Satisfy Any
            </Location>
    
    </VirtualHost>
    All software is Debian-packaged apart from Sugar

    dpkg --get-selections |egrep 'apache|php'
    Code:
    apache-common                                   install
    apache2                                         install
    apache2-doc                                     install
    apache2-mpm-prefork                             install
    apache2-threaded-dev                            install
    apache2-utils                                   install
    apache2.2-bin                                   install
    apache2.2-common                                install
    libapache2-mod-apreq2                           install
    libapache2-mod-perl2                            install
    libapache2-mod-perl2-dev                        install
    libapache2-mod-perl2-doc                        install
    libapache2-mod-php5                             install
    libapache2-reload-perl                          install
    libapache2-request-perl                         install
    libapache2-svn                                  install
    libphp-adodb                                    install
    libphp-simplepie                                install
    php-elisp                                       install
    php-geshi                                       install
    php5                                            install
    php5-cli                                        install
    php5-common                                     install
    php5-curl                                       install
    php5-idn                                        install
    php5-imap                                       install
    php5-ldap                                       install
    php5-mysql                                      install
    php5-suhosin                                    install
    php5-sybase                                     install
    phpldapadmin                                    install
    Versions:
    • libapache2-mod-php5 5.2.11.dfsg.1-1
    • php5 5.2.11.dfsg.1-1
    • apache2 2.2.14-1
    • apache2-mpm-prefork 2.2.14-1
    Attached Images Attached Images  

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Unreadable pages (http encoding issue?) on 5.2.0j

    Perhaps the same zlib-issue as here: http://www.sugarcrm.com/forums/showthread.php?t=52694 ?
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    iancomtek is offline Member
    Join Date
    Oct 2009
    Posts
    5

    Thumbs up Re: Unreadable pages (http encoding issue?) on 5.2.0j

    Fixed! :-)

    Interestingly setting (in php.ini)
    Code:
    zlib.output_compression = Off
    ;zlib.output_compression_level = Off
    Fixes the issue except for a tiny bit of corruption at the top and bottom of the page. Applying the suggested patch in the thread fixes the problem entirely.

    Thanks,

    Ian

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Email Encoding Issue - Help
    By jjwdesign in forum Help
    Replies: 1
    Last Post: 2009-03-12, 01:33 PM
  2. Replies: 2
    Last Post: 2008-09-01, 10:01 AM
  3. Character set encoding in exporting issue
    By vifosys in forum General Discussion
    Replies: 0
    Last Post: 2007-06-19, 06:01 AM
  4. Replies: 2
    Last Post: 2007-01-18, 05:31 PM
  5. Replies: 0
    Last Post: 2006-06-12, 05:02 PM

Tags for this Thread

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
  •