• I’ve created my form and it fails and goes to the 404 page each time. I’ve enabled debugging and it’s been of no assistance. The page just submits to the sf_form_salesforce_w2l_lead_2 anchor and shows a 404.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    FYI- You don’t need your org ID as a hidden field – the plugin handles adding that to the submission.

    I don’t see any obvious clues as to why the 404 is happening…

    – Do you have a redirect URL setup?

    – Does rebuilding permalink help?

    – Can you troubleshoot if it’s a plugin or theme conflict?
    https://luminfire.com/2017/09/07/troubleshooting-issues-wordpress-plugins/

    Thread Starter jbd4jc

    (@jbd4jc)

    Thanks Nick.

    Yes I have a redirect URL set up – I am just trying to use something ridiculous (https://www.google.com/?salesforce) right now to see if it helps. I tried re-building permalinks (just re-saved them) and that didn’t have an impact. Do you have a list of known plugin conflicts? This is a large site and I would prefer not disabling other plugins to track this down if at all possible.

    Plugin Author Nick Ciske

    (@nickciske)

    I don’t know of any plugin conflicts that cause 404s at this time. The name field used to be the culprit but that’s long been fixed by prefixing the field names in the form.

    Options:

    1. Clone the site to a local development site or Pantheon sandbox site and troubleshoot there.

    2. Purchasing premium support would allow me to troubleshoot the issue directly (if you can give me access).
    https://luminfire.com/support/premium-plugin-support/

    Thread Starter jbd4jc

    (@jbd4jc)

    I’ve added the filter to set the form action to https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8.

    However, no JS form validation appears to be happening. I’m working with a vendor out of Taiwan so I don’t have direct access to Salesforce to check if it’s working. I’m trying to connect with the person who manages their salesforce account to check on things.

    Plugin Author Nick Ciske

    (@nickciske)

    You don’t need a filter to submit a case, there’s a form setting for that…

    Also, that URL is deprecated by Salesforceas of July.

    Can you try using the form setting instead?

    There is no JS validation. It’s all server side.

    Thread Starter jbd4jc

    (@jbd4jc)

    Nick – I added the filter to change the form action since I could only ever get a 404 after submitting the form. I tried both the www and the webto API endpoint in the filter to hijack the form action. Everything seems to work, but the data isn’t going in. This has been the only way I’ve been able to get the form to work without showing a 404/page not found.

    Which form setting are you referring to? I selected the web to case radio button. Perhaps I’m looking in the wrong spot. Thanks for your help.

    Plugin Author Nick Ciske

    (@nickciske)

    You have the correct form setting.

    The API URL should have nothing to do with the response code served by WP — that all happens in a separate thread.

    Have you enabled the email debugging mode (see the FAQ)? Salesforce will tell you why leads are rejected (if the reason is on their end).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Form going to 404’ is closed to new replies.