Recaptcha not working (Vanilla 2.5.1)
I've migrated my old support site from phpBB to Vanilla (and what an improvement it is too!) - but I'm having some difficulty with Recaptcha. I've entered my keys in the User Registration Settings - and clicking Save reports that 'Your settings have been saved' (which sounds hopeful), but sadly Recaptcha still doesn't work.
Digging a little deeper into the Javascript logs, I see that clicking Save also resulted in an error 'The server responded with a status of 500 (Internal Server Error)' when trying to access dashboard/settings/registration.
Looking through my Vanilla install, I see that I have applications/dashboard/settings/class.hooks.php, configuration.php and structure.php - but no registration. Is something missing from my install? How can I make this work?
Thank you in advance for any help that you may be able to provide.
Comments
You should have a .htaccess file in the root folder of your forum. The purpose of this file is to internally change "yourdomain.com/dashboard/settings/registration" to You should have a .htaccess file
"yourdomain.com/index.php?p=/dashboard/settings/registration". So the only file you will find is the index.php and which file is called afterwards is depending on that "front controller". You will most probably be able to find /applications/dashboard/controllers/class.settingscontroller.php with the method registration, but you shouldn't need to search for that.
A 500 server error is almost always a misconfiguration. Look at this
Ahh. That makes sense. What would the settings for my nginx configuration be (no apache = no htaccess!)
There are several examples:
https://open.vanillaforums.com/discussion/comment/252118/#Comment_252118
https://open.vanillaforums.com/discussion/comment/244840/#Comment_244840
https://open.vanillaforums.com/discussion/33500/clear-advice-configuration-for-nginx
https://open.vanillaforums.com/discussion/comment/242050/#Comment_242050
https://open.vanillaforums.com/discussion/comment/236019/#Comment_236019
https://open.vanillaforums.com/discussion/comment/231438/#Comment_231438
Excellent suggestions, all - but none get me any closer to a solution. To be specific, everything else about my Vanilla installation works and looks beautiful. The only bit that doesn't work correctly is recaptcha. My nginx configuration looks like this:
My website is setup using nginx in Docker - hence the use of 8080 and 8443.
When setting up reCAPTCHA, and after clicking Save, I get this screen:
After having done this (with the associated Javascript errors described earlier), an attempt to sign up a new account looks like this: