We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36509
    • 127 Posts
    I am trying to get SPForm to work and I am getting frustrated. I am pretty sure I am just missing something. I am pretty new to Modx but really like it, especially when using the 960 grid system.

    I installed the addon in revolution.

    You can see it here:

    Contact Page

    Here is the debug code that comes up on the contact page:
    SPFormPath: /home1/jbmaudio/public_html/jbmwebdesign/core/components/spform/
    iFile = /home1/jbmaudio/public_html/jbmwebdesign/core/components/spform/spfdebug.php
    spfCssPath: 
    referer: http://www.jbmwebdesign.com/
    spformTpl: spformTpl
    spformprocTpl: spformprocTpl
    spfcaptchaTpl: spfcaptchaTpl
    test_mode: 0
    formProcAllowedReferers: www.jbmwebdesign.com,jbmwebdesign.com
    recipientArray: Webmaster :[email protected]
    spfResponseID: 3
    errorsto: [email protected]
    adviseAll: 0
    warnAll: 1
    spfUseSMTP: 0
    spfSMTP_Host: yourhost.com
    spfSMTP_Port: 587
    useHiddenField: 1
    warnHiddenField: 0
    logOnHidden: 0
    requireMouseOrKeyboard: 1
    requireKeyboard: 0
    requireMouse: 0
    warnMouseAndKeyboard: 0
    logMouseAndKeyboardErrors: 0
    useTimer: 0
    useTimerMin: 10
    useTimerMax: 1800
    warnTimer: 0
    logInTimer: 0
    addSubjSig: 1
    dfltSubj: Contact
    logInjections: 0
    warnInjections: 0
    maxRecipientLen: 65
    warnRecipientLen: 0
    maxSubjectLen: 100
    logSubjectLen: 0
    warnSubjectLen: 0
    maxLinks: 3
    logMaxLinks: 0
    warnMaxLinks: 0
    logIllegalSubject: 0
    warnIllegalSubject: 0
    mailAlso: 
    requireName: 1
    requireSubj: 1
    requireEmail: 1
    spTextRows: 10
    spTextCols: 50
    includeResetButton: 0
    showSingleRecipientTo: 0
    requireVerify: 0
    usemathString: 1
    warnVerify: 1
    adviseOnVerify: 0
    logOnVerify: 0
    reportRemoteHost: 1
    reportRemoteUser: 1
    reportRemoteAddr: 1
    reportRemoteIdent: 1
    reportOrigReferer: 1
    formProcBlankRefOkay: 1
    adviseOnReferer: 0
    logOnReferer: 0
    warnBanned: 0
    adviseOnBan: 0
    logOnBan: 0
    chkFormRefNotSelf: 1
    chkFormRefOwnServer: 0
    chkFormRefNotBlank: 0


    I think I need to change the first couple of lines to:

    SPFormPath: /core/components/spform/
    iFile = /core/components/spform/spfdebug.php
    


    But I am not sure and do not know where to change those at.

    When I fill out the form and click submit, it goes to a white page with no content.

    Any ideas?
      www.JBMWebDesign.com
      www.JBMAutomation.com
      • 36509
      • 127 Posts
      I got it to work using:

      [[!SPForm? &useTimer=`0`]]

      is there a reason the timer would have to be disabled for it work?
        www.JBMWebDesign.com
        www.JBMAutomation.com
        • 3749
        • 24,544 Posts
        I don't really know. The timer depends on JS injected by the snippet. If the template is not valid HTML or has no DOCTYPE, that can fail. Sometimes, though, I think the timer just doesn't work on some systems.

        Having &warnall=`1` should have given you a timer violation message, unless the cache wasn't cleared properly after you set it.

        I'm glad you got it working.
          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
          • 36509
          • 127 Posts
          no DOCTYPE might have been the problem. I did not have one until I saw that the site was all screwed up in IE (I use chrome). Added it after I got it working with no timer.
            www.JBMWebDesign.com
            www.JBMAutomation.com