in my user event submission form above mentioned functions are gone. I’m aware of the jquery issue Marcus mentioned but I can’t find it out. Please have a look:
I updated EM with your last date picker fix, still the same problem.
I think I’m loosing it.
forgot to mention, but this recent update wouldn’t fix your problem, you’d need to track down the offending js in your theme and fix it.
not much more we can do, given it’s theme specific, if your theme developer can’t help, consider hiring someone to debug it – http://jobs.wordpress.net
and there isn’t a possibility to disable date picker and autocomplete just for the event form?
Datepicker is required, but as I mentioned, the autocomplete can be replaced with a dropdown.
if you need the datepicker just on that page (assuming it works admin-side), try add a conditional in your header and not load your theme JS on the submission page?
<?php if( get_query_var('pagename') != 'veranstaltungen-melden' ): ?> your js here <?php endif; ?>
I know I must be a pain in the back but I’m really no wordpress coder.
Do you mean I should put above code in the wp header.php like this:
<?php if( get_query_var(‘pagename’) != ‘veranstaltungen-melden’ ): ?>
<?php endif; ?>
yes, you can put the snippet in your theme header e.g. header.php
I disabled in EM General Options “Accept bookings” (after Enable recurrence?) and here we go: The date picker works well. So there is obviously a conflict in your plugin. I don’t need booking yet, but I want to upgrade to Pro Version, what does that mean for me in terms of booking facility?
But problem still: Autocomplete doesn’t work (backend okay, problem just in front end on the submission form).
I think we are getting there
It definitely works 🙂 Look at our demo site, there’s even a datepicker in the booking form itself using the Pro booking form editor – http://demo.wp-events-plugin.com/events/neil-young-main/
Autocomplete won’t work unless you fix your theme. We can’t help you with that (even in Pro), your theme is at fault here so you need to either fix the JS, or ditch the JS your theme uses and figure a way around whatever it was trying to do acheive. Ideally, your theme maker should correct this problem because I can say with 100% certainty it is your theme doing this.
The reason disabling bookings made it work is because the bug (if i remember correctly) was with the jQuery dialog UI plugin and some conflict with that. However, given your theme doesn’t work with the jQuery autocomplete UI (both a WP native script) it’s hard to say, esp. since I cant’ see the page above anymore – 404
Thanks for your detailed answer.
Here ist the link to the submission form: http://www.der-backnanger.de/veranstaltung-melden-2/
I can’t see any error warning in Firebug anymore though.
I found this error on your site using chrome -> error console
Uncaught TypeError: Cannot read property 'PAGE_UP' of undefined jquery.ui.autocomplete.min.js:5 element.addClass.attr.attr.bind.bind.d jquery.ui.autocomplete.min.js:5 f.event.dispatch jquery.js:3 h.handle.i jquery.js:3
Any idea what that could mean for “normal people”?
Is this the theme that you are using http://themeforest.net/item/swagger-responsive-wordpress-theme/930581?ref=themeblvd ? because if this is your theme I tried to install it and everything seems to be working fine?
No – it’s this one: http://themeforest.net/item/swagmag-wordpress-magazinereview-theme/1576310
I think I know why this is happening….
Your theme (looking at the live preview on TF) is loading the jQuery library from the Google CDN, which (although it’s wrong, one day it’ll be outdated) at the moment is ok because it’s 1.8.1 but WP uses 1.7.2 so what may be happening is the js code in there is using something in 1.8.1 that’s new and breaking the rest of the script.
Given you paid for this theme, you should ask this on their support forum, because we’re using the normal WP jQuery UI and not doing anything particularly special there. Otherwise, the solutions above are my suggestions, can’t give much more.
here is the comment from the theme developer :
“Swagger uses the built-in jquery library in WP, not the google CDN jquery library. You can see so yourself by looking at the Swagger page source and search for the text “jquery” and the first result shows you it’s coming from the WordPress wp-includes folder and NOT the google CDN.”
- The topic ‘Date picker and autocomplete problem’ is closed to new replies.