Hiya,
It sounds like your theme might be hiding the option to choose a number of spaces.
Do you see such a dropdown when looking in the default theme?
Thanks,
Phil
Thread Starter
cb88
(@cb88)
I originally had it set in single ticket mode but I can get the option to choose number of spaces to appear. Even if I select multiple spaces I still receive the same error message.
Thanks.
Thread Starter
cb88
(@cb88)
Does the form work correctly when using the default WordPress theme and with all other plugins deactivated?
It’s possible there’s Javascript conflict happening somewhere.
Thread Starter
cb88
(@cb88)
Yeah it works fine when I activate the default theme, even with all other plugins active.
I think you’re right… It was my best guess that it was a JavaScript issue but I can’t seem to find the problem.
The booking form uses Ajax right? Is it possible to disable Ajax on the booking form and just have it submit normally?
Thanks a lot for your help.
I’ve just checked your site and I do see the option to select spaces. Is this the theme you were using, and are you still getting the error?
Thanks
Thread Starter
cb88
(@cb88)
Yeah.. it’s the same theme. The option box to select spaces has always shown except from when I activated single ticket mode. That wasn’t the issue…
The problem is when I fill out all fields and click submit no matter what options I select I receive the “You must request at least one space to book an event.” error.
Tested it with default wp theme and it works fine so it’s a theme issue. I think caimin_nwl is right it’s a Javascript conflict but unfortunately my knowledge fails me at that point and I can’t find what is causing the conflict.
I was hoping someone had came across similar issues or had enough Javascript / WordPress Theme knowledge to spot the issue.
Thanks for you help, I appreciate your time.
If the problem only happens when your theme is activated it should be quite easy to sort out the problem.
What you need to do is find the point where your theme is loading jQuery and remove, or comment out, that line. After you do that, Events Manager will load jQuery instead and everything should work.
The usual places you’ll find jQuery loaded in themes is functions.php, header.php or sometimes footer.php.
Thread Starter
cb88
(@cb88)
Is it possible to comment out events manager jquery instead and it still work?
Thanks.
Hiya,
EM doesn’t load it’s own jQuery – it’s using the version that is included with WordPress.
The crux of your issue is that your theme is loading it’s own, incorrect, version of jQuery. You will need to remove that version of jQuery from your theme to allow WordPress to use it’s own jQuery.
Look first in the functions.php of your theme. You should find a line starting with wp_enqueue_script…
You can comment it out by adding ‘//’ like so;
//wp_enqueue_script('jquery'
Cheers,
Phil
Thread Starter
cb88
(@cb88)
Hi, thanks for your input.
I searched for that line and I couldn’t find it so messaged the theme author and he told me that it doesn’t load it’s own version, it uses wordpress’.
So I am now very confused.
Thanks
If you deactivate all other plugins does that make a difference?
Are you using any customized templates or code snippets with Events Manager?
Thread Starter
cb88
(@cb88)
Hi,
No I am using the default templates.
I tried disabling all plugins but still no difference.
I really am stumped…
Just tried to take a look at this again but Bookings are closed so I can’t check it.
Thanks