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
    I just checked out the latest from the trunk, and did some changes. Everything seemed to work OK. I went back to the Manager to check something out, and now for no reason I can discern everything suddenly began giving a totally blank page. Backend, frontend, whatever. Blank, nothing at all in the source. huh
      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
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I manually deleted two cached page files, and reverted my idx file. Now I get this error in the frontend:

      PHP error debug
      Error: Header may not contain more than a single header, new line detected.
      Error type/ Nr.: Warning - 2
      File: /Applications/MAMP/htdocs/trunk/manager/includes/document.parser.class.inc.php
      Line: 376
      Line 376 source: header($header);
      The manager is still blank.
        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
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        As far as I can figure, this happens after using the new-style weblink (actually using the link in the front end, not creating the link). I have exactly the same patches on a stock 0.9.2.1 installation working with no problems at all.
          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
          • 25663 MODX Staff
          • 12,272 Posts
          Susan I’m confused as to what’s causing what to happen... can you clarify?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Not at this time. I’m going to re-create a clean install from svn and start over, and see exactly when this happens. As far as I can tell, as soon as I actually clicked on the link I had just created, the whole site went blank, although it did send me to the desired page. It wasn’t until I returned to the Manager and started to edit a document that everything quit.
              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
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              It wasn’t my fault!!!! In the language file, at least the English one, the last item in the file doesn’t have a ; at the end:

              $_lang['fe_editor_lang_message'] = 'Choose a language for the editor to use when used as a front-end editor.'
              

              Not noticing this, I added my "cannot set link" message at the end. And that totally broke the entire site.
                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
                • 25663 MODX Staff
                • 12,272 Posts
                VERY nice catch Susan. laugh
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 4018
                  • 1,131 Posts
                  Come to think of it...one of the things that slightly erks me about the language files is the lack of consistency. Should all the values be in double-quotes or single-quotes? Granted, they all work anyways...but I guess I’m a stickler for being consistent on how code is written. wink
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 25663 MODX Staff
                    • 12,272 Posts
                    If we’re on the subject of language files, man could it use a serious cleaning out.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 22815
                      • 1,097 Posts
                      Eek. There are 1,012 definitions in the current English file. (Incidentally, 314 use double quotes)

                      I assume that’s a case of searching through the code for each of the suspect statements?
                      So if a search for "test_page" (without the quotes) came back with just the lang/ files, we’d knock the line out?
                      (Possibly making a list of removed statements so that our friends in other languages can change things).

                      I’ll volunteer, but only if I can also contribute english_british (en-GB) to the core distribution...
                        No, I don't know what OpenGeek's saying half the time either.
                        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                        Forum: Where to post threads about add-ons | Forum Rules
                        Like MODx? donate (and/or share your resources)
                        Like me? See my Amazon wishlist
                        MODx "Most Promising CMS" - so appropriate!