#4824 closed defect (bug) (invalid)
Autocomplete
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Messaging | Version: | 1.7 |
| Severity: | major | Keywords: | |
| Cc: |
Description
In Private Message > Compose screen.
'Send to' field does not get autofilled with:
Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method '[url]/wp-admin/admin-ajax.php'
Also means mail cannot be sent at all, even using username or @name.
Have tried it with twentytwelve and still get the issue...
(Using build 6784)
Cheers
Change History (4)
comment:2
stefwilliams — 3 months ago
Ah,
Yes, that does seem to be the issue - deactivated EM and it works...
The thread above seems unsure whether it's a BP bug or EM...
Any ideas yourself?
PS - sorry, I did do a 'quick search on Google' myself :)
- Keywords reporter-feedback removed
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
Judging from that forum thread, it looks like EM introduced the bug in a new version of their plugin so I assume it's a problem on their part. But if it ends up being a BP problem, tell their devs to post a ticket here.
Closing as invalid for now.
comment:4
defunctlife — 6 days ago
If buddypress would enqueue the autcomplete scripts in the footer it would fix most issues.
e.g.
wp_enqueue_script( 'bp-jquery-autocomplete', BP_PLUGIN_URL . "bp-messages/js/autocomplete/jquery.autocomplete{$min}.js", array( 'jquery' ), bp_get_version(), true );
wp_enqueue_script( 'bp-jquery-autocomplete-fb', BP_PLUGIN_URL . "bp-messages/js/autocomplete/jquery.autocompletefb{$min}.js", array(), bp_get_version(), true );
wp_enqueue_script( 'bp-jquery-bgiframe', BP_PLUGIN_URL . "bp-messages/js/autocomplete/jquery.bgiframe{$min}.js", array(), bp_get_version(), true );
wp_enqueue_script( 'bp-jquery-dimensions', BP_PLUGIN_URL . "bp-messages/js/autocomplete/jquery.dimensions{$min}.js", array(), bp_get_version(), true );

Are you using any other plugins?
A quick search on Google came up with a conflict with the Events Manager plugin:
https://wordpress.org/support/topic/auto-complete-not-working-in-messages
Are you using that?