Contact form will not collect data

contacts

#1

Hello. I was asked to start a new thread about a problem we are having with our contact us form. The form is a php form that posts to our form url that follows this format: https://forms.hubspot.com/uploads/form/v2/. The form is located on this page: http://www.mitchcommgroup.com/contact.php. It seems like we are receiving a success response from the forms API, because our form displays the “Thank you for submitting your contact info” message, which is in a php code block that only renders if the submission was successful. But, when we go to our hubspot account and click on Contacts – Forms – Mitchell Contact Us Form and view the submissions, the last submission was from 10/18/2016. So, submissions since that date are not being recorded on our account. We have not changed the code on this page since 2015, until a few weeks ago when your rep asked us to start submitting the form submission to https. We made that update, but are still not receiving any contact us form submissions. Please advise.

Thanks,
Danielle DeLozier


#2

Hi @danielle.delozier

Are you logging the responses you’re getting from HubSpot for the Forms API submissions? Even if there was a problem with the data there should still be something listed in HubSpot for new submissions, even if the submission was completely empty you should still see a submission with no fields in HubSpot.


#3

We do see a bunch of empty submissions that occurred before October 18th, 2016. After October 18th, they stopped. Again, our code has not changed since 2015. Also, we see successful submissions before October 18th with accurate data.

Thanks,
Danielle


#4

Hello @dadams,

Any update on this issue?

Thanks,
Danielle


#5

Do you have any logs from the requests you’re making to HubSpot? Are you getting any response from HubSpot in the cases where you’re not seeing the submissions in HubSpot? If not, are you seeing any other errors in your system for those submissions?


#6

@dadams,

The developer that put the page in place had deactivated logging on the page. I reactivated this line: echo $status_code . " " . $response;

Now, when I try to submit the form, we receive a 500 error on the page and the response says SSL certificate problem: self signed certificate in certificate chain.

We believe this is being caused because you are responding to our server with a self-signed certificate and our server is rejecting it. Please advise on next steps.

Thanks,
Danielle


#7

An SSL error like that usually means that you’ll need to update the root certificate authorities on your server. Exactly how you do this is going to depend on your server configuration, but there are some general instructions for updating this on a Windows machine here:
http://www.swiftsoftwaregroup.com/configuring-phpcurl-root-certificates-windows-server/

You can verify HubSpot’s SSL certificate at this site:
https://www.digicert.com/help/?host=api.hubapi.com


#8

@dadams,

Thank you, this worked. We do not have a Wordpress site, but we are using the CURL code you published in your API documentation. Thanks for your help.

Thanks,
Danielle