Support

Home Forums Event Espresso Premium Recaptcha not working (2)

Recaptcha not working (2)

Posted: October 10, 2012 at 5:44 pm

Viewing 6 reply threads


mminten

October 10, 2012 at 5:44 pm

I have set up Recaptcha and it is not letting me through no matter what. I keep getting: “Sorry, you did not enter the correct anti-spam phrase. Please click your browser’s back button and try again.”
Give it a shot at: http://www.jamonit.info/dev/?page_id=5&ee=16

  • This topic was modified 4 years, 8 months ago by Garth.


mminten

October 10, 2012 at 6:00 pm

Also the required elements verification is not working. If I skip those questions it still allows me to register. I entered no information while logged in and it still lets me register. I can’t test while logged out because of the recaptcha problem.


Seth Shoultes

  • Support Staff

October 10, 2012 at 7:08 pm

Sounds like JavaScript error. Most likely the theme or another plugin are loading JavaScript incorrectly. Try switching to the Twenty Eleven theme from WordPress to see if that fixes the problems. If not, try disabling all other non-Event Espresso plugins to see if that fixes the issue.


mminten

October 10, 2012 at 8:20 pm

That is not it. I switched to Twenty Eleven, and turned off every plugin and it still doesn’t work. Any other ideas?

I also tried turning off the recaptcha to see if the validation worked and it doesn’t work either. But at least I can get to the next step in the registration process.

I have modified the files a bit to get the program to do what my client wants. Maybe I missed something?

  • This reply was modified 12 years, 1 month ago by mminten.
  • This reply was modified 12 years, 1 month ago by mminten.


Dean

October 11, 2012 at 1:27 am

Hi,

Not sure exactly what you have done to the files, but yeah the validation of the fields is simply not working, it shouldnt let me just type in a reCAPTCHA and hit submit, it should bounce me back to fill out name and email.

I would start by backing up the files you modified and replace them with the default ones to see if the problem lies in the modifications.

There is also a JS error coming up, but if you said that it is still the same in 2011 theme then I would look at the modifications as the potential culprit.


mminten

October 11, 2012 at 4:57 pm

I figured out my error. I added the following code to the top of the registration form ins the registration_page_display.php file:


$num_attendees = get_number_of_attendees_reg_limit($event_id, 'num_attendees'); //Get the number of attendees
if ($display_reg_form == 'Y' && $num_attendees < $reg_limit ) {

If I remove && $num_attendees < $reg_limit from the if statement everything works fine.

I did this because I want the event information to show even if the event is full. I changed the code in registration_page.php to require the registration_page_display.php file even when the event is full. When I did this it would add the description and the registration form. Obviously I don’t need the registration form if the event is full.

Is there another way to show the event information when the event is full and not show the registration form?


Dean

October 12, 2012 at 1:22 am

Hi

Why not amend the registraion_page.php?

For me, this is where the message shows that the event is full (We are sorry but this event has reached the maximum number of attendees!).

All I did was to use the $all_meta array thats available there and echo’d out some of the options, above that message.

i.e.

<?php echo $all_meta['event_desc']; ?>

Theres a list further up the code that shows whats available or you could var_dump the array and see whats in it.

Viewing 6 reply threads

The support post ‘Recaptcha not working (2)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso