We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Still, whether or not it was commented out in the ht.access files by default or not is neither here nor there; the big question is what broke it between RC3 and 1.0?
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 23491 ☆ A M B ☆
      • 1,056 Posts
      It seems we’ve been able to confirm it’s only so far occuring to the Welcome screen and the Site Configuration page. I will try to dig into which file(s) may be related to these two screens and then track back through recent commits. (Better grab my shovel...)

      UPDATE::
      The weirdest thing, when I re-enable Zlib compression the error on the Welcome page has actually gone away? However, it is still present on the Site Config page. I have a hunch based on some odd behavior I was seeing during some multiple refresh tests... will report back soon!
        Mike Reid - www.pixelchutes.com
        MODx Ambassador / Contributor
        [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
        ________________________________
        Where every pixel matters.
        • 23491 ☆ A M B ☆
        • 1,056 Posts
        I believe I have found the issue. It appears to be related to http://svn.modxcms.com/jira/browse/MODX-851

        I rolled back my mutate_settings.dynamic.php to revision 5566 and the Content Encoding Error has gone away w/ Zlib enabled!

        However, replacing w/ revision 5567 breaks it again... cool

        It seems to be related to the use of the output buffer in get_lang_options():

        <?php
        /**
         * get_lang_options
         *
         * returns html option list of languages
         * 
         * @param string $key specify language key to return options of langauges that override it, default return all languages
         * @param string $selected_lang specify language to select in option list, default none
         * @return html option list
         */
        function get_lang_options($key=null, $selected_lang=null) {
            global $lang_keys;
            if($key) {
                $languages = get_langs_by_key($key);
                sort($languages);
                ob_start();
                    echo <<<OPTION
                        <option value="">{$_lang['language_title']}</option>
        
        OPTION;
                foreach($languages as $language_name) {
                    $uclanguage_name = ucwords(str_replace("_", " ", $language_name));
                    echo <<<OPTION
                        <option value="{$language_name}">{$uclanguage_name}</option>
        
        OPTION;
                }
                return ob_get_clean();
            } else {
                $languages = array_keys($lang_keys);
                sort($languages);
                foreach($languages as $language_name) {
                    $uclanguage_name = ucwords(str_replace("_", " ", $language_name));
                    $sel = $language_name == $selected_lang ? ' selected="selected"' : '';
                    echo <<<OPTION
                        <option value="{$language_name}" {$sel}>{$uclanguage_name}</option>
        
        OPTION;
                }
                return ob_get_clean();
            }
        }
        

          Mike Reid - www.pixelchutes.com
          MODx Ambassador / Contributor
          [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
          ________________________________
          Where every pixel matters.
          • 25663 MODX Staff
          • 12,272 Posts
          Thanks for identifying that Mike. I wonder if the php flag could just be set to off for that on the configuration page?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 23491 ☆ A M B ☆
            • 1,056 Posts
            Quote from: rthrash at Aug 05, 2009, 07:49 AM

            Thanks for identifying that Mike. I wonder if the php flag could just be set to off for that on the configuration page?

            All,

            This issue has been committed and is resolved as of revision 5620.
              Mike Reid - www.pixelchutes.com
              MODx Ambassador / Contributor
              [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
              ________________________________
              Where every pixel matters.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Darn, and I just upgraded to 5619 earlier today! I can’t keep up with you guys!
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 23491 ☆ A M B ☆
                • 1,056 Posts
                Quote from: sottwell at Aug 05, 2009, 02:18 PM

                Darn, and I just upgraded to 5619 earlier today! I can’t keep up with you guys!

                Looks like there was a slight error with the installer in 5617 that we just fixed in 5621! So I feel your pain! I sure love the new installer smiley
                  Mike Reid - www.pixelchutes.com
                  MODx Ambassador / Contributor
                  [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                  ________________________________
                  Where every pixel matters.
                  • 25902
                  • 27 Posts
                  Hi guys, I’m having the same problem. How do I go about getting this version 5621? My Modx Evo 1.0 is still on rev 5601.
                  Thanks

                  [EDIT]
                  I’ve finally managed to track down the file and applied the fix. For those new to ModX, just like me - there seems to be patches for ModX and if you were having the same problems as me (Using Friendly URLs and getting Content Encoding Error in some parts of Manager, it was Tools -> Configuration for me) you can do this:

                  Download this file:
                  http://svn.modxcms.com/crucible/browse/~raw,r=5620/modx/branches/1.0/manager/actions/mutate_settings.dynamic.php

                  And replace it in yer ModX manager folder:
                  yoursitexxx/modx/manager/actions

                  This worked for me although I cant really guarantee if this is the really right way of doing things. Going through the site, I saw fixes pushing the Evo 1 to rev 5621 where as my installation is revision 5601. There were many patches, some for the site files while others were for the installer. I have not tried them all and I’m unsure whether it is expected of us to find and patch the stuff ourselves or wait for an official patch release with which we can update our installations.

                  [END EDIT]
                    • 23491 ☆ A M B ☆
                    • 1,056 Posts
                    @Sacotash,

                    For this particular issue, you’re method is perfectly fine. Going about it this way will not ensure any potential dependencies related to the updated file are taken into account, so it’s generally better to go through the SVN to ensure any associated files are taken into account. However, having made the modification this is not the case in this instance.
                      Mike Reid - www.pixelchutes.com
                      MODx Ambassador / Contributor
                      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                      ________________________________
                      Where every pixel matters.
                      • 25902
                      • 27 Posts
                      Ah, I understand now. Thanks, Pixel smiley