We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40735
    • 119 Posts
    Okay, my you can see my template code in my post below the following is what was in the template code field in the manager:
    <html>
    <head>
    <title>[[++site_name]] - [[*pagetitle]]</title>
    <base href="[[++site_url]]" />
    <link rel="stylesheet" href="http://modx.com/assets/components/discuss/themes/modx/css/index.css" type="text/css" />
    <link rel="stylesheet" href="http://modx.com/assets/components/discuss/themes/modx/css/jquery-ui-1.8.16.custom.css" type="text/css" />
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/jquery.scrollTo-min.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/discuss.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/sh/shCore.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/sh/shAutoloader.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/sh/shDiscuss.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/dis.sticky.js"></script>
    <script type="text/javascript">// <![CDATA[
    DIS.url = "/";DIS.shJsUrl = "http://modx.com/assets/components/discuss/themes/modx/js/sh/";DIS.config.connector = "http://modx.com/assets/components/discuss/connector.php"
    // ]]></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/dis.post.modify.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/dis.post.buttons.js"></script>
    </head>
    <body>
    [[*content]]
    <script type="text/javascript">
            var DISModifyPost = $(function() {
                DIS.config.attachments_max_per_post = 5;
                DIS.DISModifyPost.init({
                    attachments: 1
                });
            });</script>
    </body>
    </html>

    As you can see, clearly not my code. I deleted it all, saved, closed, cleared the site cache for good measure and reopened and the field is still blank. My template is still being delivered to the client though. What's in the template code field doesn't seem to matter if a static file is referenced. I'm not really having issues with it. Everything is working fine. I chose to use @import over a <link> tag for browser support reasons but either works fine in most browsers. I just find it odd that the code is different from what I've written. [ed. note: dwillis210 last edited this post 14 years ago.]
      • 40735
      • 119 Posts
      I just checked it out in FireFox and the CSS has been changed to this:
      <link rel="stylesheet" href="http://ravenflight.net/assets/templates/ravenflight/css/I.ravenflight.css.pagespeed.cf.RZBKWn1uJc.css" type="text/css">

      Could Dreamhost be doing this?
        • 3749
        • 24,544 Posts
        It's really hard to see what's going on because the forum software mangles every URL you post inside code tags. The only way to get something we can see correctly, is to intentionally misspell http.


        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 40735
          • 119 Posts
          I'm not sure I understand you. I see it the same way I posted it.
            • 3749
            • 24,544 Posts
            The PHP code does, but I'm pretty sure the pasted CSS code from FF doesn't. wink


            ------------------------------------------------------------------------------------------
            PLEASE, PLEASE specify the version of MODX you are using.
            MODX info for everyone: http://bobsguides.com/modx.html
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 40735
              • 119 Posts
              No, aside from wrapping a bit it looks exactly the way I pasted it to me. If what you're talking about is the way the link tag's href property has an anchor tag in it, that's exactly why I'm curious about what's going on here. lol

              I'm beginning to think Dreamhost is doing this to my code. I'm about ready to move on dot org to Rackspace anyway. [ed. note: dwillis210 last edited this post 14 years ago.]
                • 22303 MODX Staff
                • 10,725 Posts
                The forum software is adding the anchor tag to your posts here. This has nothing to do with a page in your MODX site having it's content changed by the server before being served.
                  • 40735
                  • 119 Posts
                  Hmm. I was certain I had seen it that way in the page source but when I look now it's not like that. More curious still, it doesn't have any http in it. It looks like this:

                  <link rel="stylesheet" href="/assets/templates/ravenflight/css/ravenflight.css" type="text/css">

                  Whether or not it really was like that before I can't be sure because the whole problem here is that the code keeps changing. I remain confident that it was referencing css/I.ravenflight.css.pagespeed.cf.RZBKWn1uJc.css instead of css/ravenflight.css though. Even if it was always the way it is above, the question of why there's a link tag in the client when I'm using an @import css rule in my template remains. I'm satisfied that MODx isn't changing this code but I'd still like to know what's happening and why. My best guess at the moment is that Dreamhost is changing my code before delivering it to the client for what I can only assume are server load reasons. [ed. note: dwillis210 last edited this post 14 years ago.]
                    • 3749
                    • 24,544 Posts
                    I hate to say it, but one possibility is that your site has been hacked and a malicious program is changing the code, but only occasionally to avoid detection.

                    Look in that directory and see if there are any extraneous files there (although a malicious program could be deleting them once they're used).


                    ------------------------------------------------------------------------------------------
                    PLEASE, PLEASE specify the version of MODX you are using.
                    MODX info for everyone: http://bobsguides.com/modx.html
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Looks like a server thing - https://developers.google.com/speed/docs/mod_pagespeed/filter-css-rewrite

                      A Google search on "pagespeed.cf" was useful.
                        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