We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33404
    • 29 Posts
    Hello,

    I have a few modx sites running perfectly (0.9.6 and 0.9.6.1), but today i installed two fresh 0.9.6.1.p2 for projects i’m working on, and apache returns an internal server error 500 for both installations. This is invisible (the page shows properly and everything seem OK) but if i try for example to validate with W3C tool i get this error blocking validation.

    They are on 2 different servers, so is it possible this is related to p2 version?

    Thanks wink

    Header:
    Date: Mon, 18 Feb 2008 23:09:53 GMT
    Server: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g
    X-Powered-By: PHP/5.2.5-pl0-gentoo
    P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"
    Cache-Control: private, must-revalidate
    Set-Cookie: SN47ba082ba7a7b=cd1a08309d41dbdef7b12d308ed80b6e; path=/
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Content-Length: 1337
    Connection: close
    Content-Type: text/html; charset=UTF-8

    500 Internal Server Error

    Nothing interesting in apache logs...
    xx.xx.xx.xx - - [18/Feb/2008:23:43:04 +0100] "GET / HTTP/1.1" 500 1338 "-" "Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.12) Gecko/20080129 Iceweasel/2.0.0.12 (Debian-2.0.0.12-0etch1)"
    128.30.52.49 - - [18/Feb/2008:23:43:07 +0100] "GET / HTTP/1.1" 500 2871 "-" "W3C_Validator/1.575"
    • Anything’s possible, but there’s been no reports as such and it’s unlikely the patches in the current release would cause such behavior. We’d need MUCH more info before even hazarding a guess as to what’s going on. See my signature for more details.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 7231
        • 4,205 Posts
        Here are some Google results with some ideas:
        http://www.google.com.br/search?q=500+error+when+validating
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 33404
          • 29 Posts
          Thanks for your replies.
          I continue my investigation.
          It’s most likely related to my server conf (i worked a lot on it last week), but in this case, i don’t understand why my "old" modx sites are working...
          • That could be cached pages. Clear the cache and see if one stops working.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 33404
              • 29 Posts
              I tried clearing the cache but 0.9.6.1.p1 still works with no error huh
              To be absolutely sure, i made new installs, p1 and p2, on the same server.
              The first is ok, the second give the 500 error...

              Header p1

              Date: Tue, 19 Feb 2008 17:07:28 GMT
              Server: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g
              X-Powered-By: PHP/5.2.5-pl0-gentoo
              P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"
              Cache-Control: private, must-revalidate
              Set-Cookie: SN47bb00af47aae=b18524e8a42c9575215f8dfa88654b8a; path=/
              Vary: Accept-Encoding,User-Agent
              Content-Encoding: gzip
              Content-Length: 1906
              Keep-Alive: timeout=15, max=98
              Connection: Keep-Alive
              Content-Type: text/html; charset=UTF-8

              200 OK

              Header p2

              Date: Tue, 19 Feb 2008 17:07:58 GMT
              Server: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g
              X-Powered-By: PHP/5.2.5-pl0-gentoo
              P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"
              Cache-Control: private, must-revalidate
              Set-Cookie: SN47bb087b30247=0c53f535e4e7382dcaafeb8b87a2ab6b; path=/
              Vary: Accept-Encoding,User-Agent
              Content-Encoding: gzip
              Content-Length: 1905
              Connection: close
              Content-Type: text/html; charset=UTF-8

              500 Internal Server Error
                • 33404
                • 29 Posts
                Since nobody else reported similar, there’s something in my apache and/or php config that goes wrong with p2 version.
                Does someone have an idea of where i should have a look at first?

                I run Gentoo, php 5-2-5 as cgi (suphp), apache 2, mysql Ver 14.12 Distrib 5.0.44 (Gentoo OVH Release 2.09 for those who know OVH).
                  • 10449
                  • 956 Posts
                  Maybe chmod issues related to suPHP? o_O
                  http://wiki.modxcms.com/index.php/Securing_your_site
                    • 33404
                    • 29 Posts
                    Quote from: ganeshXL at Feb 19, 2008, 06:02 PM

                    Maybe chmod issues related to suPHP? o_O
                    http://wiki.modxcms.com/index.php/Securing_your_site

                    This is the first thing i thinked to but permissions seem to be OK...
                    • Are you using the sample site to test this? If so, remove snippets one at a time until it stops. I’m betting it has something to do with recent AjaxSearch changes.