Skip to:
Content

Opened 14 months ago

Closed 14 months ago

Last modified 11 months ago

#4824 closed defect (bug) (invalid)

Autocomplete

Reported by: stefwilliams Owned by:
Milestone: Priority: normal
Severity: major Version: 1.7
Component: Messaging 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:1 r-a-y14 months ago

  • Keywords reporter-feedback added

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?

comment:2 stefwilliams14 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 :)

Last edited 14 months ago by stefwilliams (previous) (diff)

comment:3 r-a-y14 months ago

  • 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 defunctlife11 months 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 );
Note: See TracTickets for help on using tickets.