Error shows up on Contact Form

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/14/2009 9:19:43 PM
Gravatar
Total Posts 125

Error shows up on Contact Form

windows 7, Mssql and latest mojo

I tried to test the contact form, it shows below errors when I send message.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]

Recaptcha.RecaptchaControl.get_IsValid() +15

mojoPortal.Web.Controls.Captcha.RecaptchaAdapter.get_IsValid() +44

mojoPortal.Web.Controls.CaptchaControl.get_IsValid() +125

mojoPortal.Web.ContactUI.ContactForm.btnSend_Click(Object sender, EventArgs e) +412

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

 

Thanks for help.

10/15/2009 8:19:47 AM
Gravatar
Total Posts 18439

Re: Error shows up on Contact Form

Are you using svn trunk? I cannot produce this error.

Best,

Joe

10/15/2009 11:01:30 AM
Gravatar
Total Posts 125

Re: Error shows up on Contact Form

Actually I tried both the formal release and the the svn. It shows same error message.  If I disable the spam block function,  the contact form works fine. It might be some problem in my local setup. Thank you for helping.

10/15/2009 11:41:06 AM
Gravatar
Total Posts 2239

Re: Error shows up on Contact Form

Have you filled in the settings for Re-Captcha in Administration > Site Settings > Security > Anti-Spam?

The error you posted indicated that you have selected Re-Captcha.

HTH,
Joe D.

10/15/2009 12:08:02 PM
Gravatar
Total Posts 125

Re: Error shows up on Contact Form

Yeah. That's the problem.

If I selected "SubkismetCaptcha" or " SimpleMathCaptcha", everything works normal. Only "RecaptchaCaptcha" causes the problem.

10/15/2009 12:13:46 PM
Gravatar
Total Posts 2239

Re: Error shows up on Contact Form

So you did fill in the Private and Public keys for ReCaptcha? If you did not, that is probably the reason for the error.

-Joe

10/15/2009 12:19:13 PM
Gravatar
Total Posts 125

Re: Error shows up on Contact Form

No, I haven't filled the keys. Why I didn't need to fill anything for another two options? BTW, where are the keys? Thanks

10/15/2009 12:38:25 PM
Gravatar
Total Posts 2239

Re: Error shows up on Contact Form

The keys are for ReCaptcha only. The other two Captcha options do not require any additional information. To obtain a key for recaptcha:

  1. Go here: https://admin.recaptcha.net/accounts/signup/.
  2. Fill out the form and you will get a private and public key for the ReCaptcha system.
  3. Enter those keys in Administration > Site Settings > Security > Anti-Spam.

HTH,
Joe D.

You must sign in to post in the forums. This thread is closed to new posts.