We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20180
    • 29 Posts
    I use revo 2.1.5 and i have strange behaviour of spform. First it works, i pass some test submits and all works ok. Then the form stops working. Instead of thank you page I get or a blank page or an "internal server error page". And the form is no longer working (browser/platform independent). When I login to modx manager and Clear the site cache it works again for a number of submits and then the problem reappears. Whats wrong?
      Kind Regards
      ====================
      montagproject
      • 3749
      • 24,544 Posts
      It sounds like your cache is getting corrupted. It could be SPForm or it could be some other snippet or plugin on the site (or a problem with the server configuration).

      Some earlier versions of MODX had a problem with cache corruption. I'm not sure it 2.1.5 is one of them, but the current version is 2.2.2, so your version is a ways behind.

      You might try adding &warnall=`1` to the snippet tag, to see if an error message shows up on the blank page.


      ------------------------------------------------------------------------------------------
      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
        • 20180
        • 29 Posts
        Thanks. I'll try it and will observe whats going on. However today I got the following error: the following problems occurred with contact form processing:
           . This form was accessed from an unauthorized server!()"

        Both domains through which the form might be accessed are added in the config.


        Best regards
        Mike
          Kind Regards
          ====================
          montagproject
          • 3749
          • 24,544 Posts
          Possibly your server is not setting the HTTP_REFERER server variable correctly.

          Make sure &formProcBlankRefOkay=`1` in the configuration. (that should be the default).

          BTW, if you're testing the form by previewing from the manager or typing in the URL, rather than going to it via a link, HTTP_REFERER is probably not set.


          ------------------------------------------------------------------------------------------
          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